Commit a34eaae1 by zhangquan

修复bug

1 parent bf7c97ca
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<el-switch :disabled="disabled" v-model="scope.scope.exchangeIntegralFlag" @change="changeIntegralFlagFn($event, scope.scope)" :active-value="1" :inactive-value="0"></el-switch> <el-switch :disabled="disabled" v-model="scope.scope.exchangeIntegralFlag" @change="changeIntegralFlagFn($event, scope.scope)" :active-value="1" :inactive-value="0"></el-switch>
</div> </div>
<div slot="exchangeIntegralSlot" slot-scope="scope"> <div slot="exchangeIntegralSlot" slot-scope="scope">
<format-input :disabled="disabled || scope.scope.exchangeIntegralFlag!=1" :minVal="1" :intDigit="6" :precise="0" placeholder="请输入" <format-input :disabled="disabled || scope.scope.exchangeIntegralFlag!=1" :intDigit="6" :precise="0" placeholder="请输入"
v-model="scope.scope.exchangeIntegral"></format-input> v-model="scope.scope.exchangeIntegral"></format-input>
</div> </div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
...@@ -338,7 +338,7 @@ export default { ...@@ -338,7 +338,7 @@ export default {
return !(+activityPrice) || !(+originalPrice) return !(+activityPrice) || !(+originalPrice)
}) })
const _integralTarget = this.saleMerchantList.find(item => !item.giveIntegral && item.giveIntegral!==0) 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) const _exchangeintegralTarget = this.saleMerchantList.find(item => this.formObj.goodsSource==1 && item.exchangeIntegralFlag && (!item.exchangeIntegral || item.exchangeIntegral==0))
const hasTarget = this.saleMerchantList.find(item => { const hasTarget = this.saleMerchantList.find(item => {
let originalPrice = item.originalPrice || 0 let originalPrice = item.originalPrice || 0
let activityPrice = item.activityPrice || 0 let activityPrice = item.activityPrice || 0
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
} else if (_integralTarget) { } else if (_integralTarget) {
callback(new Error('请输入赠送积分')) callback(new Error('请输入赠送积分'))
} else if (_exchangeintegralTarget) { } else if (_exchangeintegralTarget) {
callback(new Error('请输入兑换积分')) callback(new Error('请输入大于0的兑换积分'))
} else { } else {
callback() callback()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!