diff --git a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue index 59a603d..004fee4 100644 --- a/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue +++ b/src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue @@ -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 },