fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -18,6 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { I18N_TECHNICAL_TEXT } from '../../i18n/technicalText.js';
|
||||
import { formatNumber } from '../../helpers/safeDisplay';
|
||||
import { Check as ActionCheck } from '@/components/common/icons/ActionIcons';
|
||||
import React, { useEffect, useState, useCallback, useMemo } from 'react';
|
||||
import { timestamp2string } from '../../helpers/utils';
|
||||
@@ -467,7 +468,7 @@ const OrgRecharge = ({ orgId }) => {
|
||||
}
|
||||
if (effectiveAmountYuan <= 0) return '';
|
||||
const pay = effectiveAmountYuan * effectiveDiscount;
|
||||
return `${pay.toFixed(2)} ${t('元')}`;
|
||||
return `${formatNumber(pay, 2, '0.00')} ${t('元')}`;
|
||||
};
|
||||
|
||||
// 充值记录状态渲染
|
||||
@@ -508,7 +509,7 @@ const OrgRecharge = ({ orgId }) => {
|
||||
title: t('金额'),
|
||||
dataIndex: 'money',
|
||||
width: 140,
|
||||
render: (v) => `¥${Number(v).toFixed(2)}`,
|
||||
render: (v) => `¥${formatNumber(v, 2, '0.00')}`,
|
||||
},
|
||||
{
|
||||
title: t('获得额度'),
|
||||
@@ -776,7 +777,14 @@ const OrgRecharge = ({ orgId }) => {
|
||||
</div>
|
||||
<div>
|
||||
<dt>{t('优惠金额')}</dt>
|
||||
<dd>¥{(effectiveAmountYuan - payableYuan).toFixed(2)}</dd>
|
||||
<dd>
|
||||
¥
|
||||
{formatNumber(
|
||||
effectiveAmountYuan - payableYuan,
|
||||
2,
|
||||
'0.00',
|
||||
)}
|
||||
</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>{t('支付方式')}</dt>
|
||||
|
||||
Reference in New Issue
Block a user