forked from yoone/WEB
1
0
Fork 0

Compare commits

...

1 Commits

Author SHA1 Message Date
黄珑 26ac358b18 Improvement: add status enum in order 2025-10-10 18:14:52 +08:00
3 changed files with 32 additions and 2 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: '待退款',

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;
};