fix(入库计划): rfid验证方法修复

This commit is contained in:
Kelvin 2024-11-28 10:55:02 +08:00
parent 83e9c5bdc2
commit 53d716fd23

View File

@ -63,11 +63,8 @@ export default {
this.$emit("update:visible", false)
},
async validateRfid() {
const rfidList = this.wmsInPlanDetailEntityList.filter(entity => {
if (entity.rfid && entity.rfid.trim().length > 0) {
return entity.rfid;
}
});
const rfidList = this.wmsInPlanDetailEntityList.filter(entity => entity.rfid && entity.rfid.trim().length > 0).map(entity => entity.rfid);
console.log(rfidList)
if (!Array.isArray(rfidList) || rfidList.length === 0) return
const res = await isDuplicateRfid(rfidList.join(","));
return res.data