|
@@ -143,21 +143,20 @@ export default window.$crudCommon({
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.updatedFormData = {
|
|
this.updatedFormData = {
|
|
|
- number: this.form.number,
|
|
|
|
|
- identityCard: this.form.identityCard,
|
|
|
|
|
|
|
+ technicianId: this.form.technicianId,
|
|
|
yearAndMonth: this.params.yearAndMonth,
|
|
yearAndMonth: this.params.yearAndMonth,
|
|
|
...updatedData
|
|
...updatedData
|
|
|
};
|
|
};
|
|
|
callback && callback();
|
|
callback && callback();
|
|
|
},
|
|
},
|
|
|
getDelParams(row) {
|
|
getDelParams(row) {
|
|
|
- return [{ yearAndMonth: this.params.yearAndMonth, number: row.number, identityCard: row.identityCard }]
|
|
|
|
|
|
|
+ return [{ yearAndMonth: this.params.yearAndMonth, technicianId: row.technicianId }]
|
|
|
},
|
|
},
|
|
|
getBatchDelParams() {
|
|
getBatchDelParams() {
|
|
|
let delArr = [];
|
|
let delArr = [];
|
|
|
this.data.forEach(item => {
|
|
this.data.forEach(item => {
|
|
|
if (this.ids.indexOf(item.id) > -1) {
|
|
if (this.ids.indexOf(item.id) > -1) {
|
|
|
- delArr.push({ yearAndMonth: this.params.yearAndMonth, number: item.number, identityCard: item.identityCard });
|
|
|
|
|
|
|
+ delArr.push({ yearAndMonth: this.params.yearAndMonth, technicianId: row.technicianId });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
return delArr;
|
|
return delArr;
|