From fd00eee4877edb464199e46869f3aaef5b1f966a Mon Sep 17 00:00:00 2001 From: Kelvin Date: Thu, 2 Jan 2025 15:34:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20rfid=E6=A0=A1=E9=AA=8C=EF=BC=8C=E4=BB=85=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index e6e4a66..a98e238 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -70,11 +70,12 @@ export default { }, /** 提交按钮 */ async submitForm() { - // const validateRfidResult = await this.validateRfid(); - // if (Array.isArray(validateRfidResult) && validateRfidResult.length > 0) { - // this.$modal.msgError(`RFID重复:${validateRfidResult}`); - // return; - // } + const validateRfidResult = await this.validateRfid(); + // 计划类型为采购入库 则开启rfid校验 + if (Array.isArray(validateRfidResult) && validateRfidResult.length > 0 && this.localDataForm.planTypeCode === "CGRK") { + this.$modal.msgError(`RFID重复:${validateRfidResult}`); + return; + } await this.$refs["form"].validate(valid => { if (valid) { this.localDataForm.wmsInPlanDetailsList = []