diff --git a/scripts/admin-test-env-modules/phase4-overseas-pda-operations-contract.test.mjs b/scripts/admin-test-env-modules/phase4-overseas-pda-operations-contract.test.mjs index c7f97676e..e8ac2209a 100644 --- a/scripts/admin-test-env-modules/phase4-overseas-pda-operations-contract.test.mjs +++ b/scripts/admin-test-env-modules/phase4-overseas-pda-operations-contract.test.mjs @@ -106,6 +106,7 @@ test('P5 follows warehouse review, customer confirmation and fulfillment complet assert.match(source, /manualCompletion: true/) assert.match(source, /P5返工重新确认箱标阶段/) assert.match(source, /P5返工重新完成SKU阶段/) + assert.match(source, /newLabel: redoItem\.fbaCartonMark \|\| redoItem\.newSkuCode/) assert.ok(source.indexOf('P5换标箱${index + 1}拆托') < source.indexOf('P5返工组托后提交完工等待客户确认')) assert.ok(source.indexOf('P5返工组托后提交完工等待客户确认') < source.indexOf('const confirmBody')) assert.match(source, /applicationStatus === 'CUSTOMER_CONFIRM_PENDING'/) diff --git a/scripts/admin-test-env-modules/phase4-overseas-pda-operations.mjs b/scripts/admin-test-env-modules/phase4-overseas-pda-operations.mjs index a086c9511..140d7ea16 100644 --- a/scripts/admin-test-env-modules/phase4-overseas-pda-operations.mjs +++ b/scripts/admin-test-env-modules/phase4-overseas-pda-operations.mjs @@ -557,7 +557,8 @@ async function verifyRelabel(context, token, merchantToken, fixture) { detail = carton.data } const redo = await request(context, token, 'POST', 'P5返工重新完成SKU阶段', unitPath, { - itemId: id(redoItem.itemId), oldLabel: redoItem.cartonMark, newLabel: redoItem.newSkuCode, + itemId: id(redoItem.itemId), oldLabel: redoItem.cartonMark, + newLabel: redoItem.fbaCartonMark || redoItem.newSkuCode, skuVerifications: (redoItem.skuItems || []).map(sku => ({ skuCode: sku.skuCode, newSkuCode: sku.newSkuCode, quantity: Number(sku.quantity), })),