Compare commits
3 Commits
26ac358b18
...
7c5e4917dd
| Author | SHA1 | Date |
|---|---|---|
|
|
7c5e4917dd | |
|
|
1843a16dd7 | |
|
|
3886a03ac9 |
|
|
@ -105,4 +105,16 @@ export const ORDER_STATUS_ENUM: ProSchemaValueEnumObj = {
|
||||||
text: '待退款',
|
text: '待退款',
|
||||||
status: 'warning',
|
status: 'warning',
|
||||||
},
|
},
|
||||||
|
refund_requested: {
|
||||||
|
text: '已申请退款',
|
||||||
|
status: 'refund_approved',
|
||||||
|
},
|
||||||
|
refund_approved: {
|
||||||
|
text: '退款申请已通过',
|
||||||
|
status: 'refund_approved',
|
||||||
|
},
|
||||||
|
refund_cancelled: {
|
||||||
|
text: '已取消退款',
|
||||||
|
status: 'refund_cancelled',
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,18 @@ const ListPage: React.FC = () => {
|
||||||
key: 'pending_reshipment',
|
key: 'pending_reshipment',
|
||||||
label: '待补发',
|
label: '待补发',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'refund_requested',
|
||||||
|
label: '已申请退款',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'refund_approved',
|
||||||
|
label: '退款申请已通过',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'refund_cancelled',
|
||||||
|
label: '已取消退款',
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// key: 'pending_refund',
|
// key: 'pending_refund',
|
||||||
// label: '待退款',
|
// label: '待退款',
|
||||||
|
|
@ -209,8 +221,7 @@ const ListPage: React.FC = () => {
|
||||||
{
|
{
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
dataIndex: 'billing_phone',
|
dataIndex: 'billing_phone',
|
||||||
render: (_, record) => record.shipping?.phone || record.billing?.phone,
|
render: (_, record) => record.shipping?.phone || record.billing?.phone,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '州',
|
title: '州',
|
||||||
|
|
@ -752,8 +763,16 @@ const Detail: React.FC<{
|
||||||
valueEnum={ORDER_STATUS_ENUM}
|
valueEnum={ORDER_STATUS_ENUM}
|
||||||
/>
|
/>
|
||||||
<ProDescriptions.Item label="金额" dataIndex="total" />
|
<ProDescriptions.Item label="金额" dataIndex="total" />
|
||||||
<ProDescriptions.Item label="客户邮箱" dataIndex="customer_email" />
|
<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="交易Id" dataIndex="transaction_id" />
|
||||||
<ProDescriptions.Item label="IP" dataIndex="customer_id_address" />
|
<ProDescriptions.Item label="IP" dataIndex="customer_id_address" />
|
||||||
<ProDescriptions.Item label="设备" dataIndex="device_type" />
|
<ProDescriptions.Item label="设备" dataIndex="device_type" />
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,10 @@ declare namespace API {
|
||||||
| 'failed'
|
| 'failed'
|
||||||
| 'after_sale_pending'
|
| 'after_sale_pending'
|
||||||
| 'pending_reshipment'
|
| 'pending_reshipment'
|
||||||
| 'pending_refund';
|
| 'pending_refund'
|
||||||
|
| 'refund_requested'
|
||||||
|
| 'refund_approved'
|
||||||
|
| 'refund_cancelled';
|
||||||
payment_method?: string;
|
payment_method?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -857,7 +860,10 @@ declare namespace API {
|
||||||
| 'failed'
|
| 'failed'
|
||||||
| 'after_sale_pending'
|
| 'after_sale_pending'
|
||||||
| 'pending_reshipment'
|
| 'pending_reshipment'
|
||||||
| 'pending_refund';
|
| 'pending_refund'
|
||||||
|
| 'refund_requested'
|
||||||
|
| 'refund_approved'
|
||||||
|
| 'refund_cancelled';
|
||||||
payment_method?: string;
|
payment_method?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue