Commit 08e3efc8 by 李伟康

提交

1 parent 0a567c05
...@@ -1116,10 +1116,16 @@ export default { ...@@ -1116,10 +1116,16 @@ export default {
setDefault (e, target, min = 0) { setDefault (e, target, min = 0) {
if (e[target]) e[target] = Math.abs(e[target]) if (e[target]) e[target] = Math.abs(e[target])
if (!e[target] || e[target] < min) e[target] = min if (!e[target] || e[target] < min) e[target] = min
if (target == 'activityPrice' && e[target] == 0) e.exchangeIntegralFlag = 1 if (target == 'activityPrice' && e[target] == 0) {
e.exchangeIntegralFlag = 1
this.$message.error('当前门店价不能为0')
}
}, },
integralSwitch (e, row) { integralSwitch (e, row) {
if (!e && row.activityPrice == 0) row.exchangeIntegralFlag = 1 if (!e && row.activityPrice == 0) {
row.exchangeIntegralFlag = 1
this.$message.error('当前门店价不能为0')
}
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!