feat(admin-web): 系统划转页面也显示账户正式名称
- 账户卡片使用 getAccountDisplayName 显示名称和编码 - 订单列表源/目标账户显示正式名称 - 订单详情弹窗显示正式名称 - 确认划转弹窗显示正式名称 回滚方式:恢复原显示方式 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8c29603f5a
commit
2a1d6a6bcc
|
|
@ -17,6 +17,7 @@ import {
|
|||
SystemAccount,
|
||||
getSystemWithdrawalStatusInfo,
|
||||
} from '@/types/system-withdrawal.types';
|
||||
import { getAccountDisplayName } from '@/types';
|
||||
import styles from './system-transfer.module.scss';
|
||||
|
||||
type TabType = 'transfer' | 'orders';
|
||||
|
|
@ -172,8 +173,10 @@ export default function SystemTransferPage() {
|
|||
)}
|
||||
onClick={() => setSelectedAccount(account)}
|
||||
>
|
||||
<div className={styles.systemTransfer__accountCardName}>{account.name}</div>
|
||||
<div className={styles.systemTransfer__accountCardSequence}>{account.accountSequence}</div>
|
||||
{/* [2026-01-07] 更新:使用 getAccountDisplayName 显示账户名称和编码 */}
|
||||
<div className={styles.systemTransfer__accountCardName}>
|
||||
{getAccountDisplayName(account.accountSequence)}
|
||||
</div>
|
||||
{account.balance && (
|
||||
<div className={styles.systemTransfer__accountCardBalance}>
|
||||
余额: {parseFloat(account.balance).toFixed(2)} USDT
|
||||
|
|
@ -342,17 +345,15 @@ export default function SystemTransferPage() {
|
|||
<td>
|
||||
<div className={styles.systemTransfer__orderNo}>{order.orderNo}</div>
|
||||
</td>
|
||||
{/* [2026-01-07] 更新:使用 getAccountDisplayName 显示账户名称和编码 */}
|
||||
<td>
|
||||
<div className={styles.systemTransfer__accountSequence}>
|
||||
{order.fromAccountSequence}
|
||||
</div>
|
||||
<div className={styles.systemTransfer__accountName}>
|
||||
{order.fromAccountName}
|
||||
{getAccountDisplayName(order.fromAccountSequence)}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div className={styles.systemTransfer__accountSequence}>
|
||||
{order.toAccountSequence}
|
||||
{getAccountDisplayName(order.toAccountSequence)}
|
||||
</div>
|
||||
{order.toUserName && (
|
||||
<div className={styles.systemTransfer__accountName}>
|
||||
|
|
@ -519,18 +520,13 @@ export default function SystemTransferPage() {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{/* [2026-01-07] 更新:使用 getAccountDisplayName 显示账户名称和编码 */}
|
||||
<div className={styles.systemTransfer__detailSection}>
|
||||
<div className={styles.systemTransfer__detailTitle}>源账户</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
<span className={styles.systemTransfer__detailLabel}>账户序列:</span>
|
||||
<span className={styles.systemTransfer__detailLabel}>账户:</span>
|
||||
<span className={styles.systemTransfer__detailValue}>
|
||||
{viewingOrder.fromAccountSequence}
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
<span className={styles.systemTransfer__detailLabel}>账户名称:</span>
|
||||
<span className={styles.systemTransfer__detailValue}>
|
||||
{viewingOrder.fromAccountName}
|
||||
{getAccountDisplayName(viewingOrder.fromAccountSequence)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -538,9 +534,9 @@ export default function SystemTransferPage() {
|
|||
<div className={styles.systemTransfer__detailSection}>
|
||||
<div className={styles.systemTransfer__detailTitle}>目标账户</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
<span className={styles.systemTransfer__detailLabel}>账户序列:</span>
|
||||
<span className={styles.systemTransfer__detailLabel}>账户:</span>
|
||||
<span className={styles.systemTransfer__detailValue}>
|
||||
{viewingOrder.toAccountSequence}
|
||||
{getAccountDisplayName(viewingOrder.toAccountSequence)}
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
|
|
@ -662,17 +658,18 @@ export default function SystemTransferPage() {
|
|||
<div className={styles.systemTransfer__warning}>
|
||||
请仔细核对划转信息,划转一旦提交将无法撤销。
|
||||
</div>
|
||||
{/* [2026-01-07] 更新:使用 getAccountDisplayName 显示账户名称和编码 */}
|
||||
<div className={styles.systemTransfer__detailSection}>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
<span className={styles.systemTransfer__detailLabel}>源账户:</span>
|
||||
<span className={styles.systemTransfer__detailValue}>
|
||||
{selectedAccount?.name} ({selectedAccount?.accountSequence})
|
||||
{selectedAccount ? getAccountDisplayName(selectedAccount.accountSequence) : '-'}
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
<span className={styles.systemTransfer__detailLabel}>目标账户:</span>
|
||||
<span className={styles.systemTransfer__detailValue}>
|
||||
{transferForm.toAccountSequence}
|
||||
{getAccountDisplayName(transferForm.toAccountSequence)}
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles.systemTransfer__detailRow}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue