fix(delivery): project current dispatched cargo instead of whole order SKU quantities

This commit is contained in:
2026-10-04 02:54:52 +08:00
parent 9cd709edee
commit c46a68e32b
4 changed files with 180 additions and 3 deletions
@@ -1777,6 +1777,25 @@ components:
required: [order]
properties:
order: { $ref: '#/components/schemas/DeliveryOrderRow' }
skus:
type: array
description: 当前派送目的地的本次排车货物投影;数量按冻结排车与本次PDA实拣归属,不返回整单申报箱数。未实拣或MIXED库存没有单SKU归属时保留数量,SKU及品名为null;没有本次SKU测量事实时重量与体积为null,不按比例分摊整单测量。
items: { $ref: '#/components/schemas/DeliveryCargoSku' }
DeliveryCargoSku:
type: object
required: [packageCount]
properties:
inboundCode: { type: string, nullable: true }
customerName: { type: string, nullable: true }
destinationWarehouseCode: { type: string, nullable: true }
receivingAddress: { type: string, nullable: true }
shipmentNo: { type: string, nullable: true }
fbaTrackingNo: { type: string, nullable: true }
skuCode: { type: string, nullable: true }
productName: { type: string, nullable: true }
packageCount: { type: integer, minimum: 0, description: 本次排车/实拣的箱数,不是整单申报箱数 }
weightKg: { type: number, nullable: true }
volumeCbm: { type: number, nullable: true }
ReturnOrderCreate:
type: object
required: [overseasWarehouseId, needRelabel, idempotencyKey, items]