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