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.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"){
|
||||||
|
let date = new Date();
|
||||||
|
this.form.work_start_time = this.$TOOL.dateFormat1(date);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRouteOptions() {
|
getRouteOptions() {
|
||||||
|
@ -683,10 +687,6 @@ export default {
|
||||||
open(mode = "add") {
|
open(mode = "add") {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
if(this.mode == "add"){
|
|
||||||
let date = new Date();
|
|
||||||
this.form.work_start_time = this.$TOOL.dateFormat1(date);
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
countNotOkSun() {
|
countNotOkSun() {
|
||||||
|
|
|
@ -68,16 +68,16 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if(this.mode == "add"){
|
||||||
|
let date = new Date();
|
||||||
|
this.form.work_start_time = this.$TOOL.dateFormat1(date);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//显示
|
//显示
|
||||||
open(mode = "add") {
|
open(mode = "add") {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
if(this.mode == "add"){
|
|
||||||
let date = new Date();
|
|
||||||
this.form.work_start_time = this.$TOOL.dateFormat1(date);
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
//提交
|
//提交
|
||||||
|
|
|
@ -1075,6 +1075,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"){
|
||||||
|
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;
|
||||||
|
@ -1304,10 +1307,6 @@ export default {
|
||||||
open(mode = "add") {
|
open(mode = "add") {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
if(this.mode == "add"){
|
|
||||||
let date = new Date();
|
|
||||||
this.form.work_start_time = this.$TOOL.dateFormat1(date);
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
countNotOkSun() {
|
countNotOkSun() {
|
||||||
|
|
Loading…
Reference in New Issue