From 2a9c092ffea9882d3d30ce105dc1390680c3cf12 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 19 Nov 2024 14:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/unPlanned/job/receiptJobDetail.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue index 5033f7c5..a2af2f2e 100644 --- a/src/pages/unPlanned/job/receiptJobDetail.vue +++ b/src/pages/unPlanned/job/receiptJobDetail.vue @@ -302,11 +302,11 @@ this.continueScan() } } - let array = this.detailSource.map((item=>{ - return { - ...item, - subList: item.subList.filter(cur=>cur.isRecommend == true) - } + let array = [] + this.detailSource.forEach((item=>{ + let obj = {...item} + obj.subList=item.subList.filter(cur=>cur.isRecommend == true) + array.push(obj) })) calcHandleQty(array); }