From 3e4590be5d7731d81823493534aa5b2541030397 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Fri, 4 Sep 2026 12:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/pda-loading.js | 2 -- tests/pda-loading-api.test.mjs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/pda-loading.js b/api/pda-loading.js index 5f62af9..4983efb 100644 --- a/api/pda-loading.js +++ b/api/pda-loading.js @@ -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 })) diff --git a/tests/pda-loading-api.test.mjs b/tests/pda-loading-api.test.mjs index f5d19c3..83fc3e5 100644 --- a/tests/pda-loading-api.test.mjs +++ b/tests/pda-loading-api.test.mjs @@ -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=/)