fix(acceptance): follow reserved pallet workflows

This commit is contained in:
2026-09-09 01:30:22 +08:00
parent b11ad31d5f
commit f7e3863898
7 changed files with 55 additions and 14 deletions
@@ -109,11 +109,13 @@ async function createEmptyPallet(context, token, fixture, suffix) {
`当前FBA入仓码 ${fixture.inboundCode || 'missing'} 缺少权威fbaWarehouseCode`)
return null
}
const location = await createLocation(context, fixture.overseasWarehouseId, `${suffix}-PALLET`)
if (!location) return null
const palletCode = `PDAOPS-${context.marker}-${suffix}`.replace(/[^A-Za-z0-9_-]/g, '').slice(-120)
const response = await context.requestOverseas('POST',
`/api/platform/v1/warehouse-admin/${encodeURIComponent(fixture.overseasWarehouseId)}/pallets`, {
palletCode, palletType: '木托盘', capacityCbm: 10, unitPrice: 0, status: 'IDLE',
locationId: fixture.location.locationId,
locationId: location.locationId,
fbaWarehouseCode,
remark: `${context.marker}-pda-operations-${suffix}`,
})