fix: 商户池和代理充值
This commit is contained in:
@@ -85,6 +85,10 @@ export interface PaymentMerchantPool {
|
||||
name: string
|
||||
payment_method: PaymentMerchantMethod
|
||||
member_ids: number[]
|
||||
member_count?: number
|
||||
enabled_member_count?: number
|
||||
current_merchant_id?: number | null
|
||||
current_merchant_name?: string | null
|
||||
enabled: boolean
|
||||
strategy: PaymentPoolStrategy
|
||||
statistic_cycle: PaymentStatisticCycle
|
||||
@@ -97,6 +101,11 @@ export interface PaymentMerchantPool {
|
||||
remark: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
last_failure_merchant_id?: number | null
|
||||
last_failure_payment_id?: number | null
|
||||
last_failure_payment_no?: string | null
|
||||
last_failure_reason?: string | null
|
||||
last_failure_at?: string | null
|
||||
}
|
||||
|
||||
export interface PaymentMerchantPoolQueryParams extends PaginationParams {
|
||||
|
||||
@@ -286,7 +286,8 @@
|
||||
? h(
|
||||
'span',
|
||||
{
|
||||
style: 'color: var(--el-color-primary); cursor: pointer; text-decoration: underline;',
|
||||
style:
|
||||
'color: var(--el-color-primary); cursor: pointer; text-decoration: underline;',
|
||||
onClick: (event: MouseEvent) => {
|
||||
event.stopPropagation()
|
||||
handleNameClick(row)
|
||||
@@ -306,7 +307,22 @@
|
||||
label: '成员数量',
|
||||
prop: 'member_ids',
|
||||
width: 110,
|
||||
formatter: (row: PaymentMerchantPool) => `${row.member_ids.length} 个`
|
||||
formatter: (row: PaymentMerchantPool) =>
|
||||
`${row.enabled_member_count ?? '-'} / ${row.member_count ?? row.member_ids.length}`
|
||||
},
|
||||
{
|
||||
label: '当前命中商户',
|
||||
prop: 'current_merchant_name',
|
||||
minWidth: 150,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: PaymentMerchantPool) => row.current_merchant_name || '-'
|
||||
},
|
||||
{
|
||||
label: '最近失败原因',
|
||||
prop: 'last_failure_reason',
|
||||
minWidth: 180,
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: PaymentMerchantPool) => row.last_failure_reason || '-'
|
||||
},
|
||||
{
|
||||
label: '启停状态',
|
||||
|
||||
@@ -103,7 +103,8 @@
|
||||
},
|
||||
{
|
||||
label: '成员数量',
|
||||
formatter: (_, data) => `${(data.member_ids || []).length} 个`
|
||||
formatter: (_, data) =>
|
||||
`${data.enabled_member_count ?? '-'} / ${data.member_count ?? (data.member_ids || []).length}`
|
||||
},
|
||||
{
|
||||
label: '成员商户',
|
||||
@@ -165,7 +166,19 @@
|
||||
if (!data) return []
|
||||
|
||||
const fields: DetailField[] = [
|
||||
{ label: '路由世代', formatter: (_, row) => `v${row.routing_epoch}` }
|
||||
{ label: '路由世代', formatter: (_, row) => `v${row.routing_epoch}` },
|
||||
{ label: '当前命中商户', formatter: (_, row) => row.current_merchant_name || '-' },
|
||||
{ label: '最近失败商户ID', formatter: (_, row) => row.last_failure_merchant_id || '-' },
|
||||
{ label: '最近失败支付单号', formatter: (_, row) => row.last_failure_payment_no || '-' },
|
||||
{
|
||||
label: '最近失败原因',
|
||||
formatter: (_, row) => row.last_failure_reason || '-',
|
||||
fullWidth: true
|
||||
},
|
||||
{
|
||||
label: '最近失败时间',
|
||||
formatter: (_, row) => (row.last_failure_at ? formatDateTime(row.last_failure_at) : '-')
|
||||
}
|
||||
]
|
||||
|
||||
if (data.created_at) {
|
||||
|
||||
Reference in New Issue
Block a user