From 95b3ecad9aa496026f59efde9b711d544a438b95 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 20 Mar 2025 16:09:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97mlog=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=93=8D=E4=BD=9C=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form.vue | 12 ++++-- src/views/wpm_bx/mlogs.vue | 5 ++- src/views/wpm_gx/index.vue | 3 ++ src/views/wpm_gx/mlog_form.vue | 73 ++++++++++++++++++++++++++++++---- src/views/wpm_gx/mlogs.vue | 9 +++-- 5 files changed, 86 insertions(+), 16 deletions(-) diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 39e9ed84..7b1a35d7 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -17,7 +17,7 @@ style="padding: 0 10px" > - + + const defaultForm = { - mtype: "", + mtype: 10, supplier:'', route: "", equipment: "", @@ -265,6 +265,10 @@ export default { type: String, default: "", }, + mgroupMtype: { + type: String, + default: "", + } }, computed: { title() { diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index f00f630d..478c2cb5 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -160,6 +160,7 @@ :mgroup="mgroupId" :dept="deptId" :mgroupName = "mgroupName" + :mgroupMtype="mgroupMtype" @success="handleSaveSuccess" @closed="dialog.save = false" > @@ -211,6 +212,7 @@ export default { deptId: null, processId: "", processCate: "", + mgroupMtype: "", }; }, watch: { @@ -239,10 +241,11 @@ export default { } that.deptId = res.belong_dept; that.processId = res.process; + that.mgroupMtype = res.mtype; that.processCate = res.process_cate; that.params.mgroup = res.id; that.apiObj = that.$API.wpm.mlog.list; - that.$refs.table.refresh(); + // that.$refs.table.refresh(); }); }, getRemaTime(row){ diff --git a/src/views/wpm_gx/index.vue b/src/views/wpm_gx/index.vue index 73821719..8bd639e4 100644 --- a/src/views/wpm_gx/index.vue +++ b/src/views/wpm_gx/index.vue @@ -14,6 +14,7 @@ v-if="values == '日志'&&componentsShow" :mgroupName="mgroupName" :mgroupId="mgroupId" + :mgroupMtype = "mgroupMtype" :mgroupcode="mgroup_code" :processId="processId" :deptId = "mgroupDept" @@ -84,6 +85,7 @@ export default { selectedIndex:0, mgroup_code:'', mgroupDept:'', + mgroupMtype:'', processtype:'', processId:'', componentsShow:false, @@ -122,6 +124,7 @@ export default { that.mgroupName = res[0].name; that.mgroupId = res[0].id; that.processId = res[0].process; + that.mgroupMtype = res[0].mtype; that.processtype = res[0].process_type; that.mgroupDept = res[0].belong_dept; that.componentsShow = true; diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 3bba92a5..87bbee85 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -17,7 +17,7 @@ style="padding: 0 10px" > - + + - + + + + + + + + + + + + + + + + + + + - 0&&row.reminder_interval_list[0]){ if(temp