This commit is contained in:
2026-10-21 21:30:24 +08:00
parent 234216b3eb
commit 5356a8c898
28 changed files with 1543 additions and 45 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export async function execute(args = process.argv.slice(2), execArgs = process.e
context.token = await login(env.CHONGCHONG_ADMIN_USERNAME,env.CHONGCHONG_ADMIN_PASSWORD,'platform')
const warehouses = requireSuccess(await context.request('GET','/api/platform/v1/last-leg/overseas-procurements/warehouse-options'))
if (!Array.isArray(warehouses) || !warehouses.some(row => String(row.warehouseId) === config.warehouseId)) throw new Error('指定收货仓不在有效采购仓候选中')
await prepareCustomer(context,{publishEnvironment:false})
await prepareCustomer(context,{publishEnvironment:false,requireDistinctCustomer:false})
if (context.steps.some(step => !step.passed)) throw new Error('独立客户准备检查未全部通过')
const fixture = context.context.merchantQualificationFixture
const customerId = String(fixture.tenantId), customerToken = await login(fixture.username,fixture.password,'customer')