From 205a5ddf4ef9206baba2c563a0091378d24e8657 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 10 Oct 2025 16:16:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E5=AD=90=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0work=5Fstart=5Ftime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/mlog6_form.vue | 4 ++++ src/views/wpm/otherlog_form.vue | 4 ++++ src/views/wpm/worktask_form.vue | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/src/views/wpm/mlog6_form.vue b/src/views/wpm/mlog6_form.vue index 364abe04..c28a42c7 100644 --- a/src/views/wpm/mlog6_form.vue +++ b/src/views/wpm/mlog6_form.vue @@ -683,6 +683,10 @@ export default { open(mode = "add") { this.mode = mode; this.visible = true; + if(this.mode == "add"){ + let date = new Date(); + this.form.work_start_time = this.$TOOL.dateFormat1(date); + } return this; }, countNotOkSun() { diff --git a/src/views/wpm/otherlog_form.vue b/src/views/wpm/otherlog_form.vue index aeec5396..7b378835 100644 --- a/src/views/wpm/otherlog_form.vue +++ b/src/views/wpm/otherlog_form.vue @@ -74,6 +74,10 @@ export default { open(mode = "add") { this.mode = mode; this.visible = true; + if(this.mode == "add"){ + let date = new Date(); + this.form.work_start_time = this.$TOOL.dateFormat1(date); + } return this; }, //提交 diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index 0932cd37..8db3eb39 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -1043,6 +1043,7 @@ export default { count_break: 0, count_notok: 0, mlogb: [], + work_start_time: "", }, mlogb: [], userList: [], @@ -1303,6 +1304,10 @@ export default { open(mode = "add") { this.mode = mode; this.visible = true; + if(this.mode == "add"){ + let date = new Date(); + this.form.work_start_time = this.$TOOL.dateFormat1(date); + } return this; }, countNotOkSun() {