|
|
@@ -62,14 +62,20 @@ const OrderRecordsTab: React.FC<OrderRecordsTabProps> = ({ clientId }) => {
|
|
|
dataIndex: 'orderAmount',
|
|
|
key: 'orderAmount',
|
|
|
width: 120,
|
|
|
- render: (amount: number) => `¥${amount?.toFixed(2) || '0.00'}`,
|
|
|
+ render: (amount: number | string) => {
|
|
|
+ const num = typeof amount === 'string' ? parseFloat(amount) : amount;
|
|
|
+ return `¥${(num || 0).toFixed(2)}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '预付款',
|
|
|
dataIndex: 'advancePayment',
|
|
|
key: 'advancePayment',
|
|
|
width: 120,
|
|
|
- render: (amount: number) => `¥${amount?.toFixed(2) || '0.00'}`,
|
|
|
+ render: (amount: number | string) => {
|
|
|
+ const num = typeof amount === 'string' ? parseFloat(amount) : amount;
|
|
|
+ return `¥${(num || 0).toFixed(2)}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '订单状态',
|