|
|
@@ -68,14 +68,20 @@ const OrderRecords: React.FC = () => {
|
|
|
dataIndex: 'advancePayment',
|
|
|
key: 'advancePayment',
|
|
|
width: 120,
|
|
|
- render: (amount: number) => `¥${amount.toFixed(2)}`,
|
|
|
+ render: (amount: number | string) => {
|
|
|
+ const num = Number(amount);
|
|
|
+ return `¥${isNaN(num) ? '0.00' : num.toFixed(2)}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '订单金额',
|
|
|
dataIndex: 'orderAmount',
|
|
|
key: 'orderAmount',
|
|
|
width: 120,
|
|
|
- render: (amount: number) => `¥${amount.toFixed(2)}`,
|
|
|
+ render: (amount: number | string) => {
|
|
|
+ const num = Number(amount);
|
|
|
+ return `¥${isNaN(num) ? '0.00' : num.toFixed(2)}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '订单状态',
|