From 355dfc52509ffa908e28fa9f0e6af886e7e10893 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 17 Oct 2023 09:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=89=A7=E8=A1=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 +- .env.production | 10 +- src/api/model/wpm.js | 60 ++++ src/components/ehsSelect/userselect.vue | 22 +- src/config/route.js | 65 +++- src/views/mtm/mgroup.vue | 126 ++++++++ src/views/mtm/mgroup_form.vue | 173 +++++++++++ src/views/pm/mtask.vue | 3 +- src/views/pm/mtask_form.vue | 29 +- src/views/pum/orderitem.vue | 26 ++ src/views/pum/planitem.vue | 24 ++ src/views/sam/orderitem.vue | 34 ++- src/views/userCenter/index.vue | 12 +- src/views/wpm/flog_form.vue | 215 ++++++++++++++ src/views/wpm/worktask.vue | 317 ++++++++++++++++++++ src/views/wpm/worktask2.vue | 375 ++++++++++++++++++++++++ src/views/wpm/worktaskFlog.vue | 176 +++++++++++ 17 files changed, 1640 insertions(+), 34 deletions(-) create mode 100644 src/views/mtm/mgroup.vue create mode 100644 src/views/mtm/mgroup_form.vue create mode 100644 src/views/wpm/flog_form.vue create mode 100644 src/views/wpm/worktask.vue create mode 100644 src/views/wpm/worktask2.vue create mode 100644 src/views/wpm/worktaskFlog.vue diff --git a/.env.development b/.env.development index d9600b6e..d2fd0f19 100644 --- a/.env.development +++ b/.env.development @@ -2,15 +2,16 @@ NODE_ENV = development # 标题 -VUE_APP_TITLE = '曲阳金隅安全智能管控平台' +# VUE_APP_TITLE = '曲阳金隅安全智能管控平台' # VUE_APP_TITLE = '托克逊能源管理平台' +VUE_APP_TITLE = '中建材光子科技有限公司' # 接口地址 #VUE_APP_API_BASEURL = http://1.203.161.103:2800/api #VUE_APP_WS_API = 'ws://localhost:8000' -VUE_APP_API_BASEURL = http://222.222.144.147:6013/api +# VUE_APP_API_BASEURL = http://222.222.144.147:6013/api #VUE_APP_API_BASEURL = http://10.99.5.79:20309/api -# VUE_APP_API_BASEURL = http://49.232.14.174:2226/api +VUE_APP_API_BASEURL = http://49.232.14.174:2226/api # VUE_APP_API_BASEURL = http://127.0.0.1:2226/api VUE_APP_BASEURL = http://49.232.14.174:2226 diff --git a/.env.production b/.env.production index 760f9a28..604c6f24 100644 --- a/.env.production +++ b/.env.production @@ -4,12 +4,14 @@ NODE_ENV = production # 标题 VUE_APP_TITLE = '曲阳金隅安全智能管控平台' # VUE_APP_TITLE = '托克逊能源管理平台' +# VUE_APP_TITLE = '中建材光子科技有限公司' + # 接口地址 -VUE_APP_API_BASEURL = http://222.222.144.147:6013/api -VUE_APP_BASEURL = http://222.222.144.147:6013 -# VUE_APP_API_BASEURL = http://49.232.14.174:2226/api -# VUE_APP_BASEURL = http://49.232.14.174:2226 +# VUE_APP_API_BASEURL = http://222.222.144.147:6013/api +# VUE_APP_BASEURL = http://222.222.144.147:6013 +VUE_APP_API_BASEURL = http://49.232.14.174:2226/api +VUE_APP_BASEURL = http://49.232.14.174:2226 # VUE_APP_API_BASEURL = http://1.203.161.103:2800/api # VUE_APP_BASEURL = http://1.203.161.103:2800 \ No newline at end of file diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index 98ab12a2..d065f48c 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -138,6 +138,66 @@ export default { } }, }, + mlog:{ + list: { + name: "值班记录列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/wpm/mlog/`, + data + ); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/wpm/mlog/${id}/` + ); + } + }, + cquery: { + name: "复杂查询", + req: async function(data){ + return await http.post( + `${config.API_URL}/wpm/mlog/cquery/`, + data); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/wpm/mlog/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/wpm/mlog/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/wpm/mlog/${id}/`); + } + }, + }, + //车间库存 + wmaterial: { + name: "车间库存", + req: async function(data){ + return await http.get( + `${config.API_URL}/wpm/wmaterial/`, + data + ); + } + }, // //值班停机关系 // stsflog: { // list: { diff --git a/src/components/ehsSelect/userselect.vue b/src/components/ehsSelect/userselect.vue index 3fbd6072..7b8dca8b 100644 --- a/src/components/ehsSelect/userselect.vue +++ b/src/components/ehsSelect/userselect.vue @@ -202,6 +202,13 @@ export default { return true; }, }, + listIndex:{ + // index + type: Number, + default: () => { + return null; + }, + }, multiple: { // 是否多选,默认可以多选 type: Boolean, @@ -252,6 +259,9 @@ export default { }; }, mounted() { + debugger; + console.log('this.listIndex') + console.log(this.listIndex) this.getDept(); this.getPost(); }, @@ -372,7 +382,17 @@ export default { this.dialoguser = false; // this.change(); // 触发值变化 // this.dataValue = this.userData.map((e) => e.id).join(","); - this.$emit("submit", this.selection); + let data = this.selection; + if(this.listIndex!==null){ + data.listIndex = this.listIndex; + debugger; + console.log(this.listIndex); + console.log(data); + this.$emit("submit",data); + }else{ + this.$emit("submit",data); + } + }, //权限设置 // permission() { diff --git a/src/config/route.js b/src/config/route.js index 910c16ef..50570415 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -703,15 +703,25 @@ const routes = [ "component": "mtm/products" }, { - "name": "process", - "path": "/mtm/process", + "name": "mgruops", + "path": "/mtm/mgruops", "meta": { - "title": "工序管理", - "icon": "el-icon-cellphone", + "title": "工段管理", + "icon": "el-icon-grid", "perms": ["mtm"] }, - "component": "mtm/process" - }, + "component": "mtm/mgroup" + }, + // { + // "name": "process", + // "path": "/mtm/process", + // "meta": { + // "title": "工序管理", + // "icon": "el-icon-cellphone", + // "perms": ["mtm"] + // }, + // "component": "mtm/process" + // }, ] }, //生产管理 pm @@ -746,6 +756,49 @@ const routes = [ "component": "pm/mtask2" } ] + }, + //生产执行 wpm + { + "name": "wpm", + "path": "/wpm", + "meta": { + "title": "生产执行", + "icon": "el-icon-grid", + "type": "menu", + "perms": ["wpm"] + }, + "children": [ + { + "name": "worktask", + "path": "/wpm/worktask", + "meta": { + "title": "生产一部", + "icon": "el-icon-cellphone", + "perms": ["wpm"] + }, + "component": "wpm/worktask" + }, + { + "name": "worktaskFlog", + "path": "/wpm/worktaskFlog", + "meta": { + "title": "生产一部记录", + "icon": "el-icon-cellphone", + "perms": ["wpm"] + }, + "component": "wpm/worktaskFlog" + }, + { + "name": "worktask2", + "path": "/wpm/worktask2", + "meta": { + "title": "生产二部", + "icon": "el-icon-cellphone", + "perms": ["wpm"] + }, + "component": "wpm/worktask2" + } + ] }, //库存 inm { diff --git a/src/views/mtm/mgroup.vue b/src/views/mtm/mgroup.vue new file mode 100644 index 00000000..8468765e --- /dev/null +++ b/src/views/mtm/mgroup.vue @@ -0,0 +1,126 @@ + + + diff --git a/src/views/mtm/mgroup_form.vue b/src/views/mtm/mgroup_form.vue new file mode 100644 index 00000000..c3cdfd52 --- /dev/null +++ b/src/views/mtm/mgroup_form.vue @@ -0,0 +1,173 @@ + + + + + + \ No newline at end of file diff --git a/src/views/pm/mtask.vue b/src/views/pm/mtask.vue index 7f6ab570..d229dc9d 100644 --- a/src/views/pm/mtask.vue +++ b/src/views/pm/mtask.vue @@ -2,7 +2,7 @@
- + 新增任务
查询 -
diff --git a/src/views/pm/mtask_form.vue b/src/views/pm/mtask_form.vue index 4a415d14..bbe52020 100644 --- a/src/views/pm/mtask_form.vue +++ b/src/views/pm/mtask_form.vue @@ -22,14 +22,14 @@ - + - + @@ -43,10 +43,27 @@ - + + + + + + + + diff --git a/src/views/pum/orderitem.vue b/src/views/pum/orderitem.vue index 906b16ba..a27efc4f 100644 --- a/src/views/pum/orderitem.vue +++ b/src/views/pum/orderitem.vue @@ -19,6 +19,24 @@ + + + + + {{ orderObj.number }} + + + {{ orderObj.state }} + + + {{ orderObj.belong_dept }} + + + {{ orderObj.delivery_date }} + + + + { + this.orderObj = res; + }) + }, //添加 add() { this.dialog.save = true; @@ -130,6 +155,7 @@ export default { // } // }); }, + //编辑 table_edit(row) { this.dialog.save = true; diff --git a/src/views/pum/planitem.vue b/src/views/pum/planitem.vue index 510e7114..3f91f6ba 100644 --- a/src/views/pum/planitem.vue +++ b/src/views/pum/planitem.vue @@ -18,6 +18,21 @@ + + + + + {{ orderObj.name }} + + + {{ orderObj.number }} + + + {{ orderObj.state }} + + + + { + debugger; + console.log(res); + this.orderObj = res; + }) + }, //添加 add() { this.dialog.save = true; diff --git a/src/views/sam/orderitem.vue b/src/views/sam/orderitem.vue index a716b911..da08b471 100644 --- a/src/views/sam/orderitem.vue +++ b/src/views/sam/orderitem.vue @@ -18,10 +18,26 @@ - 订单信息: -
订单编号:
-
订单状态:
-
客户:
+ + + + + {{ orderObj.number }} + + + {{ orderObj.customer }} + + + {{ orderObj.state }} + + + {{ orderObj.customer }} + + + {{ orderObj.customer }} + + + - +