feat: update

This commit is contained in:
Rogee
2025-05-06 21:26:11 +08:00
parent 1f8f2b0e96
commit 1c75b50915

View File

@@ -75,7 +75,7 @@ const handleRefund = (id) => {
icon: 'pi pi-check',
size: 'small'
},
acceptClass: 'p-button-success',
acceptClass: 'p-button-warn',
accept: () => {
refundOrder(id);
}
@@ -207,7 +207,7 @@ onMounted(() => {
<span class="text-orange-500">优惠: -¥{{ formatPrice(getDiscountAmount(data.price,
data.discount)) }}</span>
<span class="font-bold">实付: ¥{{ formatPrice(getFinalPrice(data.price, data.discount))
}}</span>
}}</span>
</div>
</template>
</Column>
@@ -222,8 +222,8 @@ onMounted(() => {
</Column>
<Column field="actions" header="操作">
<template #body="{ data }">
<Button v-if="data.status === 7" icon="pi pi-replay" severity="danger" class="text-nowrap!"
size="small" @click="handleRefund(data.id)" :loading="refunding">
<Button v-if="data.status === 7" icon="pi pi-replay" severity="danger"
class="text-nowrap! px-8!" size="small" @click="handleRefund(data.id)" :loading="refunding">
退款
</Button>
</template>