修复提现申请冻结余额
This commit is contained in:
@@ -22,7 +22,9 @@ import { formatMoney, formatStatus, formatWorkerStatus, resolveStatusColor } fro
|
||||
/** 与打手端 worker-profile-view-utils 的流水文案保持一致;未知类型原样展示。 */
|
||||
const LEDGER_TYPE_LABELS: Record<string, string> = {
|
||||
manual_credit: '人工充值',
|
||||
withdraw_freeze: '提现冻结',
|
||||
withdraw_paid: '提现打款',
|
||||
withdraw_release: '提现退回',
|
||||
deposit_freeze: '冻结押金',
|
||||
deposit_release: '释放押金',
|
||||
deposit_pending_unfreeze: '待解冻金额',
|
||||
@@ -57,7 +59,9 @@ function resolveLedgerTagColor(ledgerType: string) {
|
||||
return 'red'
|
||||
if (['reward_settlement', 'sharing_reward'].includes(ledgerType)) return 'cyan'
|
||||
if (ledgerType === 'manual_credit') return 'blue'
|
||||
if (ledgerType === 'withdraw_freeze') return 'orange'
|
||||
if (ledgerType === 'withdraw_paid') return 'purple'
|
||||
if (ledgerType === 'withdraw_release') return 'green'
|
||||
return 'default'
|
||||
}
|
||||
|
||||
@@ -287,7 +291,7 @@ function LedgersSection({ workerId }: { workerId: number }) {
|
||||
render: (_, row) => formatMoney(row.balanceAfter),
|
||||
},
|
||||
{
|
||||
title: '冻结押金',
|
||||
title: '冻结金额',
|
||||
width: 110,
|
||||
render: (_, row) => formatMoney(row.frozenAfter),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user