同步Admin PDA全量验收协议
This commit is contained in:
@@ -345,7 +345,7 @@ async function loadOneFragment(context, state) {
|
||||
if (!pdaOperator?.userId) return null
|
||||
|
||||
const confirmPath = `/api/platform/v1/first-leg/loading-plans/${encodeURIComponent(planId)}/confirm`
|
||||
const confirmBody = Object.freeze({ expectedVersion: confirmableVersion, assigneeId: Number(pdaOperator.userId) })
|
||||
const confirmBody = Object.freeze({ expectedVersion: confirmableVersion, assigneeId: id(pdaOperator.userId) })
|
||||
const confirmHeaders = Object.freeze({ 'Idempotency-Key': `${operationBase}-plan-confirm`.slice(0, 128) })
|
||||
const confirmResponse = await request(context, 'POST', confirmPath, confirmBody, confirmHeaders)
|
||||
const confirmed = context.apiSuccess(MODULE, `计划级确认 ${sourceOrderNo} 并生成唯一 PDA 任务`, confirmResponse, '', OPTIONS)
|
||||
|
||||
Reference in New Issue
Block a user