优化
This commit is contained in:
@@ -109,8 +109,6 @@ export async function submitContainerPickingBatch(task, actions, { warehouseId,
|
|||||||
action: action.type,
|
action: action.type,
|
||||||
pickedPackageCount: action.type === 'PICK' ? action.pickedPackageCount : null,
|
pickedPackageCount: action.type === 'PICK' ? action.pickedPackageCount : null,
|
||||||
finalPickedPackageCount: action.type === 'PARTIAL' ? action.finalPickedPackageCount : 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,
|
version: action.version,
|
||||||
reason: action.type === 'SKIP' ? action.reason : null
|
reason: action.type === 'SKIP' ? action.reason : null
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ test('PDA cabinet picking adapter claims online and submits one atomic batch', (
|
|||||||
assert.match(page, /submitContainerPickingBatch\(/)
|
assert.match(page, /submitContainerPickingBatch\(/)
|
||||||
assert.match(page, /任务版本已变化,请刷新后重试/)
|
assert.match(page, /任务版本已变化,请刷新后重试/)
|
||||||
assert.match(source, /data: \{ warehouseId, loadingPlanId: task\.loadingPlanId, containerBookingId: task\.containerBookingId, expectedVersion, inventorySnapshotToken, items \}/)
|
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(source, /query\.push\(`containerNo=/)
|
||||||
assert.doesNotMatch(page, /getContainerPickingTask\([^\n]*containerNo:/)
|
assert.doesNotMatch(page, /getContainerPickingTask\([^\n]*containerNo:/)
|
||||||
assert.match(source, /tasks\/\$\{encodeURIComponent\(taskId\)\}\?warehouseId=/)
|
assert.match(source, /tasks\/\$\{encodeURIComponent\(taskId\)\}\?warehouseId=/)
|
||||||
|
|||||||
Reference in New Issue
Block a user