|
@@ -351,7 +351,7 @@
|
|
content: "",
|
|
content: "",
|
|
state: 2,
|
|
state: 2,
|
|
multiWorktime:0,
|
|
multiWorktime:0,
|
|
- worktimeList:{},
|
|
|
|
|
|
+ worktimeList:[{}],
|
|
degreeId: ''
|
|
degreeId: ''
|
|
}],
|
|
}],
|
|
},
|
|
},
|
|
@@ -432,6 +432,7 @@
|
|
this.currentForm.domains[0].basecostId = this.reportBasecostList[0].id;
|
|
this.currentForm.domains[0].basecostId = this.reportBasecostList[0].id;
|
|
this.currentForm.domains[0].basecostName = this.reportBasecostList[0].name;
|
|
this.currentForm.domains[0].basecostName = this.reportBasecostList[0].name;
|
|
}
|
|
}
|
|
|
|
+ console.log(this.form);
|
|
this.getKaoqin()
|
|
this.getKaoqin()
|
|
this.getWorkTime()
|
|
this.getWorkTime()
|
|
},
|
|
},
|
|
@@ -466,6 +467,8 @@
|
|
if(res.code == 'ok'){
|
|
if(res.code == 'ok'){
|
|
if(res.data.length != 0){
|
|
if(res.data.length != 0){
|
|
this.workTimeText = res.data[0].workingTime
|
|
this.workTimeText = res.data[0].workingTime
|
|
|
|
+
|
|
|
|
+ this.currentForm.reportTimes = res.data[0].startTime
|
|
}else{
|
|
}else{
|
|
this.workTimeText = false
|
|
this.workTimeText = false
|
|
}
|
|
}
|
|
@@ -527,7 +530,7 @@
|
|
progress: 100,
|
|
progress: 100,
|
|
state: 2,
|
|
state: 2,
|
|
multiWorktime:0,
|
|
multiWorktime:0,
|
|
- worktimeList:{},
|
|
|
|
|
|
+ worktimeList:[{}],
|
|
degreeId: ''
|
|
degreeId: ''
|
|
}],
|
|
}],
|
|
}
|
|
}
|
|
@@ -1380,7 +1383,7 @@
|
|
content: "",
|
|
content: "",
|
|
state: 2,
|
|
state: 2,
|
|
multiWorktime:0,
|
|
multiWorktime:0,
|
|
- worktimeList:{},
|
|
|
|
|
|
+ worktimeList:[{}],
|
|
degreeId: ''
|
|
degreeId: ''
|
|
}]
|
|
}]
|
|
// console.log(this.currentForm);
|
|
// console.log(this.currentForm);
|
|
@@ -1425,6 +1428,15 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(this.form[formIndex].reportTimes){
|
|
|
|
+ let timearr = this.form[formIndex].reportTimes.split(',')
|
|
|
|
+ for(let i in timearr){
|
|
|
|
+ let objs = {}
|
|
|
|
+ objs.s = timearr[i].split('-')[0]
|
|
|
|
+ objs.e = timearr[i].split('-')[1]
|
|
|
|
+ alp.push(objs)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.dateAr = alp
|
|
this.dateAr = alp
|
|
if(this.dateAr.length > 0) {
|
|
if(this.dateAr.length > 0) {
|
|
let trus = this.fns()
|
|
let trus = this.fns()
|