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
@@ -26,10 +26,11 @@ test('module covers the public tail-order write surface before PDA receiving', (
'暂扣命令同键同载荷重放', '暂扣同键异载荷返回A0409', '暂扣尾程订单不能生成人工计划',
'解除本轮单票尾程暂扣', '保存尾程八个人工节点快照', '人工节点同键同载荷重放',
'人工节点同键异载荷返回A0409', '人工节点读取固定为MANUAL且不回退柜级节点',
'人工计划按订单稳定接柜仓回读当前主档并冻结入仓码、托数和操作标志', '人工计划同键异载荷返回A0409',
'预览整柜待生成入仓计划清单', '按柜确认并自动生成入仓计划与实体托盘',
'按柜确认同键同快照幂等重放', '确认后预览待生成票数和托数归零',
]) assert.ok(source.includes(evidence), `missing ${evidence}`)
assert.match(source, /nodes\.data\?\.nodes\?\.length === 8/)
assert.match(source, /creationMode === 'MANUAL'/)
assert.match(source, /creationMode === 'AUTO'/)
assert.match(source, /requestOverseasBinary\('GET'/)
assert.match(source, /palletMergeBatchId/)
})
@@ -49,11 +50,17 @@ test('module is marker-owned and never borrows historical tail orders', () => {
assert.doesNotMatch(source, /records\([^)]*\)\[0\]/)
})
test('manual plans preserve long identifiers and are retained for PDA consumption', () => {
test('container conversion preserves long identifiers and generated pallets for PDA consumption', () => {
assert.match(source, /orderId: id\(order\.id\)/)
assert.doesNotMatch(source, /plannedWarehouse(?:Id|Code|Name):/)
assert.match(source, /!order\.overseasWarehouseId/)
assert.match(source, /planNos: plans/)
assert.match(source, /MANUAL_PLANS_READY/)
assert.match(source, /remain as the marker-owned prerequisites consumed by overseas PDA receiving/)
assert.match(source, /container-preview/)
assert.match(source, /snapshotVersion/)
assert.match(source, /snapshotHash/)
assert.match(source, /convert-container/)
assert.match(source, /自动托盘进入托盘列表并保留FBA目的仓/)
assert.match(source, /planNos: generated\.map/)
assert.match(source, /generatedPlans: generated/)
assert.match(source, /AUTO_CONTAINER_PLANS_READY/)
assert.match(source, /remain as marker-owned prerequisites consumed by overseas PDA receiving/)
})