提交
This commit is contained in:
@@ -1110,6 +1110,25 @@ export async function run(context) {
|
||||
await verifyOrderApprovalReplay(context, { tenantId, orderId, inboundId,
|
||||
inboundCode: id(inboundResult.detail?.summary?.inboundCode) })
|
||||
|
||||
// 专项造单仅生产已审核的真实入库来源;默认全量验收仍继续验证申报修改。
|
||||
if (context.context.orderFixtureOnly === true) {
|
||||
const inbound = inboundResult.detail
|
||||
Object.assign(context.createdResources.orders, {
|
||||
inboundId, inboundCode: inbound.summary.inboundCode,
|
||||
customerRemark: inbound.publicRemark,
|
||||
internalRemark: `${context.marker} Admin 订单链路验收`,
|
||||
cargoRemark: payload.cargoes?.[0]?.cargoRemark || null,
|
||||
processStatus: inbound.summary.processStatus, taskId: id(inboundResult.task.id),
|
||||
fixtureOnly: true,
|
||||
})
|
||||
const source = { tenantId, inboundId, marker: context.marker }
|
||||
context.createdResources.ocrInbound = source
|
||||
context.createdResources.testInbound = source
|
||||
for (const key of ['inboundWeightOcr', 'ocrInbound', 'testInbound', 'createdInbound']) context.context[key] = source
|
||||
await finishOrderLifecycle(context, { tenantId, orderId, firstLegDetailPath })
|
||||
return
|
||||
}
|
||||
|
||||
const editableDetailResponse = await context.request('GET', firstLegDetailPath)
|
||||
const editableDetail = context.apiSuccess(MODULE, 'Admin 读取审核后客户申报资料', editableDetailResponse)
|
||||
const declarationDetail = editableDetail?.order?.order ? editableDetail.order : editableDetail
|
||||
|
||||
Reference in New Issue
Block a user