refactor(入库计划): rfid校验,增加本地表单数据校验
This commit is contained in:
parent
dbaceed5ae
commit
655ec104d0
@ -77,6 +77,11 @@ export default {
|
||||
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 duplicateList = rfidList.filter((item, index) => rfidList.indexOf(item) !== index);
|
||||
if (Array.isArray(rfidList) || rfidList.length) {
|
||||
return duplicateList;
|
||||
}
|
||||
const res = await isDuplicateRfid(rfidList.join(","));
|
||||
return res.data
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user