浏览代码

compile fix

production
kelvin.yau 1周前
父节点
当前提交
f381ba931e
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      src/components/DoSearch/batchReleaseReplenishmentHtml.ts

+ 6
- 6
src/components/DoSearch/batchReleaseReplenishmentHtml.ts 查看文件

@@ -61,16 +61,16 @@ export function deriveReplenishmentFetchParams(
};
}

const shopTokens = [
...new Set(dosForRelease.map(shopTokenFromDoRow).filter(Boolean)),
];
const trucks = [
...new Set(
const shopTokens = Array.from(
new Set(dosForRelease.map(shopTokenFromDoRow).filter(Boolean)),
);
const trucks = Array.from(
new Set(
dosForRelease
.map((row) => row.truckLanceCode?.trim())
.filter((value): value is string => Boolean(value)),
),
];
);

if (shopTokens.length === 1 && trucks.length === 1) {
return { shopName: shopTokens[0], truckLaneCode: trucks[0] };


正在加载...
取消
保存