From 5891fe6e1f217f7fc15ae10bd045c03166ed5320 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Fri, 21 Mar 2025 15:07:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E9=80=89=E6=8B=A9=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8E=E6=B8=85=E9=99=A4=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BC=98=E6=83=A0=E5=88=B8=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E6=95=B0=E9=87=8F=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E4=B8=BA=E6=95=B0=E9=87=8F-=E9=80=80=E8=8F=9C-=E9=80=80?= =?UTF-8?q?=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/Instead/components/order.vue | 1 + src/views/tool/Instead/quan_util.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/tool/Instead/components/order.vue b/src/views/tool/Instead/components/order.vue index f376026..a019262 100644 --- a/src/views/tool/Instead/components/order.vue +++ b/src/views/tool/Instead/components/order.vue @@ -346,6 +346,7 @@ const seatAmount = computed(() => { watch( () => props.user.id, (newval) => { + quansSelArr.value = []; if (newval !== "") { pointsInit(); } diff --git a/src/views/tool/Instead/quan_util.js b/src/views/tool/Instead/quan_util.js index f37bc9a..d80e437 100644 --- a/src/views/tool/Instead/quan_util.js +++ b/src/views/tool/Instead/quan_util.js @@ -31,7 +31,7 @@ export function returnCoupCanUse(goodsArr = [], coup, selCoupArr = []) { return false; } const findGoodsTotalNumber = findGoods.reduce((prve, cur) => { - const num = cur.num - cur.refundNum; + const num = cur.num - cur.refundNum - cur.returnNum; return prve + (num <= 0 ? 0 : num); }, 0); const selCoupNumber = selCoupArr