优化
This commit is contained in:
@@ -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(',')};停止固定托盘造数`,
|
||||
|
||||
Reference in New Issue
Block a user