From 655ec104d088f23d9b929e8974f8a939a5f26c9c Mon Sep 17 00:00:00 2001 From: Kelvin Date: Thu, 2 Jan 2025 15:59:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=85=A5=E5=BA=93=E8=AE=A1=E5=88=92):?= =?UTF-8?q?=20rfid=E6=A0=A1=E9=AA=8C=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E8=A1=A8=E5=8D=95=E6=95=B0=E6=8D=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/wm/inPlan/wmsInPlanKnifeBackFormCmps.vue | 5 +++++ 1 file changed, 5 insertions(+) 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 },