This commit is contained in:
2026-09-06 15:53:48 +08:00
parent 92b24cc9a6
commit 8029c235e4
8 changed files with 21 additions and 10 deletions
@@ -7,6 +7,7 @@ export interface InboundOrderQuery {
size: number
planNo?: string
inboundCode?: string
lxCode?: string
status?: string
warehouse?: string
fbaWarehouseCode?: string
@@ -23,6 +24,7 @@ export interface InboundOrderSummaryDto {
customerId: string
orderId: string
inboundCode?: string | null
lxCode?: string | null
orderType?: string | null
warehouseId?: string | null
warehouseCode?: string | null
@@ -27,6 +27,7 @@ export interface LastMileOrderQuery {
orderNo?: string
orderType?: string
inboundCode?: string
lxCode?: string
containerNo?: string
currentStatus?: string
status?: string
@@ -47,6 +48,7 @@ export interface LastMileOrderSummaryDto {
orderType?: string | null
orderTypeName?: string | null
inboundCode?: string | null
lxCode?: string | null
sourceOrderNo?: string | null
sourceInboundId?: string | null
customerName?: string | null
@@ -3,9 +3,9 @@ import { unwrapApiResponse, type ApiEnvelope } from '@/shared/api/http'
import { normalizeOverseasPage, type OverseasPagePayload } from './lastMileOrders'
import type { DeliveryOrderRow } from './deliveryOrders'
export interface OutboundRow { id: string; outboundNo: string; dispatchNo?: string | null; overseasWarehouseId?: string | null; status?: string | null; palletCount?: number | null; packageCount?: number | null; createdAt?: string | null }
export interface OutboundRow { id: string; outboundNo: string; dispatchNo?: string | null; overseasWarehouseId?: string | null; lxCodes?: string | null; status?: string | null; palletCount?: number | null; packageCount?: number | null; createdAt?: string | null }
export interface OutboundDetail { outbound: OutboundRow; delivery?: DeliveryOrderRow | null }
export interface OutboundQuery { page: number; size: number; documentNo?: string; warehouseId?: string; status?: string }
export interface OutboundQuery { page: number; size: number; documentNo?: string; lxCode?: string; warehouseId?: string; status?: string }
export async function listOutbounds(query: OutboundQuery) {
const response = await overseasHttp.get<ApiEnvelope<OverseasPagePayload<OutboundRow>>, ApiEnvelope<OverseasPagePayload<OutboundRow>>>('/platform/v1/last-leg/outbound-orders', { params: query })
return normalizeOverseasPage(unwrapApiResponse(response))