|
|
@@ -378,6 +378,11 @@ export default {
|
|
|
console.warn('[selectPrice] persistCustomDiscountList', e)
|
|
|
}
|
|
|
},
|
|
|
+ /** 当前结算恢复为无折扣(不删除自定义折扣列表) */
|
|
|
+ resetActiveDiscountToNone() {
|
|
|
+ this.discountZhe = 10
|
|
|
+ this.persistDiscountSelected()
|
|
|
+ },
|
|
|
formatDiscountZheLabel(z) {
|
|
|
const n = Number(z)
|
|
|
if (isNaN(n) || n >= 10 - 1e-6) {
|
|
|
@@ -810,6 +815,7 @@ export default {
|
|
|
clearStack() {
|
|
|
this.tokens = []
|
|
|
this.calcInput = ''
|
|
|
+ this.resetActiveDiscountToNone()
|
|
|
},
|
|
|
applyHistoryRow(row) {
|
|
|
if (!row) {
|
|
|
@@ -997,6 +1003,7 @@ export default {
|
|
|
this.cash = 0
|
|
|
this.tokens = []
|
|
|
this.calcInput = ''
|
|
|
+ this.resetActiveDiscountToNone()
|
|
|
},
|
|
|
},
|
|
|
}
|