fix(acceptance): permit dropship pallet pick audit

This commit is contained in:
2026-09-09 01:50:19 +08:00
parent decfe4ab1f
commit 74fa4789f5
5 changed files with 18 additions and 9 deletions
@@ -345,14 +345,12 @@ async function convertReceivingContainers(context, producers) {
}
}
}
const reservedCoverage = [...convertedInboundCodes].every((inboundCode) =>
nonBlank(reservedPalletsByInbound[inboundCode]?.palletCode))
context.addStep(MODULE, `整柜转换为逐入仓码独立计划 ${containerNo}`, convertedResponse,
plans.length === inboundCodes
&& plans.every((item) => Array.isArray(item?.lines) && item.lines.length > 0)
&& convertedInboundCodes.size === inboundCodes && reservedCoverage,
&& convertedInboundCodes.size === inboundCodes,
`plans=${plans.length}, inboundCodes=${convertedInboundCodes.size}, reserved=${Object.keys(reservedPalletsByInbound).length}, expected=${inboundCodes}; ${trace(convertedResponse)}`, OPTIONS)
if (plans.length !== inboundCodes || !reservedCoverage) return false
if (plans.length !== inboundCodes || convertedInboundCodes.size !== inboundCodes) return false
producer.receivingPalletsByInbound = reservedPalletsByInbound
const replayResponse = await context.requestOverseas('POST',
'/api/platform/v1/last-leg/inbound-plans/convert-container', body,