refactor(入库计划): rfid校验,仅采购入库

This commit is contained in:
Kelvin 2025-01-02 15:34:19 +08:00
parent aa42830129
commit fd00eee487

View File

@ -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 = []