diff --git a/hb_client/src/api/sam.js b/hb_client/src/api/sam.js index 540441f..99940ae 100644 --- a/hb_client/src/api/sam.js +++ b/hb_client/src/api/sam.js @@ -28,6 +28,15 @@ export function deleteCustomer(id, data) { data }) } +export function getCustomer(id) { + return request({ + url: `/sam/customer/${id}/`, + method: 'get', + + }) +} + + //合同 export function getContractList(query) { return request({ @@ -170,4 +179,27 @@ export function saleAudit(id) { }) } +//返回装箱文件 +export function gePack(id) { + return request({ + url: `/sam/sale_product/${id}/pack/`, + method: 'get' + }) +} +//打包装箱文件确认 +export function subPack(id, data) { + return request({ + url: `/sam/sale_product/${id}/pack/`, + method: 'POST', + data + }) +} +///未装箱备注 +export function notPackremark(id, data) { + return request({ + url: `/sam/sale_product/${id}/remark/`, + method: 'POST', + data + }) +} diff --git a/hb_client/src/store/modules/app.js b/hb_client/src/store/modules/app.js index 45d89bb..54a2273 100644 --- a/hb_client/src/store/modules/app.js +++ b/hb_client/src/store/modules/app.js @@ -6,13 +6,20 @@ const state = { withoutAnimation: false }, device: 'desktop', - size: Cookies.get('size') || 'medium' -} + size: Cookies.get('size') || 'medium', + recordFormType:{ + 10:'生产记录表', + 20:'工序检查表', + 30:'入厂检验表', + 40:'成品检验表', + 50:'首件检查表', + }, +}; const mutations = { TOGGLE_SIDEBAR: state => { - state.sidebar.opened = !state.sidebar.opened - state.sidebar.withoutAnimation = false + state.sidebar.opened = !state.sidebar.opened; + state.sidebar.withoutAnimation = false; if (state.sidebar.opened) { Cookies.set('sidebarStatus', 1) } else { @@ -20,18 +27,18 @@ const mutations = { } }, CLOSE_SIDEBAR: (state, withoutAnimation) => { - Cookies.set('sidebarStatus', 0) - state.sidebar.opened = false + Cookies.set('sidebarStatus', 0); + state.sidebar.opened = false; state.sidebar.withoutAnimation = withoutAnimation }, TOGGLE_DEVICE: (state, device) => { state.device = device }, SET_SIZE: (state, size) => { - state.size = size + state.size = size; Cookies.set('size', size) } -} +}; const actions = { toggleSideBar({ commit }) { @@ -46,7 +53,7 @@ const actions = { setSize({ commit }, size) { commit('SET_SIZE', size) } -} +}; export default { namespaced: true, diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue index 66b19ea..632288e 100644 --- a/hb_client/src/views/inm/fifo.vue +++ b/hb_client/src/views/inm/fifo.vue @@ -70,6 +70,12 @@ + + +