feat: add status

This commit is contained in:
Rogee
2025-05-06 16:48:35 +08:00
parent 340018df48
commit ea2c92859f
3 changed files with 21 additions and 30 deletions

View File

@@ -34,10 +34,12 @@ const first = ref(0);
const rows = ref(10);
const orderStatusMap = {
0: { label: '待支付', severity: 'warning' },
1: { label: '已支付', severity: 'success' },
2: { label: '退款', severity: 'info' },
3: { label: '已取消', severity: 'danger' }
'pending': { label: '待支付', severity: 'warning' },
'paid': { label: '已支付', severity: 'success' },
'refunding': { label: '退款', severity: 'help' },
'refunded': { label: '已退款', severity: 'info' },
'cancelled': { label: '已取消', severity: 'danger' },
'completed': { label: '已完成', severity: 'success' }
};
const formatPrice = (price) => {