diff --git a/src/views/inventory/DeviceRepairOrderModify.vue b/src/views/inventory/DeviceRepairOrderModify.vue index 90341427..d72e2d25 100644 --- a/src/views/inventory/DeviceRepairOrderModify.vue +++ b/src/views/inventory/DeviceRepairOrderModify.vue @@ -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;