fix: complete pallet code cross-region flow

This commit is contained in:
2026-09-09 19:14:47 +08:00
parent 7678fd85ff
commit e30255ff58
9 changed files with 175 additions and 9 deletions
@@ -69,6 +69,25 @@ test('records LOADED and clears the reason only after a real LOADED reread', ()
assert.equal(result.notCleanedReason, null)
})
test('finalize acceptance covers stable pallet generation and both print modes', () => {
const value = source('./phase3-loading-finalize.mjs')
assert.match(value, /pallet-labels`/)
assert.match(value, /`\$\{base\}\/prepare\?warehouseId=/)
assert.match(value, /柜号-FBA内部编号-仓内连续下标/)
assert.match(value, /重复生成散货托盘码返回稳定清单/)
assert.match(value, /destinationWarehouseCode: null, count: null/)
assert.match(value, /按指定 FBA 仓补打 1 张托盘码 PDF/)
assert.match(value, /pdfMagic === '%PDF'/)
assert.match(value, /palletLabelManifest,/)
})
test('overseas conversion proves source-code preservation and native code generation boundaries', () => {
const value = source('./phase4-overseas-pda.mjs')
assert.match(value, /头程 FBA 散货托盘码跨区原样用于实体托盘/)
assert.match(value, /标准海外仓订单由海外仓生成本地实体托盘码/)
assert.match(value, /actualPalletCodes\.every\(\(code\) => code\.startsWith\('PLT-'\)\)/)
})
test('container loading follows push, claim, real pick, completed sequence', () => {
const value = source('./phase3-container-loading.mjs')
assert.match(value, /\['EDITING', 'WAIT_LOADING'\]\.includes\(containerDetail\?\.planStatus\)/)