fix(dropship): generate pallet numbers atomically and extend full regressions

This commit is contained in:
2026-09-09 12:19:16 +08:00
100 changed files with 2889 additions and 234 deletions
@@ -224,9 +224,9 @@ async function createReleasedBookingAndLink(context, fixture, chains) {
if (!requirement?.id) return null
for (let index = 0; index < chains.length; index += 1) {
const chain = chains[index]
const detailResponse = await context.request('GET', `${CONTAINERS}/${chain.containerBookingId}`)
const detailResponse = await context.request('GET', `${CONTAINERS}/domestic/${chain.containerBookingId}`)
const detail = context.apiSuccess(MODULE, `${chain.label} 关联前读取柜版本`, detailResponse,
evidence(detailResponse), OPTIONS)
evidence(detailResponse), OPTIONS)?.container
const containerNo = iso6346ContainerNumber(`${context.marker}-coload-${index + 1}`)
const linkResponse = await context.request('POST', `${CONTAINERS}/${chain.containerBookingId}/ocean-booking-link`, {
oceanBookingId, requirementId: id(requirement.id), containerNo,