forked from yoone/WEB
1
0
Fork 0

Compare commits

...

3 Commits

3 changed files with 43 additions and 6 deletions

View File

@ -105,4 +105,16 @@ export const ORDER_STATUS_ENUM: ProSchemaValueEnumObj = {
text: '待退款',
status: 'warning',
},
refund_requested: {
text: '已申请退款',
status: 'refund_approved',
},
refund_approved: {
text: '退款申请已通过',
status: 'refund_approved',
},
refund_cancelled: {
text: '已取消退款',
status: 'refund_cancelled',
}
};

View File

@ -122,6 +122,18 @@ const ListPage: React.FC = () => {
key: 'pending_reshipment',
label: '待补发',
},
{
key: 'refund_requested',
label: '已申请退款',
},
{
key: 'refund_approved',
label: '退款申请已通过',
},
{
key: 'refund_cancelled',
label: '已取消退款',
},
// {
// key: 'pending_refund',
// label: '待退款',
@ -210,7 +222,6 @@ const ListPage: React.FC = () => {
title: '联系电话',
dataIndex: 'billing_phone',
render: (_, record) => record.shipping?.phone || record.billing?.phone,
},
{
title: '州',
@ -753,7 +764,15 @@ const Detail: React.FC<{
/>
<ProDescriptions.Item label="金额" dataIndex="total" />
<ProDescriptions.Item label="客户邮箱" dataIndex="customer_email" />
<ProDescriptions.Item label="联系电话" dataIndex="billing_phone" />
<ProDescriptions.Item label="联系电话" span={3}
render={(_, record) => { return (
<div>
<span>
{record?.shipping?.phone || record?.billing?.phone || '-'}
</span>
</div>
);
}} />
<ProDescriptions.Item label="交易Id" dataIndex="transaction_id" />
<ProDescriptions.Item label="IP" dataIndex="customer_id_address" />
<ProDescriptions.Item label="设备" dataIndex="device_type" />

View File

@ -332,7 +332,10 @@ declare namespace API {
| 'failed'
| 'after_sale_pending'
| 'pending_reshipment'
| 'pending_refund';
| 'pending_refund'
| 'refund_requested'
| 'refund_approved'
| 'refund_cancelled';
payment_method?: string;
};
@ -857,7 +860,10 @@ declare namespace API {
| 'failed'
| 'after_sale_pending'
| 'pending_reshipment'
| 'pending_refund';
| 'pending_refund'
| 'refund_requested'
| 'refund_approved'
| 'refund_cancelled';
payment_method?: string;
};