文件
hyb-oa/client/src/lib/paymentBatchDisplay.ts
T
wangsli 7c39f8b0f9
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s
收口付款批次创建与复核(08-01-reimbursement-notification-progress-clarity)
2026-08-02 00:29:47 +08:00

15 行
487 B
TypeScript

import type { PaymentBatchStatus } from "../api/paymentBatches";
const PAYMENT_BATCH_STATUS_LABELS: Record<PaymentBatchStatus, string> = {
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;
}