优化
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user