diff --git a/hb_client/src/api/inm.js b/hb_client/src/api/inm.js index f4437c9..5eedd2c 100644 --- a/hb_client/src/api/inm.js +++ b/hb_client/src/api/inm.js @@ -94,4 +94,13 @@ export function createTestrecord(data) { method: 'post', data }) +} + +//半成品库存 +export function getiproductList(query) { + return request({ + url: '/inm/iproduct/', + method: 'get', + params: query + }) } \ No newline at end of file diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js index e733bfb..a36437f 100644 --- a/hb_client/src/api/wpm.js +++ b/hb_client/src/api/wpm.js @@ -15,6 +15,15 @@ export function getwmaterialList(query) { params: query }) } +//车间生产计划 +export function getsubplanList(query) { + return request({ + url: '/wpm/subplan/', + method: 'get', + params: query + }) +} + //车间操作 export function createWork(data) { return request({ @@ -40,6 +49,23 @@ export function getwproductList(query) { }) } +//半成品检验 +export function wproductTest(data) { + return request({ + url: '/wpm/wproduct/test/', + method: 'post', + data + }) +} +//半成品入库 + +export function wproductPutin(id, data) { + return request({ + url: `/wpm/wproduct/${id}/putin/`, + method: 'post', + data + }) +} diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index cbf1edd..235fbd4 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -316,8 +316,13 @@ export const asyncRoutes = [ component: () => import('@/views/inm/fifodetail'), meta: { title: '仓库物料', perms: ['vendor_manage'] }, hidden: true - } - + }, + { + path: 'wproduct', + name: 'wproduct', + component: () => import('@/views/inm/wproduct'), + meta: { title: '半成品', icon: 'example', perms: ['index_manage'] } + }, ] }, diff --git a/hb_client/src/views/inm/wproduct.vue b/hb_client/src/views/inm/wproduct.vue new file mode 100644 index 0000000..f53458e --- /dev/null +++ b/hb_client/src/views/inm/wproduct.vue @@ -0,0 +1,87 @@ + + + + + + + + {{ scope.row.number }} + + + + {{ scope.row.batch }} + + + {{ scope.row.material_.name }} + + + + {{ scope.row.warehouse_.name }} + + + + + + + + + + diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index 78bafdc..2795f0d 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -261,6 +261,13 @@ + - - - - 搜索 - 重置 - - - - + + + - {{actstate_[scope.row.act_state]}} + {{ actstate_[scope.row.act_state] }} - - + + {{ scope.row.p_state_.name }} @@ -61,7 +37,6 @@ @click="handleInspection(scope)" >检验 - @@ -73,52 +48,246 @@ @pagination="getList" /> - - + + + - - - - - - - - - + + {{ scope.row.m_state_.name }} + + + + {{ scope.row.number }} + + + + {{ actstate_[scope.row.act_state] }} + + + + + {{ scope.row.p_state_.name }} + + + + + 入库 - - - - - - 取消 - 确认 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 检查合格 + 检查不合格 + + + + + + + + + + + + + + + + + + + + + + diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue index e8a38cb..5e6a15d 100644 --- a/hb_client/src/views/wpm/worktask.vue +++ b/hb_client/src/views/wpm/worktask.vue @@ -11,7 +11,6 @@ - - - 已领料 - + {{ scope.row.main_product_.name }} - {{ scope.row.main_count_real }}/{{scope.row.main_count}} - - + {{ scope.row.main_count_real }}/{{ + scope.row.main_count + }} + + {{ item.name }} + 显示全部子计划 @@ -188,8 +194,7 @@ - - + 生产所需领料表 @@ -251,10 +256,54 @@ + + + 选择半成品 + + + + + + + + {{ scope.row.number }} + + + + {{ scope.row.batch }} + + + {{ scope.row.material_.name }} + + + + {{ scope.row.warehouse_.name }} + + + + + + - - - + + + 消耗物料表 - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - + + + 产出物料表 - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + 备注 - - - - - - - 下一步 + + + + + + + 下一步 - 下一步 上一步 + style="margin-top: 12px" + @click="next" + v-if="values == $index + 2" + >下一步 + 上一步 - - - + 取消 @@ -495,14 +551,15 @@ \ No newline at end of file