This commit is contained in:
2026-10-22 11:56:47 +08:00
parent 5d71af1ac9
commit de96e47d74
71 changed files with 1296 additions and 332 deletions
@@ -81,9 +81,17 @@ async function resolveFixtures(context) {
const inboundCustomerId = id(pda?.customerId)
let inbound = null
if (longId(inboundCustomerId)) {
const listed = await overseas(context, 'GET', '查询本轮客户海外入仓计划',
let listed = await overseas(context, 'GET', '查询本轮客户海外入仓计划',
`/api/platform/v1/last-leg/inbound-plans?page=1&size=200&customerId=${encodeURIComponent(inboundCustomerId)}`)
const plan = selectCurrentInboundPlan(listed.data, pda, context.marker)
let plan = selectCurrentInboundPlan(listed.data, pda, context.marker)
const total = Number(listed.data?.total || 0)
const pageSize = Number(listed.data?.size || 200)
for (let page = 2; !plan && (page - 1) * pageSize < total; page += 1) {
listed = await overseas(context, 'GET', '分页查询本轮入仓计划',
`/api/platform/v1/last-leg/inbound-plans?page=${page}&size=200&customerId=${encodeURIComponent(inboundCustomerId)}`)
plan = selectCurrentInboundPlan(listed.data, pda, context.marker)
if (!rows(listed.data).length) break
}
context.assert(MODULE, '海外入仓费用关联真实计划', listed.response,
Boolean(plan) && longId(plan?.planId || plan?.id),
`planId=${id(plan?.planId || plan?.id) || 'missing'}, planNo=${plan?.planNo || 'missing'}; ${trace(listed.response)}`, OPTIONS)