This commit is contained in:
2026-08-13 09:51:27 +08:00
parent 95849f248f
commit af75569c78
4 changed files with 33 additions and 14 deletions
@@ -45,7 +45,7 @@ export async function run(context) {
const tenantId = id(source?.tenantId)
const inboundId = id(source?.inboundId)
if (!tenantId || !inboundId || source?.marker !== context.marker) {
context.addStep(MODULE, '取得独立柜次级 INBOUNDED fixture', null, false,
context.addStep(MODULE, '取得独立柜次级 WAIT_SPLIT fixture', null, false,
`fixture marker=${source?.marker || 'missing'}, current marker=${context.marker}`, OPTIONS)
return
}
@@ -56,7 +56,8 @@ export async function run(context) {
`tenantId=${tenantId}, inboundId=${inboundId}`, OPTIONS)
const warehouseId = id(inbound?.summary?.warehouseId)
context.assert(MODULE, '柜次候选入库单状态、测量和仓库门禁有效', inboundResponse,
inbound?.summary?.processStatus === 'INBOUNDED' && inbound?.summary?.measureReviewStatus === 'APPROVED'
['WAIT_SPLIT', 'INBOUNDED'].includes(inbound?.summary?.processStatus)
&& inbound?.summary?.measureReviewStatus === 'APPROVED'
&& Boolean(warehouseId),
`status=${inbound?.summary?.processStatus || 'missing'}, review=${inbound?.summary?.measureReviewStatus || 'missing'}, warehouseId=${warehouseId || 'missing'}`, OPTIONS)
if (!warehouseId) return