fix(lastleg): complete generated pallet receiving flow

This commit is contained in:
2026-09-09 02:54:09 +08:00
parent 86646ccd69
commit c5862db98d
20 changed files with 367 additions and 225 deletions
@@ -96,6 +96,7 @@ async function uploadAndVerify(context, { type, uploadPath, readPath, completePa
export async function run(context) {
const fixture = context.createdResources?.phase3Loading
const outbound = context.createdResources?.phase3OutboundDispatch
const containerId = id(fixture?.containerBookingId)
const planId = id(fixture?.loadingPlanId)
const warehouseId = id(fixture?.warehouseId)
@@ -106,6 +107,13 @@ export async function run(context) {
OPTIONS)
return
}
if (outbound?.marker !== context.marker || id(outbound?.containerBookingId) !== containerId
|| outbound?.finalStatus !== 'WAITING_FOR_LOADING' || outbound?.finalInboundStatus !== 'LOADED') {
context.addStep(MODULE, '取得本轮已确认国内离仓货柜', null, false,
`marker=${outbound?.marker || 'missing'}, status=${outbound?.finalStatus || 'missing'}, inboundStatus=${outbound?.finalInboundStatus || 'missing'}, containerBookingId=${id(outbound?.containerBookingId) || 'missing'}`,
OPTIONS)
return
}
const specs = [
{