From 1de0d342d55cfaed2e09b8ff419e7a37c2a2941f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 1 Aug 2024 08:37:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=B7=A5=E6=AE=B5?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover.vue | 4 ++++ src/views/wpm_gx/inm.vue | 4 ++++ src/views/wpm_gx/mlog_form.vue | 2 +- src/views/wpm_gx/mlogb_form.vue | 2 +- src/views/wpm_gx/mlogs.vue | 4 ++++ src/views/wpm_gx/mtask.vue | 4 ++++ 6 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 2680711f..875d8ea0 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -216,6 +216,10 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, search: that.mgroupName }) .then((res) => { + if(res.length != 1){ + that.$message.error("获取工段错误"); + return; + } that.mgroupId = res[0].id; that.processId = res[0].process; that.processCate = res[0].process_cate; diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index cf955cde..6c132b3b 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -152,6 +152,10 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, search: that.mgroupName }) .then((res) => { + if(res.length != 1){ + that.$message.error("获取工段错误"); + return; + } that.mgroupId = res[0].id; that.params.mgroupx = res[0].id; that.apiObj = that.$API.wpm.wmaterial.list; diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index c2e6a6ae..e0a771f0 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -315,7 +315,7 @@ export default { getRoute(id) { let that = this; that.$API.mtm.route.list - .req({ process: that.process, page: 0 }) + .req({ process: that.process, page: 0, routepack__state: 30 }) .then((res) => { that.routeOptions = res; }); diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue index c8713645..82e28f37 100644 --- a/src/views/wpm_gx/mlogb_form.vue +++ b/src/views/wpm_gx/mlogb_form.vue @@ -146,7 +146,7 @@ export default { getMtask() { let that = this; this.$API.pm.mtask.list - .req({ page: 0, mgroup: that.mgroup }) + .req({ page: 0, mgroup: that.mgroup, state: 20 }) .then((res) => { that.options = res; }); diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index 51e8b217..ffa4c472 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -178,6 +178,10 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, search: that.mgroupName }) .then((res) => { + if(res.length != 1){ + that.$message.error("获取工段错误"); + return; + } that.mgroupId = res[0].id; that.deptId = res[0].belong_dept; that.processId = res[0].process; diff --git a/src/views/wpm_gx/mtask.vue b/src/views/wpm_gx/mtask.vue index fc4747c0..1a50da76 100644 --- a/src/views/wpm_gx/mtask.vue +++ b/src/views/wpm_gx/mtask.vue @@ -111,6 +111,10 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, search: that.mgroupName }) .then((res) => { + if(res.length != 1){ + that.$message.error("获取工段错误"); + return; + } that.mgroupId = res[0].id; that.processId = res[0].process; that.processCate = res[0].process_cate;