Commit 824d3d50 by zhangquan

积分优化

1 parent 896d6276
......@@ -624,9 +624,8 @@ export default {
} else callback()
} else {
const _target = this.saleMerchantList.find(item => {
let activityPrice = item.activityPrice || 0
let originalPrice = item.originalPrice || 0
return !(+activityPrice) || !(+originalPrice)
return !(+originalPrice)
})
const _integralTarget = this.saleMerchantList.find(item => !item.giveIntegral && item.giveIntegral !== 0)
const _exchangeintegralTarget = this.saleMerchantList.find(item => this.formObj.goodsSource == 1 && item.exchangeIntegralFlag && (!item.exchangeIntegral || item.exchangeIntegral == 0))
......@@ -639,7 +638,7 @@ export default {
if (!this.saleMerchantList.length) {
callback(new Error('请选择门店'))
} else if (_target) {
callback(new Error(`门店${this.formObj.goodsSource == 2 ? '零售价' : '活动价和原价'}请填写大于0的数值`))
callback(new Error(`门店${this.formObj.goodsSource == 2 ? '零售价' : '原价'}请填写大于0的数值`))
} else if (this.formObj.goodsSource != 2 && hasTarget) {
callback(new Error('原价不能小于最低售价和活动价'))
} else if (_integralTarget) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!