/** 代发订单列表 Tab:按代发进度分轨,而非订单状态。 */ export const FULFILL_PROGRESS_ALL = 'all'; export type FulfillProgressTabCode = | typeof FULFILL_PROGRESS_ALL | 'pendingBind' | 'domesticInTransit' | 'arrivedPendingPick' | 'outboundDone'; export interface FulfillProgressTabMeta { value: FulfillProgressTabCode; labelKey: string; showTabCount?: boolean; } export const FULFILL_PROGRESS_TABS: FulfillProgressTabMeta[] = [ { value: FULFILL_PROGRESS_ALL, labelKey: 'order.fulfillOrders.filter.progressAll', showTabCount: true }, { value: 'pendingBind', labelKey: 'order.fulfillOrders.progress.pendingBind', showTabCount: true }, { value: 'domesticInTransit', labelKey: 'order.fulfillOrders.progress.domesticInTransit', showTabCount: true }, { value: 'arrivedPendingPick', labelKey: 'order.fulfillOrders.progress.arrivedPendingPick', showTabCount: true }, { value: 'outboundDone', labelKey: 'order.fulfillOrders.progress.outboundDone', showTabCount: true }, ]; export const FULFILL_PROGRESS_TAB_SET = new Set( FULFILL_PROGRESS_TABS.map((t) => t.value), );