优化
This commit is contained in:
@@ -61,11 +61,14 @@ async function resolveFixtures(context) {
|
||||
const merchantCustomerId = id(context.createdResources?.merchantQualificationFixture?.tenantId
|
||||
|| business?.purchase?.customerId || business?.truck?.customerId || business?.looseboard?.customerId)
|
||||
const procurement = await resolveListedBusiness(context,
|
||||
'/api/platform/v1/last-leg/overseas-procurements', business?.purchase, merchantCustomerId, '海外采购')
|
||||
'/api/platform/v1/last-leg/overseas-procurements', business?.purchase,
|
||||
id(business?.purchase?.customerId), '海外采购')
|
||||
const truck = await resolveListedBusiness(context,
|
||||
'/api/platform/v1/last-leg/us-truck-orders', business?.truck, merchantCustomerId, '美国卡车')
|
||||
'/api/platform/v1/last-leg/us-truck-orders', business?.truck,
|
||||
id(business?.truck?.customerId), '美国卡车')
|
||||
const looseboard = await resolveListedBusiness(context,
|
||||
'/api/platform/v1/last-leg/local-looseboard-orders', business?.looseboard, merchantCustomerId, '本土散板')
|
||||
'/api/platform/v1/last-leg/local-looseboard-orders', business?.looseboard,
|
||||
id(business?.looseboard?.customerId), '本土散板')
|
||||
|
||||
const pda = context.createdResources?.phase4OverseasPda
|
||||
const inboundCustomerId = id(pda?.customerId)
|
||||
|
||||
Reference in New Issue
Block a user