This commit is contained in:
2026-09-14 15:33:29 +08:00
parent febe265c50
commit 46b4d14898
30 changed files with 502 additions and 200 deletions
@@ -279,7 +279,7 @@ components:
type: object
required: [templateCode, pageSpec, downloadFileName, documents]
properties:
templateCode: { type: string, enum: [DROPSHIP_PALLET_A4_V1] }
templateCode: { type: string, enum: [DROPSHIP_PALLET_A4_V2] }
pageSpec: { $ref: '#/components/schemas/FreightA4PageSpec' }
downloadFileName: { type: string, maxLength: 120 }
documents:
@@ -290,33 +290,43 @@ components:
items: { $ref: '#/components/schemas/DropshipPalletA4Document' }
DropshipPalletA4Document:
type: object
required: [palletNo, inboundCodes, cartonCount, skuCount, weightKg, volumeCbm, barcodeContent, skuRows]
required: [palletNo, destinationWarehouse, palletSequence, totalPallets, barcodeContent, inboundRows, skuRows]
properties:
palletNo: { type: string, maxLength: 80 }
inboundCodes: { type: string, maxLength: 300 }
cartonCount: { type: integer, minimum: 0 }
skuCount: { type: integer, minimum: 0 }
weightKg: { type: number, minimum: 0 }
volumeCbm: { type: number, minimum: 0 }
destinationWarehouse: { type: string, maxLength: 200 }
palletSequence: { type: integer, minimum: 1 }
totalPallets: { type: integer, minimum: 1 }
barcodeContent:
type: string
maxLength: 80
pattern: '^[\\x20-\\x7E]+$'
description: Code 128 一维码内容,当前固定为稳定托盘码
inboundRows:
type: array
minItems: 1
maxItems: 10
items: { $ref: '#/components/schemas/DropshipPalletInboundRow' }
skuRows:
type: array
minItems: 0
maxItems: 34
items: { $ref: '#/components/schemas/DropshipPalletSkuRow' }
DropshipPalletSkuRow:
DropshipPalletInboundRow:
type: object
required: [inboundCode, skuCode, cargoName, cartonCount, skuQuantity]
required: [inboundCode, customerNickname, cartonCount, itemQuantity]
properties:
inboundCode: { type: string, maxLength: 80 }
skuCode: { type: string, maxLength: 128 }
cargoName: { type: string, maxLength: 200 }
customerNickname: { type: string, maxLength: 80 }
cartonCount: { type: integer, minimum: 0 }
skuQuantity: { type: integer, minimum: 0 }
itemQuantity: { type: integer, minimum: 0 }
DropshipPalletSkuRow:
type: object
required: [skuCode, cartonCount, itemQuantity, unitsPerCarton]
properties:
skuCode: { type: string, maxLength: 128 }
cartonCount: { type: integer, minimum: 0 }
itemQuantity: { type: integer, minimum: 0 }
unitsPerCarton: { type: string, maxLength: 30 }
FreightA4PageSpec:
type: object
required: [widthMm, heightMm]