From 6f087608765e37d9e806a07bde130a7c854bc188 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 19 Aug 2025 17:07:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86:?= =?UTF-8?q?=20=E5=AF=BC=E5=87=BA&=E9=A2=84=E8=A7=88:=20`=E8=BD=A6=E8=B4=B9?= =?UTF-8?q?`,=20`=E5=8C=85=E4=BB=B7`:=20=E6=B2=A1=E6=9C=89=E5=85=A8?= =?UTF-8?q?=E5=B9=B4=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useProductsQuotationFormat.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hooks/useProductsQuotationFormat.js b/src/hooks/useProductsQuotationFormat.js index a61a249..daa47a4 100644 --- a/src/hooks/useProductsQuotationFormat.js +++ b/src/hooks/useProductsQuotationFormat.js @@ -80,13 +80,15 @@ export const chunkBy = (use_year, dataList = [], by = []) => { }, {}); // 补全产品旺季的人等分组 (当旺季和平季的人等不完全一致时) - for (const WPI in PGroupSizeSS) { - if (Object.prototype.hasOwnProperty.call(PGroupSizeSS, WPI)) { + const allWPI = unique(allQuotesSSS2.map((ele) => ele.WPI_SN)); + for (const WPI of allWPI) { + // for (const WPI in PGroupSizeSS) { + // if (Object.prototype.hasOwnProperty.call(PGroupSizeSS, WPI)) { const element = PGroupSizeSS[WPI] || []; const elementP = PGroupSizePS[WPI] || []; const diff = (elementP || []).filter((ele, index) => !element.includes(ele)); PGroupSizeSS[WPI] = element.concat(diff); - } + // } } // console.log('PGroupSizeSS', PGroupSizeSS, '\nPGroupSizePS', PGroupSizePS, '\nallQuotesSSS', allQuotesSSS2)