From 19d1a3a8477cccaf91a18f45393acdfa23f88a1c Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 13 Oct 2023 08:55:15 +0800 Subject: [PATCH] 1013 --- src/api/model/inm.js | 62 ++++ src/api/model/mtm.js | 120 ++++++++ src/api/model/pum.js | 5 +- src/api/model/sam.js | 37 ++- src/config/index.js | 2 +- src/config/route.js | 47 +-- src/views/bigScreen/index_photon.vue | 440 +++++++++++++++++++++++++++ src/views/inm/fifo.vue | 241 +++++++++++++++ src/views/mtm/materials.vue | 291 ++++++++++-------- src/views/mtm/materials_form.vue | 19 +- src/views/mtm/process.vue | 12 +- src/views/mtm/process_form.vue | 77 +++-- src/views/pum/order.vue | 14 +- src/views/pum/orderitem.vue | 38 ++- src/views/pum/orderitem_form.vue | 6 +- src/views/pum/orderitemplan.vue | 178 +++++++++++ src/views/pum/plan.vue | 27 +- src/views/pum/planitem.vue | 20 +- src/views/pum/planitem_form.vue | 4 + src/views/sam/order.vue | 51 +++- src/views/sam/order_form.vue | 31 +- src/views/sam/orderitem.vue | 22 +- src/views/sam/orderitem_form.vue | 19 +- 23 files changed, 1490 insertions(+), 273 deletions(-) create mode 100644 src/views/bigScreen/index_photon.vue create mode 100644 src/views/inm/fifo.vue create mode 100644 src/views/pum/orderitemplan.vue diff --git a/src/api/model/inm.js b/src/api/model/inm.js index 6f741029..7d17c3ae 100644 --- a/src/api/model/inm.js +++ b/src/api/model/inm.js @@ -60,5 +60,67 @@ export default { ); } }, + }, + // 出入库记录 + mio: { + list: { + name: "出入库记录列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/inm/mio/`, + data + ); + } + }, + do: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/inm/mio/do/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/inm/mio/${id}/`); + } + }, + submit: { + name: "提交", + req: async function(data){ + return await http.post( + `${config.API_URL}/inm/mio//${id}/submit/`, + data); + } + }, + }, + // 出入库明细 + mioitem: { + list: { + name: "出入库明细列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/inm/mioitem/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/inm/mioitem/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/inm/mioitem/${id}/`); + } + }, } } \ No newline at end of file diff --git a/src/api/model/mtm.js b/src/api/model/mtm.js index 92f0ed04..ed5a9dc3 100644 --- a/src/api/model/mtm.js +++ b/src/api/model/mtm.js @@ -280,4 +280,124 @@ export default { } }, }, + // 工序 + process: { + list: { + name: "工序列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/mtm/process/`, + data + ); + } + }, + item: { + name: "获取工序详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/mtm/process/${id}/` + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/process/`, + data); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/mtm/process/${id}/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/mtm/process/${id}/`); + } + }, + deletes: { + name: "批量删除", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/process/deletes/`, + data); + } + }, + cquery: { + name: "复杂查询", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/process/cquery/`, + data); + } + }, + + }, + // + route: { + list: { + name: "列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/mtm/route/`, + data + ); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/mtm/route/${id}/` + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/route/`, + data); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/mtm/route/${id}/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/mtm/route/${id}/`); + } + }, + deletes: { + name: "批量删除", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/route/deletes/`, + data); + } + }, + cquery: { + name: "复杂查询", + req: async function(data){ + return await http.post( + `${config.API_URL}/mtm/route/cquery/`, + data); + } + }, + + }, } \ No newline at end of file diff --git a/src/api/model/pum.js b/src/api/model/pum.js index 4ff06f93..36ccd70c 100644 --- a/src/api/model/pum.js +++ b/src/api/model/pum.js @@ -172,10 +172,9 @@ export default { }, submit:{ name: "提交采购订单", - req: async function(data){ + req: async function(id){ return await http.post( - `${config.API_URL}/pum/pu_plan/${id}/submit/`, - data); + `${config.API_URL}/pum/pu_plan/${id}/submit/`); } }, }, diff --git a/src/api/model/sam.js b/src/api/model/sam.js index 104c191d..edf443f5 100644 --- a/src/api/model/sam.js +++ b/src/api/model/sam.js @@ -106,7 +106,7 @@ export default { // 订单信息 order: { list: { - name: "客户列表", + name: "订单列表", req: async function(data){ return await http.get( `${config.API_URL}/sam/order/`, @@ -152,6 +152,39 @@ export default { return await http.delete( `${config.API_URL}/sam/order/${id}/`); } - } + }, + submit: { + name: "提交", + req: async function(id){ + return await http.post( + `${config.API_URL}/sam/order/${id}/submit/`); + } + }, + },// 订单明细列 + orderitem: { + list: { + name: "订单明细列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/sam/orderitem/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/sam/orderitem/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/sam/orderitem/${id}/`); + } + }, } } \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index b98103b5..54eaa7d7 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -44,7 +44,7 @@ const DEFAULT_CONFIG = { MENU_UNIQUE_OPENED: true, //是否开启多标签 - LAYOUT_TAGS: true, + LAYOUT_TAGS: false, //语言 LANG: 'zh-cn', diff --git a/src/config/route.js b/src/config/route.js index 936e6604..d0db8e4f 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -768,16 +768,6 @@ const routes = [ }, "component": "inm/warehouse" }, - { - "name": "material", - "path": "/inm/material", - "meta": { - "title": "物料产品", - "icon": "el-icon-cellphone", - "perms": ["inm"] - }, - "component": "ungrouped/material" - }, { "name": "materialbatch", "path": "/inm/materialbatch", @@ -788,6 +778,27 @@ const routes = [ }, "component": "inm/materialbatch" }, + { + "name": "fifo", + "path": "/inm/fifo", + "meta": { + "title": "出入库记录", + "icon": "el-icon-cellphone", + "perms": ["inm"] + }, + "component": "inm/fifo" + }, + { + "name": "material", + "path": "/inm/material", + "meta": { + "title": "物料产品", + "icon": "el-icon-cellphone", + "perms": ["inm"] + }, + "component": "ungrouped/material" + }, + ] }, //采购 pum @@ -843,7 +854,6 @@ const routes = [ }, "component": "pum/orderitem" }, - { "name": "supplier", "path": "/pum/supplier", @@ -864,7 +874,7 @@ const routes = [ "title": "销售管理", "icon": "el-icon-grid", "type": "menu", - "perms": ["em"] + "perms": ["sam"] }, "children": [ { @@ -903,7 +913,8 @@ const routes = [ "meta": { "title": "订单详情", "icon": "el-icon-cellphone", - "perms": ["sam"] + "perms": ["sam"], + "hidden":true, }, "component": "sam/orderitem" }, @@ -1750,7 +1761,7 @@ const routes = [ }, ] }, - //数据看板 + //曲阳驾驶舱 { "path": "/bigScreen", "name": "bigScreen", @@ -1762,7 +1773,7 @@ const routes = [ }, "component": "bigScreen" }, - //数据看板 + //托克逊大屏 { "path": "/bigScreen2", "name": "bigScreen2", @@ -1774,17 +1785,17 @@ const routes = [ }, "component": "bigScreen/index_enm" }, - //数据看板 + //光子大屏 { "path": "/bigScreenP", "name": "bigScreenP", "meta": { "title": "能管大屏", "icon": "el-icon-position", - "perms": ["bigScreenPhoton"], + "perms": ["bigScreenP"], "fullpage": true, }, - "component": "bigScreen/index_enm" + "component": "bigScreen/index_photon" }, //首页 // { diff --git a/src/views/bigScreen/index_photon.vue b/src/views/bigScreen/index_photon.vue new file mode 100644 index 00000000..8daa6355 --- /dev/null +++ b/src/views/bigScreen/index_photon.vue @@ -0,0 +1,440 @@ + + + \ No newline at end of file diff --git a/src/views/inm/fifo.vue b/src/views/inm/fifo.vue new file mode 100644 index 00000000..45e06cb6 --- /dev/null +++ b/src/views/inm/fifo.vue @@ -0,0 +1,241 @@ + + \ No newline at end of file diff --git a/src/views/mtm/materials.vue b/src/views/mtm/materials.vue index 877ad819..2e5d7d6e 100644 --- a/src/views/mtm/materials.vue +++ b/src/views/mtm/materials.vue @@ -4,7 +4,7 @@
-
+ - + - + + - + - + - + - + - + - + + - + - + - + -