From 43e5dff859e124ac76446dd26b77846a05b51692 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 11 Mar 2025 17:02:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E5=AD=90=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E4=B8=AD=E6=97=A5=E5=BF=97=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E5=8F=98=E5=8A=A8=EF=BC=9B=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=BF=94=E5=B7=A5=E5=92=8C=E5=90=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/fmlogs.vue | 60 ++++++++++++++++++++++++++----------- src/views/wpm_gx/mlogs.vue | 25 ++++++++++++---- 2 files changed, 62 insertions(+), 23 deletions(-) diff --git a/src/views/wpm_gx/fmlogs.vue b/src/views/wpm_gx/fmlogs.vue index 5ef1642a..399359dd 100644 --- a/src/views/wpm_gx/fmlogs.vue +++ b/src/views/wpm_gx/fmlogs.vue @@ -9,6 +9,13 @@ v-auth="'mlog.create'" >新增 + 返工
@@ -44,6 +50,11 @@ + + + { - if (res.length < 1) { - that.$message.error("获取工段错误"); - return; - } - that.mgroupId = res[0].id; - that.deptId = res[0].belong_dept; - that.processId = res[0].process; - that.processCate = res[0].process_cate; - that.params.mgroup = res[0].id; - that.apiObj = that.$API.wpm.fmlog.list; - }); + that.params.mgroup = that.mgroupId; + that.apiObj = that.$API.wpm.fmlog.list; }, methods: { + enabledChange(row){ + this.$API.wpm.fmlog.toggleenabled.req(row.id).then(res=>{ + // this.$refs.table.refresh(); + }) + }, detailClose() { this.dialog.detail = false; this.$refs.table.refresh(); @@ -164,6 +182,12 @@ export default { this.$refs.saveDialog.open("add"); }); }, + table_rework(){ + this.dialog.save = true; + this.$nextTick(() => { + this.$refs.saveDialog.open("add","rework"); + }); + }, //编辑日志 table_edit(row) { this.dialog.save = true; diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index 44abed4f..8c9d8ce2 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -167,10 +167,26 @@ import detailDrawer from "./mlog_detail.vue"; export default { props: { + deptId: { + type: String, + default: "", + }, + mgroupId: { + type: String, + default: "", + }, mgroupName: { type: String, default: "", }, + processId: { + type: String, + default: "", + }, + mgroupcode: { + type: String, + default: "", + }, }, name: "mlog", components: { @@ -190,13 +206,13 @@ export default { selection: [], mtask: "", mlogId: "", - deptId: null, - processId: "", - processCate: "", }; }, mounted() { - this.getMgroupInfo(); + let that = this; + that.params.mgroup = that.mgroupId; + that.apiObj = that.$API.wpm.mlog.list; + // this.getMgroupInfo(); }, methods: { getMgroupInfo(){ @@ -209,7 +225,6 @@ export default { that.mgroupId = res[0].id; that.deptId = res[0].belong_dept; that.processId = res[0].process; - that.processCate = res[0].process_cate; that.params.mgroup = res[0].id; that.apiObj = that.$API.wpm.mlog.list; that.$refs.table.refresh();