fix:光子日志添加work_start_time
This commit is contained in:
parent
205a5ddf4e
commit
469d9ca3de
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
//提交
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue