优化提交
This commit is contained in:
@@ -383,6 +383,15 @@ export async function reviewDirectRelabelOrder(orderId: string, customerId: stri
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export async function reviewCargoDiscardOrder(discardNo: string, customerId: string, decision: 'APPROVE' | 'REJECT', remark?: string) {
|
||||
const response = await overseasHttp.post<ApiEnvelope<unknown>, ApiEnvelope<unknown>>(
|
||||
`/platform/v1/last-leg/cargo-discards/${encodeURIComponent(discardNo)}/review`,
|
||||
{ decision, remark: remark?.trim() || undefined },
|
||||
{ params: { customerId } },
|
||||
)
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export async function downloadLastMileOrders(query: Partial<LastMileOrderQuery>) {
|
||||
const { page: _page, size: _size, ...filters } = query
|
||||
const params = Object.fromEntries(
|
||||
|
||||
@@ -9,6 +9,12 @@ export interface RelabelOrderQuery {
|
||||
relabelNo?: string
|
||||
skuCode?: string
|
||||
status?: string
|
||||
reviewedFrom?: string
|
||||
reviewedTo?: string
|
||||
measuredFrom?: string
|
||||
measuredTo?: string
|
||||
outboundFrom?: string
|
||||
outboundTo?: string
|
||||
}
|
||||
|
||||
export interface CreateRelabelItemPayload {
|
||||
@@ -82,6 +88,9 @@ export interface RelabelSummaryDto {
|
||||
customerConfirmedAt?: string | null
|
||||
reviewChannel?: 'TAIL_ORDER' | 'RELABEL_ORDER' | null
|
||||
reviewRemark?: string | null
|
||||
reviewedAt?: string | null
|
||||
measuredAt?: string | null
|
||||
outboundAt?: string | null
|
||||
createdAt?: string | null
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,12 @@ export interface WarehouseTransferQuery {
|
||||
fbaWarehouseCode?: string
|
||||
status?: string
|
||||
needRelabel?: boolean
|
||||
reviewedFrom?: string
|
||||
reviewedTo?: string
|
||||
measuredFrom?: string
|
||||
measuredTo?: string
|
||||
outboundFrom?: string
|
||||
outboundTo?: string
|
||||
}
|
||||
|
||||
export interface WarehouseTransferSummaryDto {
|
||||
@@ -26,6 +32,12 @@ export interface WarehouseTransferSummaryDto {
|
||||
relabelNo?: string | null
|
||||
status: string
|
||||
estimatedArrivalAt?: string | null
|
||||
estimatedShipAt?: string | null
|
||||
actualShipAt?: string | null
|
||||
reviewedAt?: string | null
|
||||
measuredAt?: string | null
|
||||
outboundAt?: string | null
|
||||
relabelCompletedAt?: string | null
|
||||
createdAt?: string | null
|
||||
}
|
||||
|
||||
@@ -84,6 +96,10 @@ export interface WarehouseTransferDetailDto extends WarehouseTransferSummaryDto
|
||||
relabelBindings: WarehouseTransferRelabelBindingDto[]
|
||||
customerConfirmedAt?: string | null
|
||||
actualShipAt?: string | null
|
||||
reviewedAt?: string | null
|
||||
measuredAt?: string | null
|
||||
outboundAt?: string | null
|
||||
relabelCompletedAt?: string | null
|
||||
}
|
||||
|
||||
export async function listWarehouseTransfers(customerId: string, query: WarehouseTransferQuery) {
|
||||
|
||||
Reference in New Issue
Block a user