选入优化

dev
薛宇 2 years ago
parent 2c62bd4349
commit 170e49c13e

@ -299,7 +299,7 @@ export default {
urgencyType: [{required: true, message: '请选择紧急程度', trigger: 'blur'}],
planTime: [{required: true, message: '请选择计划完成日期', trigger: 'blur'}],
},
check: true,
check: false,
detailList: [],
inputQuery: {},
repairOrderSetVisible: false,
@ -372,6 +372,7 @@ export default {
return;
}
this.setDeptAnInvName();
this.check = false
this.deviceDialogVisible = true;
this.filterQuery = {
code: null,
@ -438,10 +439,14 @@ export default {
this.selectRow = val[0];
},
combine() {
if (this.check) {
if (this.check == false) {
this.$message.error("请勾选设备!")
return;
}
if (this.repairOrder.deviceName != null && this.repairOrder.deviceName != '') {
this.$message.error("该设备已选入!")
return
}
this.deviceDialogVisible = false;
this.repairOrder.code = this.selectRow.code;
this.repairOrder.deviceName = this.selectRow.deviceName;

Loading…
Cancel
Save