48 lines
2.6 KiB
TypeScript
48 lines
2.6 KiB
TypeScript
export const inboundProcessStatusLabels: Record<string, string> = {
|
|
PREPARING: '订单待审核(可先测量)', WAIT_MEASURE: '待测量', MEASURING: '测量中', MEASURE_PENDING: '待测量审核', MEASURE_REJECTED: '测量已驳回',
|
|
WAIT_PRICING: '待计费', FEE_CONFIRMING: '费用处理中', INBOUNDING: '入库处理中', WAIT_PALLETIZE: '待一件代发组托', WAIT_SPLIT: '待分柜', VOIDED: '已作废',
|
|
}
|
|
|
|
export const inboundOrderStatusLabels: Record<string, string> = {
|
|
DRAFT: '草稿', SUBMITTED: '待审核', APPROVED: '已审核', ACCEPTED: '已受理', REJECTED: '已驳回',
|
|
PROCESSING: '处理中', COMPLETED: '已完成', CANCELLED: '已取消', PENDING_REVIEW: '待审核',
|
|
WAIT_MEASURE: '待测量', WAIT_PALLETIZE: '待一件代发组托', WAIT_SPLIT: '待分柜', LOADING: '装柜中',
|
|
LOADED: '装柜完成', DELIVERED: '派送完成',
|
|
}
|
|
|
|
export const inboundReviewStatusLabels: Record<string, string> = {
|
|
NOT_SUBMITTED: '未提交', UNRECORDED: '未录入', PENDING: '待审核', APPROVED: '审核通过', REJECTED: '审核驳回', CONFIRMED: '已确认',
|
|
}
|
|
|
|
export const inboundFeeStatusLabels: Record<string, string> = {
|
|
UNPRICED: '未计费', CALCULATED: '已试算', CONFIRMED: '已确认', SENT: '已发送', VOIDED: '已作废',
|
|
}
|
|
|
|
export const inboundLoadingStatusLabels: Record<string, string> = {
|
|
NOT_LOADED: '未配载', WAIT_LOADING: '待配载', EDITING: '预装柜中', LOADING: '配载中', LOADED: '已配载', COMPLETED: '装柜完成',
|
|
}
|
|
|
|
export const inboundNotificationStatusLabels: Record<string, string> = {
|
|
NOT_CREATED: '未创建', PENDING: '待发送', SUCCESS: '发送成功', FAILED: '发送失败',
|
|
}
|
|
|
|
export const weightRecognitionStatusLabels: Record<string, string> = {
|
|
PENDING: '待识别', PENDING_CONFIRM: '待确认', NEEDS_MANUAL: '需人工录入', CONFIRMED: '已确认',
|
|
}
|
|
|
|
const inboundHistoryActionLabels: Record<string, string> = {
|
|
CREATE: '创建入库单', STATUS_UPDATE: '状态更新', MEASURE_SUBMIT: '提交测量', MEASURE_APPROVE: '测量审核通过',
|
|
MEASURE_REJECT: '测量审核驳回', FEE_CALCULATE: '费用试算', FEE_CONFIRM: '费用确认',
|
|
INBOUND_BEGIN: '开始入库', INBOUND_COMPLETE: '完成入库', VOID: '作废入库单',
|
|
}
|
|
|
|
export function inboundStatusLabel(value: string | null | undefined, labels: Record<string, string>, emptyLabel = '—') {
|
|
if (!value) return emptyLabel
|
|
return labels[value] || '未知状态'
|
|
}
|
|
|
|
export function inboundHistoryActionLabel(value: string | null | undefined) {
|
|
if (!value) return '状态更新'
|
|
return inboundHistoryActionLabels[value] || '状态更新'
|
|
}
|