fix: sync PDA picking actions immediately

This commit is contained in:
2026-09-11 18:24:18 +08:00
parent ec62a8a397
commit 8e370aed83
4 changed files with 23 additions and 10 deletions
+3
View File
@@ -128,6 +128,9 @@ test('PDA cabinet picking adapter claims online and submits one atomic batch', (
assert.match(source, /palletNo: action\.type === 'PICK_PALLET' \? action\.palletNo : null/)
assert.match(page, /type: 'PICK_PALLET'[\s\S]*?palletNo: item\.palletNo/)
assert.match(page, /扫描托盘码[\s\S]*?托内任一箱码/)
assert.match(page, /确认整托拣出/)
assert.match(page, /async pickItem[\s\S]*?isSealedPalletItem\(item\)[\s\S]*?submitImmediateItemAction\(item, 'PICK_PALLET', \{ palletNo: item\.palletNo \}\)/)
assert.match(page, /或点击“确认整托拣出”后再提交/)
assert.match(page, /sanitizeUserMessage\(error\.message, '任务状态已变化,请刷新后重试'\)/)
assert.match(source, /data: \{ warehouseId, loadingPlanId: task\.loadingPlanId, containerBookingId: task\.containerBookingId, expectedVersion, inventorySnapshotToken, items \}/)
assert.doesNotMatch(source.match(/export async function submitContainerPickingBatch[\s\S]*?\n\}/)?.[0] || '', /releaseMode|locationIds|reservationIds/)