diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 5012c77..d921826 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -107,7 +107,6 @@ export const asyncRoutes = [ name: 'material', component: () => import('@/views/mtm/material'), meta: { title: '物料清单', icon: 'material', perms: ['mtm_material'] } - } , { @@ -151,7 +150,19 @@ export const asyncRoutes = [ name: 'productprocess', component: () => import('@/views/mtm/productprocess'), meta: { title: '产品管理', icon: 'product', perms: ['mtm_productprocess'] } - }, + } + ,{ + path: 'productList', + name: 'productList', + component: () => import('@/views/mtm/productList'), + meta: { title: '成品列表', icon: 'material', perms: ['mtm_material'] } + } + ,{ + path: 'wproductList', + name: 'wproductList', + component: () => import('@/views/mtm/wproductList'), + meta: { title: '半成品列表', icon: 'material', perms: ['mtm_material'] } + } ] }, { diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 8e33258..5bb2a00 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -30,8 +30,8 @@ - - + @@ -210,22 +210,23 @@ }, processOptions: [], options_: { - - "1": '成品', - "2": '半成品', + // "1": '成品', + // "2": '半成品', "3": '主要原料', "4": '辅助材料', "5": '加工工具', "6": '辅助工装', }, - options: [{ + options: [ + /*{ value: 1, label: '成品' }, { value: 2, label: '半成品' - }, { + }, */ + { value: 3, label: '主要原料' }, { @@ -258,10 +259,11 @@ }, ], listQuery: { + type:3, page: 1, page_size: 20, }, - activeName: "", + activeName: "3", listLoading: true, dialogVisible: false, dialogType: "new", diff --git a/hb_client/src/views/mtm/productList.vue b/hb_client/src/views/mtm/productList.vue new file mode 100644 index 0000000..9b2e82b --- /dev/null +++ b/hb_client/src/views/mtm/productList.vue @@ -0,0 +1,351 @@ + + + + + diff --git a/hb_client/src/views/mtm/wproductList.vue b/hb_client/src/views/mtm/wproductList.vue new file mode 100644 index 0000000..3f174e9 --- /dev/null +++ b/hb_client/src/views/mtm/wproductList.vue @@ -0,0 +1,322 @@ + + + + +