From f93cfa8000765e2a4a6793dbfc75ce4dd8a8dbf6 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 5 Sep 2024 12:12:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=BB=91=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A3=80=E9=AA=8C=E9=99=84=E4=BB=B6excel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlog_detail.vue | 24 +++++++++-------- src/views/wpm_gx/mlog_form.vue | 44 +++++++++++++++++++++++++------- 2 files changed, 48 insertions(+), 20 deletions(-) diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index 2056c9ea..a2aca7d7 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -33,11 +33,14 @@ {{ mlogItem.create_time }} + + {{mlogItem.test_file}} +
提交 + 放行审批 @@ -69,7 +73,7 @@
新增 编辑 @@ -254,7 +258,7 @@ 检验 @@ -581,10 +585,7 @@ export default { let obj = {}; obj.oinfo_json = that.oinfo_json; obj.test_file = that.test_file; - console.log('test_file',that.test_file) - console.log('oinfo_json',that.oinfo_json) - that.$API.wpm.mlog.change.req(that.mlogItem.id, obj) - .then((res) => { + that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => { let ticket = {}; that.isSaveing = true; ticket.title = '退火放行审批单'; @@ -608,8 +609,9 @@ export default { this.$refs.tableOut.refresh(); }, fileUPSuccess(res) { + let that = this; console.log('res',res); - this.test_file = res.id; + this.test_file = res.path; }, handleEditSuccess() {}, //设置过滤项 diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 2458c29c..e3bf86bb 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -162,6 +162,21 @@ > + + + + + + + + + { - that.isSaveing = false; - that.$emit("success"); - that.visible = false; - that.$message.success("操作成功"); - }); + if(that.mgroupName=='黑化'){ + that.form.test_file = that.test_file; + } + that.$API.wpm.mlog.change.req(that.form.id, that.form).then((res) => { + that.isSaveing = false; + that.$emit("success"); + that.visible = false; + that.$message.success("操作成功"); + }); } } });