|
@@ -398,7 +398,7 @@ export function useOrder(tableRef: Ref) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function handleRefund(row: OrderItem) {
|
|
async function handleRefund(row: OrderItem) {
|
|
|
- if (row.status !== 1) {
|
|
|
|
|
|
|
+ if (row.status !== 2) {
|
|
|
message("只有已完成的订单才能退款", { type: "warning" });
|
|
message("只有已完成的订单才能退款", { type: "warning" });
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|