选入优化

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

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

Loading…
Cancel
Save