This commit is contained in:
2026-10-21 15:10:44 +08:00
parent 40a03978cd
commit 6fe632f28e
34 changed files with 372 additions and 110 deletions
@@ -269,11 +269,11 @@ export async function reusablePallets(context, warehouseId) {
}
pallets.push({ id: asId(exact.id), code: palletCode })
}
if (missingFixed.length === 0) {
if (pallets.length > 0) {
reusablePalletsByWarehouse.set(scopedCacheKey, pallets)
return pallets
}
context.assert(MODULE, '固定称重托盘主数据完整', null, false,
context.assert(MODULE, '指定称重托盘池至少存在一只可复用托盘', null, false,
`warehouseId=${warehouseId}, missing=${missingFixed.join(',')}`, OPTIONS)
context.addCoverageGap?.(MODULE, 'measurement-pallet-fixture', '固定称重托盘主数据缺失',
`warehouseId=${warehouseId}, missing=${missingFixed.join(',')};停止固定托盘造数`,