From 3481e13e44f4a56134e4bdfe073adc1030e85939 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 29 Oct 2021 11:10:31 +0800 Subject: [PATCH] cangku --- hb_client/src/api/inm.js | 30 +- hb_client/src/router/index.js | 36 +-- hb_client/src/views/inm/fifo.vue | 324 ++++++++++++++++++++++ hb_client/src/views/inm/fifodetail.vue | 131 +++++++++ hb_client/src/views/inm/inventory.vue | 137 +++++++++ hb_client/src/views/inm/materialbatch.vue | 118 +++----- hb_client/src/views/inm/warehouse.vue | 2 +- hb_client/src/views/pm/resources.vue | 29 +- hb_client/src/views/wpm/worktask.vue | 12 +- 9 files changed, 696 insertions(+), 123 deletions(-) create mode 100644 hb_client/src/views/inm/fifo.vue create mode 100644 hb_client/src/views/inm/fifodetail.vue create mode 100644 hb_client/src/views/inm/inventory.vue 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/router/index.js b/hb_client/src/router/index.js index e7da4f0..160a4d8 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -293,32 +293,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..982bb4b --- /dev/null +++ b/hb_client/src/views/inm/fifo.vue @@ -0,0 +1,324 @@ + + + + + + 搜索 + 重置 + + + + + 新增物料 + + + + + + + {{ scope.row.warehouse_.name }} + + + + {{ scope.row.operator_.username }} + + + {{ scope.row.inout_date }} + + + {{ types_[scope.row.type] }} + + + + + + 查看详情 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 取消 + 确认 + + + + + 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 @@ + + + + + + 搜索 + 重置 + + + + + + + + + + {{ scope.row.material_.name }} + + + + {{ scope.row.batch }} + + + {{ scope.row.material_.number }} + + + {{ scope.row.material_.unit }} + + + {{ scope.row.material_.specification }} + + + {{ scope.row.count }} + + + + + + + + + + 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 @@ + + + + + + 搜索 + 重置 + + + + + + + + + + {{ scope.row.material_.name }} + + + + {{ scope.row.material_.number }} + + + {{ scope.row.material_.unit }} + + + {{ scope.row.material_.specification }} + + + {{ scope.row.count }} + + + + + + + + + + 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 @@ + + + + + {{ scope.row.batch }} + - {{ scope.row.name }} + {{ scope.row.material_.name }} - - {{ scope.row.number }} + + {{ scope.row.material_.number }} - - {{ scope.row.place }} + + {{ scope.row.warehouse_.name }} - - {{ scope.row.place }} + + {{ scope.row.warehouse_.number }} - - {{ scope.row.create_time }} - - - - - - 删除 - + + {{ scope.row.count }} + + + + - +