This commit is contained in:
2026-10-20 14:00:49 +08:00
parent 3879a47673
commit 5679b156ca
28 changed files with 803 additions and 515 deletions
@@ -42,6 +42,36 @@ export interface InventoryDashboardDto {
procurementPackages: number
}
export interface InventoryPieceGroup {
customerId: string
warehouseId: string
destinationCode: string | null
anchorSkuCode: string | null
availablePieceCount: number | string | null
knownAvailablePieceCount: number | string
unknownCartonCount: number | string
availableCartonCount: number | string
availablePalletCount: number | string
skuContents: { skuCode: string; quantity: number | string }[]
cartons: { cartonMark: string; inventoryPositionId: string; palletId: string | null; quantity: number | string | null; items: { skuCode: string; quantity: number | string }[] }[]
}
export interface InventoryPieceProjection {
availablePieceCount: number | string | null
knownAvailablePieceCount: number | string
unknownCartonCount: number | string
availableCartonCount: number | string
availablePalletCount: number | string
groups: InventoryPieceGroup[]
}
/** 完整筛选的真实可用件数及混箱全部SKU,不按记账SKU换算。 */
export async function getInventoryPieceProjection(query: InventoryBalanceQuery) {
const response = await http.get<ApiEnvelope<InventoryPieceProjection>, ApiEnvelope<InventoryPieceProjection>>(
'/platform/v1/last-leg/inventory/piece-projection', { params: params(query) },
)
return unwrapApiResponse(response)
}
export interface InventoryPositionDto {
id: string
balanceId: string