This commit is contained in:
2026-08-27 17:16:38 +08:00
parent 0181656b4f
commit 929f50dc55
7 changed files with 178 additions and 52 deletions
@@ -155,6 +155,27 @@ export interface ConvertInboundPlanPayload {
customerId: string
}
export interface PendingContainerSummaryQuery {
page: number
size: number
containerNo?: string
createdFrom?: string
createdTo?: string
}
export interface PendingContainerSummaryDto {
sourceContainerBookingId: string
containerNo: string | null
orderCount: number
inboundCodeCount: number
customerCount: number
totalPackageCount: number
totalPalletCount: number
totalVolumeCbm: number
eligible: boolean
ineligibleReason?: string | null
}
export interface ConvertContainerInboundPlanPayload {
sourceContainerBookingId: string
}
@@ -203,6 +224,14 @@ export async function convertLastMileOrderToInboundPlan(payload: ConvertInboundP
return unwrapApiResponse(response)
}
export async function listPendingContainerSummaries(query: PendingContainerSummaryQuery): Promise<OverseasPageResult<PendingContainerSummaryDto>> {
const response = await overseasHttp.get<ApiEnvelope<OverseasPagePayload<PendingContainerSummaryDto>>, ApiEnvelope<OverseasPagePayload<PendingContainerSummaryDto>>>(
'/platform/v1/last-leg/orders/container-summaries',
{ params: query },
)
return normalizeOverseasPage(unwrapApiResponse(response))
}
export async function convertLastMileContainerToInboundPlans(payload: ConvertContainerInboundPlanPayload) {
const response = await overseasHttp.post<ApiEnvelope<InboundPlanDetailDto[]>, ApiEnvelope<InboundPlanDetailDto[]>>(
'/platform/v1/last-leg/inbound-plans/convert-container', payload,