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() {