优化提交

This commit is contained in:
2026-09-14 09:58:30 +08:00
parent 5ffd6c0118
commit 8cf7c4b9c9
93 changed files with 2945 additions and 188 deletions
@@ -41,7 +41,7 @@ test('P2 to P5 cover all frozen endpoints, replays and conflict boundaries witho
'/api/pda/v1/last-leg/stocktakes',
'/api/pda/v1/last-leg/inventory-moves',
'/api/pda/v1/last-leg/pallet-operations/pallets/resolve',
'/swap', '/disassemble', '/assemble', '/unbind',
'/swap', '/disassemble', '/assemble', '/unbind', '/relabel-pallet-label', '/relabel-disassemble',
'/api/pda/v1/last-leg/relabel-tasks',
'/candidates', '/claim', '/units', '/skip', '/exceptions', '/photos/files', '/complete', '/review',
]) assert.ok(source.includes(endpoint), endpoint)
@@ -50,14 +50,15 @@ test('P2 to P5 cover all frozen endpoints, replays and conflict boundaries witho
'chargeAmount: 0.01', 'cartonMark:', 'fbaCartonMark:',
'inventory-candidates', 'sourceInventoryBalanceId:', 'sourceInventoryPositionId:',
'sourceInboundOrderId:', 'operationWarehouseId:', 'relabelItemForUnit', 'sourceLines.map',
'const packageCount = 1', 'line.packageCount += additionalPackages', 'oldLabel: item.cartonMark',
'sourceLines.push({ source, position, packageCount: 1 })', 'oldLabel: item.cartonMark',
'id(candidate.itemId) !== id(item.itemId)', 'oldLabel: null',
'newLabel: item.fbaCartonMark || item.newSkuCode',
"operationType: changesCartonLabel ? 'CARTON_AND_SKU' : 'SKU_LABEL'", 'skuItems:',
'P5换标费用冻结后开放PDA作业', 'P5换标完成后钱包结算收敛']) {
'P5换标费用冻结后开放PDA作业', 'CUSTOMER_CONFIRM_PENDING', 'confirm-completion',
'P5库存流水记录换标拆托原因和正负变动', 'phase4OverseasRelabel']) {
assert.ok(source.includes(marker), marker)
}
for (const forbidden of ['/outbound', '/returns/outbound', '/dispatch', '/delivery', '/internal/']) {
for (const forbidden of ['/returns/outbound', '/dispatch', '/delivery', '/internal/']) {
assert.equal(source.includes(forbidden), false, forbidden)
}
assert.doesNotMatch(source, /fetch\(|https?:\/\//)