优化
This commit is contained in:
@@ -130,6 +130,41 @@ export interface RelabelDetailDto {
|
||||
completionEvidence?: { taskId: string; photoFileIds: string[]; completionRemark?: string | null; reviewerName?: string | null; reviewRemark?: string | null; completedAt?: string | null } | null
|
||||
}
|
||||
|
||||
export interface ReturnPackingPlanBoxItem {
|
||||
skuCode: string
|
||||
quantity: number
|
||||
}
|
||||
|
||||
export interface ReturnPackingPlanBox {
|
||||
boxNo?: number
|
||||
items: ReturnPackingPlanBoxItem[]
|
||||
length?: number
|
||||
width?: number
|
||||
height?: number
|
||||
weight?: number
|
||||
}
|
||||
|
||||
export interface ReturnPackingPlanPayload {
|
||||
returnNos: string[]
|
||||
mode: 'CUSTOMER_INSTRUCTION' | 'WAREHOUSE_RECOMMENDATION'
|
||||
boxes: ReturnPackingPlanBox[]
|
||||
remark?: string
|
||||
idempotencyKey: string
|
||||
}
|
||||
|
||||
export interface ReturnPackingPlanDto extends ReturnPackingPlanPayload {
|
||||
planNo: string
|
||||
status: string
|
||||
pushedAt?: string | null
|
||||
}
|
||||
|
||||
export async function createReturnPackingPlan(payload: ReturnPackingPlanPayload) {
|
||||
const response = await overseasHttp.post<ApiEnvelope<ReturnPackingPlanDto>, ApiEnvelope<ReturnPackingPlanDto>>(
|
||||
'/platform/v1/last-leg/return-packing-plans', payload,
|
||||
)
|
||||
return unwrapApiResponse(response)
|
||||
}
|
||||
|
||||
export async function listRelabelOrders(query: RelabelOrderQuery) {
|
||||
const response = await overseasHttp.get<ApiEnvelope<OverseasPagePayload<RelabelSummaryDto>>, ApiEnvelope<OverseasPagePayload<RelabelSummaryDto>>>(
|
||||
'/platform/v1/last-leg/relabel-applications', { params: query },
|
||||
|
||||
Reference in New Issue
Block a user