修复【营销计划】新增立减金商品时,需要校验”面额必须小于或等于充值批次金额“

This commit is contained in:
wangsongsole 2022-06-16 09:36:38 +08:00
parent be9dcb0151
commit ed524b5ccf
1 changed files with 8 additions and 0 deletions

View File

@ -502,6 +502,14 @@ export default class addKnockGold extends Component {
return false return false
} }
if (
this.state.model.recharge_amount - 0 <
this.state.model.reduce_amount - 0
) {
Notify.error('面额不允许大于批次充值金额')
return false
}
if ( if (
Math.trunc(this.state.model.all_budget / this.state.model.reduce_amount) < Math.trunc(this.state.model.all_budget / this.state.model.reduce_amount) <
this.state.model.receive_number - 0 this.state.model.receive_number - 0