From 5c139f0b7cd9a5aad6d414c57285541683656c1b Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 17 Dec 2024 10:39:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover.vue | 2 +- src/views/wpm_gx/mlog_form.vue | 1 + src/views/wpm_gx/mlogs.vue | 22 +++++----------------- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index cb05fae0..616d7e8b 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -14,7 +14,7 @@ icon="el-icon-plus" @click="table_add(20)" v-auth="'handover.create'" - v-if="mgroupName!=='切片'&&mgroupName!=='拉单丝'&&mgroupName!=='一次复丝'&&mgroupName!=='二次复丝'&&mgroupName!=='切丝排版'" + v-if="mgroupName!=='切片'" >返工 - + @@ -72,7 +72,7 @@ prop="handle_user_name" width="80" > - + @@ -146,7 +146,7 @@ :process="processId" :mgroup="mgroupId" :dept="deptId" - :mgroup_name = "mgroup_name" + :mgroupName = "mgroupName" @success="handleSaveSuccess" @closed="dialog.save = false" > @@ -193,27 +193,15 @@ export default { deptId: null, processId: "", processCate: "", - mgroup_name:'' }; }, - watch: { - mgroupName: { - handler: function (newval,odlval) { - let that = this; - that.params.mgroup = ""; - that.apiObj = null; - that.mgroup_name = newval; - that.getMgroupInfo(); - }, - }, - }, mounted() { - // this.getMgroupInfo(); + this.getMgroupInfo(); }, methods: { getMgroupInfo(){ let that = this; - that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroup_name }).then((res) => { + that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroupName }).then((res) => { if (res.length < 1) { that.$message.error("获取工段错误"); return;