feat(selfop): add owner inventory volume top ten chart

This commit is contained in:
2026-10-14 18:17:09 +08:00
parent 7079455eb0
commit b7fb3a5054
6 changed files with 74 additions and 7 deletions
@@ -205,7 +205,7 @@ components:
Charts:
type: object
nullable: true
required: [ownerPhysicalTop, unknownOwnerCount, averageDaily]
required: [ownerPhysicalTop, unknownOwnerCount, ownerVolumeTop, unknownVolumeOwnerCount, averageDaily]
properties:
ownerPhysicalTop:
type: array
@@ -218,6 +218,18 @@ components:
customerName: {type: string, nullable: true}
physicalQuantity: {$ref: '#/components/schemas/Quantity'}
unknownOwnerCount: {type: integer, minimum: 0}
ownerVolumeTop:
type: array
maxItems: 10
description: 当前库存正式体积降序,同体积按货主编码稳定排序;排除体积未知货主,不受列表筛选及分页影响。
items:
type: object
required: [customerCode, customerName, inventoryVolumeM3]
properties:
customerCode: {type: string}
customerName: {type: string, nullable: true}
inventoryVolumeM3: {$ref: '#/components/schemas/Volume'}
unknownVolumeOwnerCount: {type: integer, minimum: 0, description: 因缺尺寸或库存数量未知未参与体积排名的货主数}
averageDaily: {type: array, minItems: 3, maxItems: 4, items: {$ref: '#/components/schemas/Window'}}
Response:
type: object