fix:光子日志回退到不需要传work_start_time

This commit is contained in:
shijing 2025-10-11 10:05:49 +08:00
parent 469d9ca3de
commit b6f7509362
3 changed files with 11 additions and 12 deletions

View File

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

View File

@ -68,10 +68,10 @@ export default {
};
},
mounted() {
if(this.mode == "add"){
let date = new Date();
this.form.work_start_time = this.$TOOL.dateFormat1(date);
}
// if(this.mode == "add"){
// let date = new Date();
// this.form.work_start_time = this.$TOOL.dateFormat1(date);
// }
},
methods: {
//

View File

@ -1043,7 +1043,6 @@ export default {
count_break: 0,
count_notok: 0,
mlogb: [],
work_start_time: "",
},
mlogb: [],
userList: [],
@ -1075,9 +1074,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);
}
// 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;