From 0f3c26c6fa9cb08808208fb366ca712b982ee4cf Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 4 Jan 2026 23:58:16 -0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20update=20account=20names=20an?= =?UTF-8?q?d=20change=20USDT=20to=20=E7=BB=BF=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename account labels: - 成本账户 → 总部储备 - 运营账户 → 运营账户1 - 总部社区 → 运营账户2 - RWAD待发放池 → 积分股池 - Change all USDT displays to 绿积分 throughout the system account report - Add getAssetTypeLabel function for asset type mapping in ledger details 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../SystemAccountsTab.tsx | 51 ++++++++++++------- .../src/types/system-account.types.ts | 9 ++-- 2 files changed, 39 insertions(+), 21 deletions(-) diff --git a/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx b/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx index beb27228..6136fab6 100644 --- a/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx +++ b/frontend/admin-web/src/components/features/system-account-report/SystemAccountsTab.tsx @@ -185,13 +185,14 @@ export default function SystemAccountsTab() { /** * 固定系统账户区域 + * [2026-01-05] 更新:根据业务需求调整显示名称,USDT改为绿积分 */ function FixedAccountsSection({ data }: { data: SystemAccountReportResponse['fixedAccounts'] }) { const accounts = [ - { key: 'costAccount', label: '成本账户', sequence: 'S0000000001', data: data.costAccount }, - { key: 'operationAccount', label: '运营账户', sequence: 'S0000000002', data: data.operationAccount }, - { key: 'hqCommunity', label: '总部社区', sequence: 'S0000000003', data: data.hqCommunity }, - { key: 'rwadPoolPending', label: 'RWAD待发放池', sequence: 'S0000000004', data: data.rwadPoolPending }, + { key: 'costAccount', label: '总部储备', sequence: 'S0000000001', data: data.costAccount }, + { key: 'operationAccount', label: '运营账户1', sequence: 'S0000000002', data: data.operationAccount }, + { key: 'hqCommunity', label: '运营账户2', sequence: 'S0000000003', data: data.hqCommunity }, + { key: 'rwadPoolPending', label: '积分股池', sequence: 'S0000000004', data: data.rwadPoolPending }, { key: 'platformFee', label: '平台手续费', sequence: 'S0000000005', data: data.platformFee }, ]; @@ -209,19 +210,19 @@ function FixedAccountsSection({ data }: { data: SystemAccountReportResponse['fix
账户余额 - {accountData ? formatAmount(accountData.usdtBalance) : '0.00'} USDT + {accountData ? formatAmount(accountData.usdtBalance) : '0.00'} 绿积分
累计收入 - {accountData ? formatAmount(accountData.totalReceived) : '0.00'} USDT + {accountData ? formatAmount(accountData.totalReceived) : '0.00'} 绿积分
累计转出 - {accountData ? formatAmount(accountData.totalTransferred) : '0.00'} USDT + {accountData ? formatAmount(accountData.totalTransferred) : '0.00'} 绿积分
@@ -234,6 +235,7 @@ function FixedAccountsSection({ data }: { data: SystemAccountReportResponse['fix /** * 区域账户汇总区域 + * [2026-01-05] 更新:USDT改为绿积分 */ function RegionAccountsSection({ data, type }: { data: RegionAccountsSummary; type: 'province' | 'city' }) { const typeLabel = type === 'province' ? '省' : '市'; @@ -250,11 +252,11 @@ function RegionAccountsSection({ data, type }: { data: RegionAccountsSummary; ty
总余额 - {formatAmount(data.summary.totalBalance)} USDT + {formatAmount(data.summary.totalBalance)} 绿积分
累计收入 - {formatAmount(data.summary.totalReceived)} USDT + {formatAmount(data.summary.totalReceived)} 绿积分
@@ -266,8 +268,8 @@ function RegionAccountsSection({ data, type }: { data: RegionAccountsSummary; ty 区域代码 区域名称 - 余额 (USDT) - 累计收入 (USDT) + 余额 (绿积分) + 累计收入 (绿积分) 状态 @@ -297,6 +299,7 @@ function RegionAccountsSection({ data, type }: { data: RegionAccountsSummary; ty /** * 面对面结算统计区域 + * [2026-01-05] 更新:USDT改为绿积分 */ function OfflineSettlementSection({ data }: { data: SystemAccountReportResponse['offlineSettlement'] }) { return ( @@ -311,7 +314,7 @@ function OfflineSettlementSection({ data }: { data: SystemAccountReportResponse[
总金额 - {formatAmount(data.totalAmount)} USDT + {formatAmount(data.totalAmount)} 绿积分
@@ -325,7 +328,7 @@ function OfflineSettlementSection({ data }: { data: SystemAccountReportResponse[ 月份 笔数 - 金额 (USDT) + 金额 (绿积分) @@ -351,6 +354,7 @@ function OfflineSettlementSection({ data }: { data: SystemAccountReportResponse[ /** * 过期收益统计区域 + * [2026-01-05] 更新:USDT改为绿积分 */ function ExpiredRewardsSection({ data }: { data: SystemAccountReportResponse['expiredRewards'] }) { return ( @@ -365,7 +369,7 @@ function ExpiredRewardsSection({ data }: { data: SystemAccountReportResponse['ex
总金额 - {formatAmount(data.totalAmount)} USDT + {formatAmount(data.totalAmount)} 绿积分
@@ -379,7 +383,7 @@ function ExpiredRewardsSection({ data }: { data: SystemAccountReportResponse['ex 权益类型 笔数 - 金额 (USDT) + 金额 (绿积分) @@ -406,7 +410,7 @@ function ExpiredRewardsSection({ data }: { data: SystemAccountReportResponse['ex 月份 笔数 - 金额 (USDT) + 金额 (绿积分) @@ -562,8 +566,21 @@ function LedgerSection({ ); } +/** + * 资产类型显示名称映射 + * [2026-01-05] 新增:USDT改为绿积分 + */ +const getAssetTypeLabel = (assetType: string): string => { + const labels: Record = { + USDT: '绿积分', + usdt: '绿积分', + }; + return labels[assetType] || assetType; +}; + /** * 单个账户的分类账卡片 + * [2026-01-05] 更新:资产类型显示改用中文 */ function LedgerAccountCard({ title, @@ -618,7 +635,7 @@ function LedgerAccountCard({ = 0 ? styles.amountPositive : styles.amountNegative}> - {entry.amount >= 0 ? '+' : ''}{formatAmount(entry.amount)} {entry.assetType} + {entry.amount >= 0 ? '+' : ''}{formatAmount(entry.amount)} {getAssetTypeLabel(entry.assetType)} {entry.balanceAfter !== null ? formatAmount(entry.balanceAfter) : '-'} {entry.memo || entry.allocationType || '-'} diff --git a/frontend/admin-web/src/types/system-account.types.ts b/frontend/admin-web/src/types/system-account.types.ts index 82248014..6f50a334 100644 --- a/frontend/admin-web/src/types/system-account.types.ts +++ b/frontend/admin-web/src/types/system-account.types.ts @@ -97,12 +97,13 @@ export interface SystemAccountReportResponse { /** * 账户类型显示名称映射 + * [2026-01-05] 更新:根据业务需求调整显示名称 */ export const ACCOUNT_TYPE_LABELS: Record = { - COST_ACCOUNT: '成本账户', - OPERATION_ACCOUNT: '运营账户', - HQ_COMMUNITY: '总部社区', - RWAD_POOL_PENDING: 'RWAD待发放池', + COST_ACCOUNT: '总部储备', + OPERATION_ACCOUNT: '运营账户1', + HQ_COMMUNITY: '运营账户2', + RWAD_POOL_PENDING: '积分股池', PLATFORM_FEE: '平台手续费', SYSTEM_PROVINCE: '系统省账户', SYSTEM_CITY: '系统市账户',