This commit is contained in:
2026-08-17 09:41:16 +08:00
parent 3bb5da8ae7
commit c8bb1eecdf
4 changed files with 40 additions and 8 deletions
+13
View File
@@ -358,4 +358,17 @@ export function completeLoading(inboundId, payload, tenantId) {
})
}
/** Complete the cabinet PDA task after the operator has captured all evidence. */
export function completeContainerPickingTask(taskId, payload = {}) {
if (!taskId) throw new Error('缺少拣货任务标识,无法确认装柜完成')
if (payload.expectedTaskVersion == null) throw new Error('缺少拣货任务版本,无法确认装柜完成')
if (!payload.operationId) throw new Error('缺少操作标识,无法确认装柜完成')
return request({
url: `/first-leg/pda-loading/tasks/${encodeURIComponent(taskId)}/complete`,
method: 'POST',
header: { 'Idempotency-Key': stableIdempotencyKey(payload.operationId) },
data: payload
})
}
export { EVIDENCE_SLOTS, EVIDENCE_TYPES }