diff --git a/hb_client/src/api/inm.js b/hb_client/src/api/inm.js index 354861a..54cb63f 100644 --- a/hb_client/src/api/inm.js +++ b/hb_client/src/api/inm.js @@ -38,22 +38,34 @@ export function getInventoryList(query) { } export function createInventory(data) { return request({ - url: '/inm/inventory/', + url: '/inm/fifo/in_pur/', method: 'post', data }) } -export function updateInventory(id, data) { +//仓库对应的物料 +export function getfifodetailList(query) { return request({ - url: `/inm/inventory/${id}/`, - method: 'put', - data + url: '/inm/fifodetail/', + method: 'get', + params: query }) } -export function deleteInventory(id, data) { + +//出入库记录 +export function getfifoList(query) { return request({ - url: `/inm/inventory/${id}/`, - method: 'delete', - data + url: '/inm/fifo/', + method: 'get', + params: query + }) +} + +//物料批次 +export function getmaterialbatchList(query) { + return request({ + url: '/inm/materialbatch/', + method: 'get', + params: query }) } diff --git a/hb_client/src/api/pm.js b/hb_client/src/api/pm.js index e25b788..ec7fe91 100644 --- a/hb_client/src/api/pm.js +++ b/hb_client/src/api/pm.js @@ -71,4 +71,13 @@ export function issuesubplan(id) { method: 'post', }) +} + +//领料需求单,库存数量 +export function createPick_need(id, data) { + return request({ + url: `/pm/subproduction_plan/${id}/pick_need/`, + method: 'post', + data + }) } \ No newline at end of file diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index abc0653..d8f4a46 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -303,32 +303,34 @@ export const asyncRoutes = [ meta: { title: '仓库', icon: 'example', perms: ['index_manage'] } }, { - path: 'materialbatch/:id', - name: 'MaterialBatch', - component: () => import('@/views/inm/materialbatch'), + path: 'inventory/:id', + name: 'inventory', + component: () => import('@/views/inm/inventory'), meta: { title: '仓库物料', perms: ['vendor_manage'] }, hidden: true } , { - path: 'warehouse', - name: 'warehouse', - component: () => import('@/views/inm/warehouse'), - meta: { title: '物料库存', icon: 'example', perms: ['index_manage'] } + path: 'materialbatch', + name: 'materialbatch', + component: () => import('@/views/inm/materialbatch'), + meta: { title: '物料批次', icon: 'example', perms: ['index_manage'] } }, { - path: 'warehouse', - name: 'warehouse', - component: () => import('@/views/inm/warehouse'), - meta: { title: '半成品库存', icon: 'example', perms: ['index_manage'] } - } - , + path: 'fifo', + name: 'fifo', + component: () => import('@/views/inm/fifo'), + meta: { title: '出入库记录', icon: 'example', perms: ['index_manage'] } + }, { - path: 'warehouse', - name: 'warehouse', - component: () => import('@/views/inm/warehouse'), - meta: { title: '成品库存', icon: 'example', perms: ['index_manage'] } + path: 'fifodetail/:id', + name: 'fifodetail', + component: () => import('@/views/inm/fifodetail'), + meta: { title: '仓库物料', perms: ['vendor_manage'] }, + hidden: true } + + ] }, diff --git a/hb_client/src/views/inm/fifo.vue b/hb_client/src/views/inm/fifo.vue new file mode 100644 index 0000000..52175ca --- /dev/null +++ b/hb_client/src/views/inm/fifo.vue @@ -0,0 +1,333 @@ + + diff --git a/hb_client/src/views/inm/fifodetail.vue b/hb_client/src/views/inm/fifodetail.vue new file mode 100644 index 0000000..3f1a7aa --- /dev/null +++ b/hb_client/src/views/inm/fifodetail.vue @@ -0,0 +1,131 @@ + + diff --git a/hb_client/src/views/inm/inventory.vue b/hb_client/src/views/inm/inventory.vue new file mode 100644 index 0000000..77e1f60 --- /dev/null +++ b/hb_client/src/views/inm/inventory.vue @@ -0,0 +1,137 @@ + + diff --git a/hb_client/src/views/inm/materialbatch.vue b/hb_client/src/views/inm/materialbatch.vue index 939f3dc..4585950 100644 --- a/hb_client/src/views/inm/materialbatch.vue +++ b/hb_client/src/views/inm/materialbatch.vue @@ -26,124 +26,106 @@ + + + + + + - + - - + + - - + + - - + + - - - - - + + + + + + - +