feat: 迭代

This commit is contained in:
2026-05-19 16:23:01 +08:00
parent 848df4c873
commit 606895fdd5
47 changed files with 1758 additions and 377 deletions
@@ -132,7 +132,7 @@ const Earnings: React.FC = () => {
title: '订单总额',
dataIndex: 'totalAmount',
key: 'totalAmount',
render: (amount: number) => `¥${formatMoney(amount)}`,
render: (amount: number) => formatMoney(amount),
},
{
title: '平台佣金',
@@ -140,7 +140,7 @@ const Earnings: React.FC = () => {
key: 'platformCommission',
render: (commission: number) => (
<span style={{ color: '#52c41a', fontWeight: 600 }}>
¥{formatMoney(commission)}
{formatMoney(commission)}
</span>
),
},
@@ -150,7 +150,7 @@ const Earnings: React.FC = () => {
key: 'withdrawalFee',
render: (fee: number) => (
<span style={{ color: '#52c41a' }}>
¥{formatMoney(fee)}
{formatMoney(fee)}
</span>
),
},
@@ -160,7 +160,7 @@ const Earnings: React.FC = () => {
key: 'totalIncome',
render: (income: number) => (
<span style={{ color: '#52c41a', fontWeight: 600 }}>
¥{formatMoney(income)}
{formatMoney(income)}
</span>
),
},
@@ -170,7 +170,7 @@ const Earnings: React.FC = () => {
key: 'totalExpense',
render: (expense: number) => (
<span style={{ color: '#ff4d4f' }}>
¥{formatMoney(expense)}
{formatMoney(expense)}
</span>
),
},
@@ -180,7 +180,7 @@ const Earnings: React.FC = () => {
key: 'profit',
render: (profit: number) => (
<span style={{ color: profit >= 0 ? '#52c41a' : '#ff4d4f', fontWeight: 700 }}>
{profit >= 0 ? '+' : ''}¥{formatMoney(profit)}
{formatMoney(profit)}
</span>
),
},
@@ -303,22 +303,22 @@ const Earnings: React.FC = () => {
<Table.Summary.Row style={{ fontWeight: 600 }}>
<Table.Summary.Cell index={0}></Table.Summary.Cell>
<Table.Summary.Cell index={1}>{totalOrders}</Table.Summary.Cell>
<Table.Summary.Cell index={2}>¥{formatMoney(totalAmount)}</Table.Summary.Cell>
<Table.Summary.Cell index={2}>{formatMoney(totalAmount)}</Table.Summary.Cell>
<Table.Summary.Cell index={3}>
<span style={{ color: '#52c41a' }}>¥{formatMoney(totalCommission)}</span>
<span style={{ color: '#52c41a' }}>{formatMoney(totalCommission)}</span>
</Table.Summary.Cell>
<Table.Summary.Cell index={4}>
<span style={{ color: '#52c41a' }}>¥{formatMoney(totalFee)}</span>
<span style={{ color: '#52c41a' }}>{formatMoney(totalFee)}</span>
</Table.Summary.Cell>
<Table.Summary.Cell index={5}>
<span style={{ color: '#52c41a' }}>¥{formatMoney(totalIncome)}</span>
<span style={{ color: '#52c41a' }}>{formatMoney(totalIncome)}</span>
</Table.Summary.Cell>
<Table.Summary.Cell index={6}>
<span style={{ color: '#ff4d4f' }}>¥{formatMoney(totalExpense)}</span>
<span style={{ color: '#ff4d4f' }}>{formatMoney(totalExpense)}</span>
</Table.Summary.Cell>
<Table.Summary.Cell index={7}>
<span style={{ color: totalProfit >= 0 ? '#52c41a' : '#ff4d4f' }}>
{totalProfit >= 0 ? '+' : ''}¥{formatMoney(totalProfit)}
{formatMoney(totalProfit)}
</span>
</Table.Summary.Cell>
</Table.Summary.Row>