fix:光子日志添加work_start_time

This commit is contained in:
shijing 2025-10-10 16:54:53 +08:00
parent 205a5ddf4e
commit 469d9ca3de
3 changed files with 11 additions and 12 deletions

View File

@ -609,6 +609,10 @@ export default {
this.form.material_out = this.material_out;
this.form.handle_date = this.handle_date;
this.form.mgroup = this.mgroup;
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
},
methods: {
getRouteOptions() {
@ -683,10 +687,6 @@ 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() {

View File

@ -68,16 +68,16 @@ export default {
};
},
mounted() {
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
},
methods: {
//
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;
},
//

View File

@ -1075,6 +1075,9 @@ export default {
let handle_date = year + "-" + month + "-" + day;
let dateNow = "" + year + month + day;
this.dateNow = dateNow;
if(this.mode == "add"){
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
this.form.material_out = this.material_out;
this.form.material_in = this.material_in;
this.form.mtask = this.mtask;
@ -1304,10 +1307,6 @@ 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() {