Compare commits
1 Commits
5bd4d7dcea
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e78101f690 |
@@ -1,6 +1,6 @@
|
|||||||
export const statusBadgeClass = (status) => {
|
export const statusBadgeClass = (status) => {
|
||||||
if (['paid', 'booked', 'available', 'success', 'published'].includes(status)) return 'success'
|
if (['paid', 'booked', 'available', 'success', 'published'].includes(status)) return 'success'
|
||||||
if (['pending_pay', 'pending'].includes(status)) return 'warning'
|
if (['pending_pay', 'pending', 'part_refunded'].includes(status)) return 'warning'
|
||||||
if (['cancelled', 'closed', 'expired', 'refunded'].includes(status)) return 'danger'
|
if (['cancelled', 'closed', 'expired', 'refunded'].includes(status)) return 'danger'
|
||||||
return 'muted'
|
return 'muted'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ const statusOptions = [
|
|||||||
{ label: '全部', value: '' },
|
{ label: '全部', value: '' },
|
||||||
{ label: '待支付', value: 'pending_pay' },
|
{ label: '待支付', value: 'pending_pay' },
|
||||||
{ label: '已支付', value: 'paid' },
|
{ label: '已支付', value: 'paid' },
|
||||||
|
{ label: '部分退款', value: 'part_refunded' },
|
||||||
{ label: '已关闭', value: 'closed' },
|
{ label: '已关闭', value: 'closed' },
|
||||||
{ label: '已退款', value: 'refunded' }
|
{ label: '已退款', value: 'refunded' }
|
||||||
]
|
]
|
||||||
@@ -192,6 +193,11 @@ loadOrders(true)
|
|||||||
color: $color-warning;
|
color: $color-warning;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status-tag.part_refunded {
|
||||||
|
background: $color-warning-light;
|
||||||
|
color: $color-warning;
|
||||||
|
}
|
||||||
|
|
||||||
.status-tag.closed {
|
.status-tag.closed {
|
||||||
background: $bg-color-hover;
|
background: $bg-color-hover;
|
||||||
color: $text-color-muted;
|
color: $text-color-muted;
|
||||||
|
|||||||
Reference in New Issue
Block a user