test: sequence terminal drayage around unloading
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { prepareTerminalDrayage } from './phase5-terminal-drayage.mjs'
|
||||
|
||||
const MODULE = 'phase4-overseas-pda'
|
||||
const SCENARIO = 'phase4-overseas-pda-container-receiving'
|
||||
const OPTIONS = { scenario: SCENARIO, deploymentBlocker: true }
|
||||
@@ -908,6 +910,12 @@ export async function run(context) {
|
||||
'Dropship/FBA与OVERSEAS实际处理柜尚未全部达到PICKUP_READY;跨区消费已独立验证,不回退处理历史柜')
|
||||
return
|
||||
}
|
||||
if (producers.length && context.options?.modules?.includes('phase5-terminal-drayage')
|
||||
&& !(await prepareTerminalDrayage(context, producers[0]))) {
|
||||
blockerGap(context, '目的港码头拖车提柜前置',
|
||||
'本轮首个PICKUP_READY货柜未能在卸柜前完成选车队、预约和实际提柜')
|
||||
return
|
||||
}
|
||||
for (const [index, producer] of (producers.length ? producers : [null]).entries()) {
|
||||
context.pdaContainerSuffix = producer?.containerNo || `CONTAINER-${index + 1}`
|
||||
context.createdResources.phase4OverseasPda.finalStatus = null
|
||||
|
||||
Reference in New Issue
Block a user