贴标优化0923
This commit is contained in:
@@ -374,6 +374,15 @@ export async function reviewReturnOrder(returnNo: string, customerId: string, de
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export async function reviewDirectRelabelOrder(orderId: string, customerId: string, decision: 'APPROVE' | 'REJECT', remark?: string) {
|
||||
const response = await overseasHttp.put<ApiEnvelope<unknown>, ApiEnvelope<unknown>>(
|
||||
`/platform/v1/last-leg/orders/${encodeURIComponent(orderId)}/relabel-review`,
|
||||
{ status: decision === 'APPROVE' ? 'PENDING_PROCESSING' : 'REJECTED', 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(
|
||||
|
||||
@@ -30,7 +30,9 @@ export interface CreateRelabelItemPayload {
|
||||
|
||||
export interface CreateRelabelPayload {
|
||||
customerOrderNo: string
|
||||
overseasWarehouseId: string
|
||||
operationWarehouseId?: string
|
||||
/** @deprecated compatibility alias for older platform fixtures */
|
||||
overseasWarehouseId?: string
|
||||
labelDeadline: string
|
||||
contactName: string
|
||||
contactPhone: string
|
||||
@@ -78,6 +80,8 @@ export interface RelabelSummaryDto {
|
||||
fulfillmentStatus?: string | null
|
||||
outboundOrderNo?: string | null
|
||||
customerConfirmedAt?: string | null
|
||||
reviewChannel?: 'TAIL_ORDER' | 'RELABEL_ORDER' | null
|
||||
reviewRemark?: string | null
|
||||
createdAt?: string | null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user