设备点检保养计划新增,自动生成按钮状态修复
This commit is contained in:
parent
ba2272671c
commit
2ae6153046
@ -386,6 +386,7 @@ export default {
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
this.autoGenFlag = false;
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
@ -408,7 +409,7 @@ export default {
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加设备点检计划头";
|
||||
this.title = "添加计划";
|
||||
this.optType = "add";
|
||||
},
|
||||
// 查询明细按钮操作
|
||||
@ -429,7 +430,7 @@ export default {
|
||||
getCheckplan(planId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改设备点检计划头";
|
||||
this.title = "修改计划";
|
||||
this.optType = "edit";
|
||||
});
|
||||
},
|
||||
@ -460,6 +461,8 @@ export default {
|
||||
this.$modal.msgSuccess("已启用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
},err =>{
|
||||
this.form.status='PREPARE';
|
||||
});
|
||||
}
|
||||
},
|
||||
@ -470,13 +473,15 @@ export default {
|
||||
this.$modal.msgSuccess("已停用");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
},err =>{
|
||||
this.form.status='FINISHED';
|
||||
});
|
||||
}
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const planIds = row.planId || this.ids;
|
||||
this.$modal.confirm('是否确认删除设备点检计划头编号为"' + planIds + '"的数据项?').then(function() {
|
||||
this.$modal.confirm('是否确认删除计划编号为"' + planIds + '"的数据项?').then(function() {
|
||||
return delCheckplan(planIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
|
@ -129,7 +129,6 @@ export default {
|
||||
},
|
||||
//设备资源选择回调
|
||||
onMachineryAdd(rows){
|
||||
debugger;
|
||||
if(rows !=null && rows.length >0){
|
||||
rows.forEach(row => {
|
||||
row.planId = this.planId;
|
||||
|
Loading…
Reference in New Issue
Block a user