feat(fulfillment): 增加待分类订单重试接单匹配
This commit is contained in:
@@ -90,6 +90,15 @@ export type ChannelExceptionListResult = {
|
||||
|
||||
export type PipelineRunResult = Record<string, unknown>
|
||||
|
||||
export type PendingWorkOrderRetryResult = {
|
||||
scanned: number
|
||||
createdWorkOrders: number
|
||||
assigned: number
|
||||
remaining: number
|
||||
carrierFailed: number
|
||||
skipReasons: Record<string, number>
|
||||
}
|
||||
|
||||
export type FinancePipelineStatus = {
|
||||
pipeline: string
|
||||
label: string
|
||||
@@ -130,6 +139,15 @@ export function fetchChannelExceptions(
|
||||
return apiGet<ChannelExceptionListResult>('/api/v1/admin/fulfillment/exceptions', params)
|
||||
}
|
||||
|
||||
export function retryPendingWorkOrderRouting(
|
||||
payload: { internalSku?: string; limit?: number } = {},
|
||||
) {
|
||||
return apiPost<PendingWorkOrderRetryResult>(
|
||||
'/api/v1/admin/fulfillment/pending/retry-work-orders',
|
||||
payload,
|
||||
)
|
||||
}
|
||||
|
||||
export function assignChannelByInternalSku(payload: {
|
||||
internalSku: string
|
||||
channel: string
|
||||
|
||||
Reference in New Issue
Block a user