From 3ec61d3bd36367989e5b88278deef2f5bd625c0c Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 21 Nov 2025 16:51:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A6=85=E9=81=93183?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlog_form.vue | 40 ++++++++++++---------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 4c13d8b0..bc8603ea 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -17,24 +17,6 @@ style="padding: 0 10px" > - - @@ -419,7 +394,7 @@ export default { this.getEquipment(); this.gettestitem(); let date = new Date(); - this.form.work_start_time = this.form.work_end_time = this.$TOOL.dateFormat(date) + this.form.work_start_time = this.form.work_end_time = this.$TOOL.dateFormat(date); }, methods: { @@ -548,6 +523,19 @@ export default { that.form.route = null; } if (that.mode === "add") { + if(that.mgroupName=='黑化'){ + let times = 0; + that.testitems.forEach(item=>{ + if(item.name=='保温时间'||item.name=='冷却时间'){ + times = times + item.value; + } + }) + let time_diff = times*60*1000; + let start_times = new Date(that.form.work_start_time).getTime(); + let end_time = start_times + time_diff; + let work_end_time = new Date(end_time); + that.form.work_end_time = that.$TOOL.dateFormat(work_end_time); + } that.$API.wpm.mlog.init.req(that.form).then((res) => { that.isSaveing = false; that.$emit("success");