diff --git a/src/views/mtm/route_show.vue b/src/views/mtm/route_show.vue index 68224777..5f97145c 100644 --- a/src/views/mtm/route_show.vue +++ b/src/views/mtm/route_show.vue @@ -37,7 +37,7 @@ - + diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 1e27cbb9..b3bbc612 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -109,7 +109,7 @@ - + { + 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;