import type { PaymentBatchStatus } from "../api/paymentBatches"; const PAYMENT_BATCH_STATUS_LABELS: Record = { draft: "待付款复核", reviewed: "待财务付款", executed: "已付款", failed: "付款登记失败", cancelled: "已取消", }; export function paymentBatchStatusLabel(value: PaymentBatchStatus | string | null | undefined) { if (!value) return "-"; return PAYMENT_BATCH_STATUS_LABELS[value as PaymentBatchStatus] ?? value; }