This commit is contained in:
2026-10-19 17:02:59 +08:00
parent e0677e7ae7
commit 920a7e083d
5 changed files with 85 additions and 3 deletions
+19
View File
@@ -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