update 特殊设备保养
This commit is contained in:
@@ -519,7 +519,7 @@ export default {
|
||||
relatePlan: null,
|
||||
maintainPlanId: null,
|
||||
equipmentId: null,
|
||||
maintainWorker: null,
|
||||
maintainWorker: [],
|
||||
maintainOrderNumber: null,
|
||||
startTime: null,
|
||||
endTime: null,
|
||||
@@ -582,10 +582,12 @@ export default {
|
||||
if (!valid) {
|
||||
return;
|
||||
}
|
||||
this.form.maintainWorker = this.form.maintainWorker.join(',');
|
||||
// 修改的提交
|
||||
if (this.form.id != null) {
|
||||
this.put(this.form).then((response) => {
|
||||
this.put({
|
||||
...this.form,
|
||||
maintainWorker: this.form.maintainWorker.join(','),
|
||||
}).then((response) => {
|
||||
this.$modal.msgSuccess('修改成功');
|
||||
this.open = false;
|
||||
this.getList();
|
||||
@@ -593,10 +595,27 @@ export default {
|
||||
return;
|
||||
}
|
||||
// 添加的提交
|
||||
this.post(this.form).then((response) => {
|
||||
this.post({
|
||||
...this.form,
|
||||
maintainWorker: this.form.maintainWorker.join(','),
|
||||
}).then((response) => {
|
||||
this.$modal.msgSuccess('新增成功');
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
||||
// 跳转至 备品备件 保养
|
||||
const toSparePartsMaintain = () => {
|
||||
this.open = false;
|
||||
// 没有备品备件保养模块。。。
|
||||
};
|
||||
|
||||
this.$confirm('是否有备品备件更换?', '提示', {
|
||||
confirmButtonText: '有',
|
||||
cancelButtonText: '没有',
|
||||
})
|
||||
.then(toSparePartsMaintain)
|
||||
.catch(() => {
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user