diff --git a/src/views/wpm_bx/handover.vue b/src/views/wpm_bx/handover.vue index 9b7da4f9..68ecc106 100644 --- a/src/views/wpm_bx/handover.vue +++ b/src/views/wpm_bx/handover.vue @@ -295,50 +295,26 @@ export default { }, }, mounted() { - // this.getMgroupInfo(); + this.getMgroupInfo(); }, methods: { getMgroupInfo(){ let that = this; - console.log('that.mgroup_name',that.mgroup_name); - if(that.mgroup_name=="size"){//尺寸检验 - // that.params.material__process__name="一次超洗"; - that.$API.system.dept.list.req({name__contains:'尺寸',page:0}).then((res) => { - if(res.length>0){ - that.deptId = res[0].id; - that.params.dept=res[0].id; - } - that.apiObj = that.$API.wpm.handover.list; - that.$refs.table.refresh(); - }) - }else if(that.mgroup_name=="facade"){//外观检验 - // that.params.material__process__name="二次超洗"; - that.$API.system.dept.list.req({name__contains:'外观',page:0}).then((res) => { - if(res.length>0){ - that.deptId = res[0].id; - that.params.dept=res[0].id; - } - that.apiObj = that.$API.wpm.handover.list; - that.$refs.table.refresh(); - }) - }else{//工段交接 - that.printer_name = localStorage.getItem("printer_name"); - that.$API.mtm.mgroup.list - .req({ page: 0, name: that.mgroup_name }) - .then((res) => { - if (res.length < 1) { - that.$message.error("获取工段错误"); - return; - } - that.$TOOL.data.set('gx_deptID',res[0].belong_dept) - that.mgroupId = res[0].id; - that.processId = res[0].process; - that.processCate = res[0].process_cate; - that.params.mgroup = that.mgroupId; - that.apiObj = that.$API.wpm.handover.list; - that.$refs.table.refresh(); - }); - } + console.log('that.mgroupName',that.mgroupName); + that.printer_name = localStorage.getItem("printer_name"); + that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => { + if (res.length < 1) { + that.$message.error("获取工段错误"); + return; + } + that.$TOOL.data.set('gx_deptID',res[0].belong_dept) + that.mgroupId = res[0].id; + that.processId = res[0].process; + that.processCate = res[0].process_cate; + that.params.mgroup = that.mgroupId; + that.apiObj = that.$API.wpm.handover.list; + that.$refs.table.refresh(); + }); }, printSetting(){ this.setNameVisible = true; diff --git a/src/views/wpm_bx/inm.vue b/src/views/wpm_bx/inm.vue index 9e835ca2..0971f667 100644 --- a/src/views/wpm_bx/inm.vue +++ b/src/views/wpm_bx/inm.vue @@ -3,7 +3,7 @@
领料 @@ -135,7 +119,7 @@ @choseChange="choseChange" > - - + --> - - + --> { @@ -293,7 +279,7 @@ export default { return; } that.mgroupId = res[0].id; - that.$TOOL.data.set('gx_deptID',res[0].belong_dept) + that.$TOOL.data.set('bx_deptID',res[0].belong_dept); that.process = res[0].process; that.params.mgroupx = res[0].id; that.params.belong_dept = res[0].belong_dept;