feat: 产品管理: 导出&预览: `车费`, `包价`: 没有全年价

main
Lei OT 1 month ago
parent b76ddef16f
commit 6f08760876

@ -80,13 +80,15 @@ export const chunkBy = (use_year, dataList = [], by = []) => {
}, {}); }, {});
// 补全产品旺季的人等分组 (当旺季和平季的人等不完全一致时) // 补全产品旺季的人等分组 (当旺季和平季的人等不完全一致时)
for (const WPI in PGroupSizeSS) { const allWPI = unique(allQuotesSSS2.map((ele) => ele.WPI_SN));
if (Object.prototype.hasOwnProperty.call(PGroupSizeSS, WPI)) { for (const WPI of allWPI) {
// for (const WPI in PGroupSizeSS) {
// if (Object.prototype.hasOwnProperty.call(PGroupSizeSS, WPI)) {
const element = PGroupSizeSS[WPI] || []; const element = PGroupSizeSS[WPI] || [];
const elementP = PGroupSizePS[WPI] || []; const elementP = PGroupSizePS[WPI] || [];
const diff = (elementP || []).filter((ele, index) => !element.includes(ele)); const diff = (elementP || []).filter((ele, index) => !element.includes(ele));
PGroupSizeSS[WPI] = element.concat(diff); PGroupSizeSS[WPI] = element.concat(diff);
} // }
} }
// console.log('PGroupSizeSS', PGroupSizeSS, '\nPGroupSizePS', PGroupSizePS, '\nallQuotesSSS', allQuotesSSS2) // console.log('PGroupSizeSS', PGroupSizeSS, '\nPGroupSizePS', PGroupSizePS, '\nallQuotesSSS', allQuotesSSS2)

Loading…
Cancel
Save