|
@@ -231,7 +231,6 @@ export default {
|
|
|
})
|
|
|
// this.getList();
|
|
|
this.getTreeselect();
|
|
|
- this.getTreeselect();
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
@@ -289,20 +288,24 @@ export default {
|
|
|
this.form.devSupId=10081;
|
|
|
this.form.devEngineerId=10082;
|
|
|
this.form.managerconId=10084;
|
|
|
- console.log(rows)
|
|
|
+ console.log(this.form)
|
|
|
this.devList = rows;
|
|
|
console.log(this.devList)
|
|
|
- if (rows[0].workStartTime === rows[0].createdate)
|
|
|
- this.isToday = true;
|
|
|
+ if (rows[0].bookingworkticket.workStartTime === rows[0].createdate){
|
|
|
+ this.isToday = true;
|
|
|
+ this.form.isToday = 1;
|
|
|
+ }
|
|
|
+
|
|
|
if (rows[0].workType === 1 || rows[0].workType === 2 || rows[0].workType === 15) {
|
|
|
this.isSpecial = true;
|
|
|
+ this.form.isSpecial = 1;
|
|
|
}
|
|
|
this.form.invoiceId=rows[0].bookingticketId;
|
|
|
listPostUser({
|
|
|
// postCode: 'wxjl'
|
|
|
}).then(response => {
|
|
|
this.managerOptions = response;
|
|
|
- console.log(this.managerOptions)
|
|
|
+ // console.log(this.managerOptions)
|
|
|
});
|
|
|
this.visible = true
|
|
|
},
|
|
@@ -318,15 +321,18 @@ export default {
|
|
|
this.form.files.push(obj)
|
|
|
}
|
|
|
}
|
|
|
- if (this.form.workStartTime && this.form.workStartTime === this.form.createdate)
|
|
|
- this.form.isToday = 1;
|
|
|
+
|
|
|
+ if (this.form.workStartTime && this.form.workStartTime === this.form.createdate){
|
|
|
+ this.form.isToday = 1;
|
|
|
+ }
|
|
|
+
|
|
|
if (this.form.workType === 1 || this.form.workType === 2 || this.form.workType === 15) {
|
|
|
this.form.isSpecial = 1;
|
|
|
}
|
|
|
addInvoice(this.form).then(response => {
|
|
|
this.msgSuccess(this.$t('新增成功'));
|
|
|
this.visible = false;
|
|
|
- // this.getList();
|
|
|
+ this.getList();
|
|
|
})
|
|
|
}
|
|
|
});
|