Commit 94cced33 by zhangquan

修复bug

1 parent fcb8b02a
...@@ -220,7 +220,11 @@ export default { ...@@ -220,7 +220,11 @@ export default {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
const target = this.merchantRequestList.find(item => !item.activityPrice) const target = this.merchantRequestList.find(item => !item.activityPrice)
const hasNegTarget = this.merchantRequestList.find(item => item.activityPrice<this.formObj.depositPrice) const hasNegTarget = this.merchantRequestList.find(item => {
let activityPrice = item.activityPrice || 0
let depositPrice = this.formObj.depositPrice || 0
return +activityPrice < +depositPrice
})
if(!this.merchantRequestList.length){ if(!this.merchantRequestList.length){
callback(new Error('请选择门店')) callback(new Error('请选择门店'))
}else if(target){ }else if(target){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!