feat(admin): 新增资金出款与运营开支管理

This commit is contained in:
yml2213
2026-10-30 13:40:56 +08:00
parent 4554f1d525
commit dd1d00227c
10 changed files with 1899 additions and 4 deletions
+48
View File
@@ -354,3 +354,51 @@ export const announcementModeMap: Record<string, string> = {
inherit: '继承主站公告',
own_only: '仅本站公告',
}
export const financeDisbursementSourceMap: Record<string, string> = {
platform_managed: '平台代管',
pickup: '线下提号',
pickup_adjustment: '提号调整',
withdrawal: '钱包提现',
manual_offline: '线下出款',
}
export const financeDisbursementStatusMap: Record<string, StatusMeta> = {
review_pending: { label: '待审核', tone: 'gold' },
payment_pending: { label: '待打款', tone: 'blue' },
paid: { label: '已打款', tone: 'success' },
rejected: { label: '已驳回', tone: 'red' },
cancelled: { label: '已取消', tone: 'default' },
voided: { label: '已作废', tone: 'default' },
}
export const financeDisbursementStatusOptions = Object.entries(financeDisbursementStatusMap).map(
([value, meta]) => ({ value, label: meta.label })
)
export const financeDisbursementSourceOptions = Object.entries(financeDisbursementSourceMap).map(
([value, label]) => ({ value, label })
)
export const manualDisbursementCategoryMap: Record<string, string> = {
user_compensation: '用户补偿',
seller_supplement: '卖家补款',
operating_expense: '运营支出',
channel_fee: '渠道费用',
duoduo_deposit_refund: '多多退押金',
other: '其他',
custom: '自定义分类',
}
export const manualDisbursementCategoryOptions = Object.entries(manualDisbursementCategoryMap).map(
([value, label]) => ({ value, label })
)
export const operatingExpenseStatusMap: Record<string, StatusMeta> = {
paid: { label: '已记账', tone: 'success' },
voided: { label: '已作废', tone: 'default' },
}
export const operatingExpenseStatusOptions = Object.entries(operatingExpenseStatusMap).map(
([value, meta]) => ({ value, label: meta.label })
)