This commit is contained in:
2026-09-04 12:18:41 +08:00
parent cbd1373358
commit 3e4590be5d
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -109,8 +109,6 @@ export async function submitContainerPickingBatch(task, actions, { warehouseId,
action: action.type,
pickedPackageCount: action.type === 'PICK' ? action.pickedPackageCount : null,
finalPickedPackageCount: action.type === 'PARTIAL' ? action.finalPickedPackageCount : null,
releaseMode: action.type === 'SKIP' ? null : (action.releaseMode || 'AUTO'),
locationIds: action.type === 'SKIP' ? [] : (action.locationIds || []),
version: action.version,
reason: action.type === 'SKIP' ? action.reason : null
}))
+1
View File
@@ -117,6 +117,7 @@ test('PDA cabinet picking adapter claims online and submits one atomic batch', (
assert.match(page, /submitContainerPickingBatch\(/)
assert.match(page, /任务版本已变化,请刷新后重试/)
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/)
assert.doesNotMatch(source, /query\.push\(`containerNo=/)
assert.doesNotMatch(page, /getContainerPickingTask\([^\n]*containerNo:/)
assert.match(source, /tasks\/\$\{encodeURIComponent\(taskId\)\}\?warehouseId=/)