统一财务统计与线下提号出款口径
This commit is contained in:
@@ -126,7 +126,7 @@ export interface FinanceDisbursementListSummary {
|
||||
}
|
||||
|
||||
export interface FinanceDisbursementItem {
|
||||
source_type: 'platform_managed' | 'withdrawal' | 'manual_offline'
|
||||
source_type: 'platform_managed' | 'pickup' | 'pickup_adjustment' | 'withdrawal' | 'manual_offline'
|
||||
source_id: number
|
||||
business_no: string
|
||||
order_id?: number
|
||||
|
||||
@@ -274,6 +274,8 @@ function money(cents: number | undefined | null) {
|
||||
function sourceLabel(sourceType: string) {
|
||||
const labels: Record<string, string> = {
|
||||
platform_managed: '平台代管',
|
||||
pickup: '线下提号',
|
||||
pickup_adjustment: '提号调整',
|
||||
withdrawal: '用户提现',
|
||||
manual_offline: '线下出款',
|
||||
}
|
||||
@@ -283,6 +285,8 @@ function sourceLabel(sourceType: string) {
|
||||
function sourceType(sourceType: string) {
|
||||
const types: Record<string, 'primary' | 'success' | 'warning' | 'info' | 'danger'> = {
|
||||
platform_managed: 'primary',
|
||||
pickup: 'success',
|
||||
pickup_adjustment: 'warning',
|
||||
withdrawal: 'success',
|
||||
manual_offline: 'warning',
|
||||
}
|
||||
@@ -312,7 +316,10 @@ function itemStatusLabel(row: FinanceDisbursementItem) {
|
||||
}
|
||||
return map[row.raw_status] || row.status
|
||||
}
|
||||
if (row.source_type === 'platform_managed') {
|
||||
if (row.source_type === 'platform_managed' || row.source_type === 'pickup') {
|
||||
return row.raw_status === 'settled' ? '已打款' : '待打款'
|
||||
}
|
||||
if (row.source_type === 'pickup_adjustment') {
|
||||
return row.raw_status === 'settled' ? '已打款' : '待打款'
|
||||
}
|
||||
return row.status === 'paid' ? '已记账' : '已作废'
|
||||
@@ -472,6 +479,8 @@ function accountTypeLabel(type: string) {
|
||||
class="full-control"
|
||||
>
|
||||
<el-option label="平台代管" value="platform_managed" />
|
||||
<el-option label="线下提号" value="pickup" />
|
||||
<el-option label="提号调整" value="pickup_adjustment" />
|
||||
<el-option label="用户提现" value="withdrawal" />
|
||||
<el-option label="其他线下出款" value="manual_offline" />
|
||||
</el-select>
|
||||
|
||||
Reference in New Issue
Block a user