fix: 商户池和代理充值

This commit is contained in:
luo
2026-09-22 16:46:39 +08:00
parent 10fccc4def
commit a26d7b4284
6 changed files with 72 additions and 4 deletions

View File

@@ -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: '启停状态',

View File

@@ -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) {