优化
This commit is contained in:
@@ -30,6 +30,14 @@ export function sameOutboundTask(left, right) {
|
||||
// Domestic producer stage: these retained loaded fixtures must subsequently be verified
|
||||
// through overseas receipt and dedicated dropship outbound, not generic dispatch.
|
||||
export async function run(context) {
|
||||
return runWorkflow(context, false)
|
||||
}
|
||||
|
||||
export async function prepareBrowserFixture(context) {
|
||||
return runWorkflow(context, true)
|
||||
}
|
||||
|
||||
async function runWorkflow(context, stopBeforeOverseasPda) {
|
||||
const marker = context.marker
|
||||
const savedOptions = context.options.prepareDropshipManualCount
|
||||
const savedContext = { ...context.context }
|
||||
@@ -472,6 +480,15 @@ export async function run(context) {
|
||||
for (const record of group) record.outbound = { task: completed, selected, detail: outbound, completed: true }
|
||||
}
|
||||
try {
|
||||
if (stopBeforeOverseasPda) {
|
||||
const record = await prepare('BROWSER-MULTI', 2)
|
||||
await verify(record, 2)
|
||||
await allocate([record])
|
||||
await progressShipping([record])
|
||||
await convertOverseas([record])
|
||||
context.createdResources.dropshipPalletMatrix.stage = 'READY_FOR_BROWSER_RECEIVING'
|
||||
return
|
||||
}
|
||||
await verify(await prepare('SINGLE-MULTI', 2), 2)
|
||||
await verify(await prepare('SINGLE-SINGLE', 1), 1)
|
||||
await verify(await prepare('SINGLE-MERGE', 2, { mergeToFirstPallet: true }), 1)
|
||||
|
||||
Reference in New Issue
Block a user