优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user