diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index 22aef96..59a603d 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -82,11 +82,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 === "DBRK") { + this.$modal.msgError(`RFID重复:${validateRfidResult}`); + return; + } await this.$refs["form"].validate(valid => { if (valid) { this.localDataForm.wmsInPlanDetailsList = []