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

View File

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

View File

@ -1043,7 +1043,6 @@ export default {
count_break: 0, count_break: 0,
count_notok: 0, count_notok: 0,
mlogb: [], mlogb: [],
work_start_time: "",
}, },
mlogb: [], mlogb: [],
userList: [], userList: [],
@ -1075,9 +1074,9 @@ export default {
let handle_date = year + "-" + month + "-" + day; let handle_date = year + "-" + month + "-" + day;
let dateNow = "" + year + month + day; let dateNow = "" + year + month + day;
this.dateNow = dateNow; this.dateNow = dateNow;
if(this.mode == "add"){ // if(this.mode == "add"){
this.form.work_start_time = this.$TOOL.dateFormat1(date); // this.form.work_start_time = this.$TOOL.dateFormat1(date);
} // }
this.form.material_out = this.material_out; this.form.material_out = this.material_out;
this.form.material_in = this.material_in; this.form.material_in = this.material_in;
this.form.mtask = this.mtask; this.form.mtask = this.mtask;