test: prepare isolated gray domestic PDA H5 tasks without auto-picking
This commit is contained in:
@@ -400,6 +400,7 @@ async function fragment(context, source, rootOrderId, sequence) {
|
||||
warehouseId: id(summary.warehouseId), warehouseName: summary.warehouseName,
|
||||
sourcePackageCount: sequence === 0 ? 2 : 1, sequence,
|
||||
})
|
||||
if (context.context?.prepareDomesticPdaH5 && result?.preparedForH5) return result
|
||||
check(context, 'F40 一箱来源通过真实 PDA 完成装柜', Boolean(result?.taskId && result?.sourceInboundId), `sequence=${sequence}`)
|
||||
const current = await api(context, 'GET', '回查该片真实入仓来源',
|
||||
query(`/api/platform/inbounds/${result.sourceInboundId}`, { tenantId: id(summary.tenantId) }))
|
||||
@@ -618,6 +619,14 @@ async function runRootFulfillment(context) {
|
||||
&& Number(scope.createdResources.inboundMeasurement.actualPackageCount) === 2, `root=${rootOrderId}`)
|
||||
proof.currentStage = 'ROOT_LOAD_AND_SHIP'
|
||||
const first = await fragment(scope, rootInbound, rootOrderId, 0)
|
||||
if (scope.context.prepareDomesticPdaH5) {
|
||||
check(scope, '国内H5待拣任务已准备且未执行拣货', first?.preparedForH5 === true && Boolean(first.taskId), 'PREPARED_NOT_VERIFIED')
|
||||
proof.domesticPdaH5Fixture = first
|
||||
proof.finalStatus = 'PREPARED_NOT_VERIFIED'
|
||||
proof.currentStage = 'DOMESTIC_PDA_H5_READY'
|
||||
proof.cleanup = 'Fresh customer/order/container/task retained for manual H5 execution; no picking, completion or overseas work executed'
|
||||
return proof
|
||||
}
|
||||
proof.fragments.push(first)
|
||||
proof.currentStage = 'REMAINDER_IDENTITY'
|
||||
const tree = await api(scope, 'GET', '首柜 PDA 完成后读取正式余量树',
|
||||
|
||||
Reference in New Issue
Block a user