fix(*): 全量 UI 审查与 undefined 展示异常修复

This commit is contained in:
zhanjunhao
2026-11-20 10:18:17 +08:00
parent 04cc45bbb7
commit 605cff1d58
65 changed files with 507 additions and 274 deletions
+4 -4
View File
@@ -1094,7 +1094,7 @@ export default function PartnerPortal({
<b>
{row.customer_name ||
row.subject_name ||
`${commissionLabel(t, 'subjectType', row.subject_type)} #${row.subject_id}`}
`${commissionLabel(t, 'subjectType', row.subject_type)} ${formatIdReference(row.subject_id)}`}
</b>
),
},
@@ -1357,7 +1357,7 @@ export default function PartnerPortal({
title={t(pageTitle)}
subtitle={
selected ? (
`${t('账单号')} #${selected.id} · ${selected.statement_month}`
`${t('账单号')} ${formatIdReference(selected.id)} · ${selected.statement_month}`
) : (
<>
{t(subtitles[active])}
@@ -1375,7 +1375,7 @@ export default function PartnerPortal({
{!embedded && (
<Text type='secondary'>
{selected
? `${t('账单号')} #${selected.id} · ${selected.statement_month}`
? `${t('账单号')} ${formatIdReference(selected.id)} · ${selected.statement_month}`
: t(subtitles[active])}
{!selected &&
['overview', 'estimate'].includes(active) &&
@@ -1462,7 +1462,7 @@ export default function PartnerPortal({
style={themeStyle}
className='commission-modal partner-portal-modal'
visible={!!action}
title={`${t(action === 'reject' ? '驳回账单' : '确认账单')} · #${selected?.id || ''}`}
title={`${t(action === 'reject' ? '驳回账单' : '确认账单')} · ${formatIdReference(selected?.id)}`}
confirmLoading={mutationLoading}
closeOnEsc={!mutationLoading}
maskClosable={!mutationLoading}