优化
This commit is contained in:
@@ -15,10 +15,9 @@ export interface InventoryBalanceDto {
|
||||
inboundOrderId: string
|
||||
inboundOrderNo?: string | null
|
||||
inboundCode: string
|
||||
skuCodes: string[]
|
||||
productNames: string[]
|
||||
warehouseLocationIds: string[]
|
||||
warehouseLocationCodes: string[]
|
||||
skuCode?: string | null
|
||||
productNameZh?: string | null
|
||||
productNameEn?: string | null
|
||||
totalPackages: number
|
||||
availablePackages: number
|
||||
holdPackages: number
|
||||
@@ -46,7 +45,6 @@ export interface InventoryDashboardDto {
|
||||
export interface InventoryPositionDto {
|
||||
id: string
|
||||
balanceId: string
|
||||
customerId: string
|
||||
overseasWarehouseId?: string | null
|
||||
destinationWarehouseCode?: string | null
|
||||
inboundOrderId?: string | null
|
||||
@@ -93,7 +91,6 @@ export interface InventoryLedgerDto {
|
||||
}
|
||||
|
||||
export interface InventoryBalanceQuery {
|
||||
customerId: string
|
||||
page: number
|
||||
size: number
|
||||
customerName?: string
|
||||
@@ -129,18 +126,16 @@ export async function getInventorySummary(query: InventoryBalanceQuery) {
|
||||
|
||||
export async function listInventoryPositions(
|
||||
balanceId: string,
|
||||
customerId: string,
|
||||
query: { palletNo?: string; batchNo?: string; inventoryStatus?: string } = {},
|
||||
) {
|
||||
const response = await overseasHttp.get<ApiEnvelope<InventoryPositionDto[]>, ApiEnvelope<InventoryPositionDto[]>>(
|
||||
`/platform/v1/last-leg/inventory/balances/${encodeURIComponent(balanceId)}/positions`,
|
||||
{ params: { customerId, ...query } },
|
||||
{ params: query },
|
||||
)
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export interface InventoryLedgerQuery {
|
||||
customerId: string
|
||||
page: number
|
||||
size: number
|
||||
overseasWarehouseId?: string
|
||||
|
||||
Reference in New Issue
Block a user