优化
This commit is contained in:
@@ -374,6 +374,11 @@ export async function disablePicker(context, picker, index) {
|
||||
function rememberGeneratedPlans(context, plans) {
|
||||
if (!Array.isArray(plans)) return
|
||||
for (const plan of plans) {
|
||||
const planId = id(plan?.id || plan?.planId)
|
||||
if (longId(planId)) {
|
||||
const ids = context.createdResources.phase4OverseasPda.generatedPlanIds ??= []
|
||||
if (!ids.includes(planId)) ids.push(planId)
|
||||
}
|
||||
const inboundCode = id(plan?.lines?.[0]?.inboundCode)
|
||||
if (!nonBlank(inboundCode)) continue
|
||||
const generated = Array.isArray(plan?.pallets) ? plan.pallets : []
|
||||
@@ -1172,6 +1177,7 @@ export async function run(context) {
|
||||
completedContainerFacts: [],
|
||||
overseasWarehouseId: null, overseasWarehouseName: null,
|
||||
generatedPalletsByInbound: {},
|
||||
generatedPlanIds: [],
|
||||
cleanup: 'Shared warehouse, pallets and locations used by completed inventory are retained as acceptance evidence',
|
||||
}
|
||||
const merchantToken = await loginMerchantForNegativeProbe(context)
|
||||
|
||||
Reference in New Issue
Block a user