From 170e49c13e4475982df6da9821c4ba347253c79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=87?= <2433098676@qq.com> Date: Fri, 11 Aug 2023 15:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E5=85=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inventory/DeviceRepairOrderModify.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;