feat: match warehouse BOL print layout

This commit is contained in:
2026-09-11 11:35:37 +08:00
parent 7fd2e70024
commit d60689ce02
8 changed files with 191 additions and 47 deletions
@@ -208,7 +208,7 @@ components:
type: object
required: [templateCode, pageSpec, downloadFileName, documents]
properties:
templateCode: { type: string, enum: [DISPATCH_BILL_OF_LADING_A4_V1] }
templateCode: { type: string, enum: [DISPATCH_BILL_OF_LADING_A4_V2] }
pageSpec: { $ref: '#/components/schemas/FreightA4PageSpec' }
downloadFileName: { type: string, maxLength: 120 }
documents:
@@ -237,7 +237,12 @@ components:
totalPackages: { type: integer, minimum: 0 }
pageNumber: { type: integer, minimum: 1 }
pageCount: { type: integer, minimum: 1 }
cargoRows: { type: array, minItems: 1, maxItems: 12, items: { $ref: '#/components/schemas/DispatchBolCargoRow' } }
cargoRows:
type: array
minItems: 1
maxItems: 26
description: First page accepts at most 18 rows; continuation pages accept at most 26 rows.
items: { $ref: '#/components/schemas/DispatchBolCargoRow' }
DispatchBolCargoRow:
type: object
required: [containerNo, palletNo, fbaWarehouseCode, warehouseNo, fbaShipmentId, poReferenceNo, packageCount]