修复【营销计划】新增立减金商品时,需要校验”面额必须小于或等于充值批次金额“
This commit is contained in:
parent
be9dcb0151
commit
ed524b5ccf
|
@ -502,6 +502,14 @@ export default class addKnockGold extends Component {
|
|||
return false
|
||||
}
|
||||
|
||||
if (
|
||||
this.state.model.recharge_amount - 0 <
|
||||
this.state.model.reduce_amount - 0
|
||||
) {
|
||||
Notify.error('面额不允许大于批次充值金额')
|
||||
return false
|
||||
}
|
||||
|
||||
if (
|
||||
Math.trunc(this.state.model.all_budget / this.state.model.reduce_amount) <
|
||||
this.state.model.receive_number - 0
|
||||
|
|
Loading…
Reference in New Issue