diff --git a/src/store/modules/carts.ts b/src/store/modules/carts.ts
index bf9b07e..d50d317 100644
--- a/src/store/modules/carts.ts
+++ b/src/store/modules/carts.ts
@@ -356,7 +356,6 @@ export const useCartsStore = defineStore("carts", () => {
originAmount: 0
}
vipUser.value = {}
- table_code.value = ''
}
// 寻找套餐商品sku
diff --git a/src/views/order/index/components/detail.vue b/src/views/order/index/components/detail.vue
index 989b16d..6e75899 100644
--- a/src/views/order/index/components/detail.vue
+++ b/src/views/order/index/components/detail.vue
@@ -110,7 +110,18 @@
-
+
+
+
+
+
+
@@ -141,20 +152,35 @@
¥{{ scope.row.payAmount }}
-
+
+
+ {{ scope.row.num - scope.row.returnNum }}
+
+
+
+
+
- 0
+ {{ scope.row.num - scope.row.refundNum }}
- {{ scope.row.refundNum }}
+ {{ scope.row.returnNum }}
+ {{ scope.row.refundNum }}
@@ -173,18 +199,19 @@
退菜
- 已退菜
+ 已退菜
+
退款
+
+
+
+ 退菜
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/order/index/order_goods_util.js b/src/views/order/index/order_goods_util.js
index a3651b2..5d78fe1 100644
--- a/src/views/order/index/order_goods_util.js
+++ b/src/views/order/index/order_goods_util.js
@@ -13,7 +13,7 @@ export function returnPackFee(arr) {
}
export function canTuicai(orderInfo, item) {
- return true;
+ return orderInfo.status == "unpaid" && item.num - item.returnNum > 0;
}
export function canTuiKuan(orderInfo, item) {
return (orderInfo.status != "refund" && orderInfo.status != "unpaid") || item.status != "refund";