feat(admin): 资金流水业务类型展示中文并修正筛选取值
- statusLabels 新增 walletBizTypeLabel/walletBizTypeOptions,覆盖 wallet_ledger 全部 16 种 biz_type - 资金流水表格业务类型列改为中文标签 - 筛选下拉原取值(order_freeze 等)在钱包流水中不存在,替换为真实业务类型 - 用户端钱包页复用共享映射,移除重复的本地 map
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
import {
|
||||
balanceTypeLabel,
|
||||
ledgerDirectionLabel,
|
||||
walletBizTypeLabel,
|
||||
walletStatusLabel,
|
||||
} from '@/shared/utils/statusLabels'
|
||||
import { formatDateTime } from '@/shared/utils/time'
|
||||
@@ -94,32 +95,6 @@ function handleWithdraw() {
|
||||
router.push('/wallet/withdrawal')
|
||||
}
|
||||
|
||||
function walletBizTypeLabel(type: string) {
|
||||
const map: Record<string, string> = {
|
||||
order_pay: '订单支付',
|
||||
order_lock: '订单冻结',
|
||||
channel_order_lock: '支付冻结',
|
||||
order_cancel: '取消解冻',
|
||||
order_cancel_refund: '取消退款',
|
||||
admin_order_close: '客服关闭解冻',
|
||||
admin_order_close_refund: '客服关闭退款',
|
||||
order_settle: '订单结算',
|
||||
owner_income: '号主收入',
|
||||
deposit_compensation: '押金赔付',
|
||||
rent_refund: '租金退款',
|
||||
deposit_release: '押金释放',
|
||||
arbitration_release_frozen: '仲裁解冻',
|
||||
arbitration_renter_refund: '仲裁退款',
|
||||
arbitration_owner_income: '仲裁收入',
|
||||
cancel_refund: '取消退款',
|
||||
checkout_refund: '结账退款',
|
||||
channel_deposit_refund: '押金退还',
|
||||
withdraw_apply: '申请提现',
|
||||
admin_pickup_settle: '线下提号结算',
|
||||
}
|
||||
return map[type] || type || '-'
|
||||
}
|
||||
|
||||
function directionTone(direction: string) {
|
||||
const map: Record<string, string> = {
|
||||
in: 'success',
|
||||
|
||||
Reference in New Issue
Block a user