修正 【营销计划-立减金】单天预算大于总预算和低于面额没有给出判断。

This commit is contained in:
wangsongsole 2022-06-13 16:45:21 +08:00
parent a55bfe24b7
commit e80dc74560
1 changed files with 5 additions and 0 deletions

View File

@ -484,6 +484,11 @@ export default class addKnockGold extends Component {
return false return false
} }
if (this.state.model.day_budget - 0 < this.state.model.reduce_amount - 0) {
Notify.error('单天预算发放上限必须大于面额')
return false
}
if ( if (
parseInt(this.state.model.all_budget / this.state.model.reduce_amount) < parseInt(this.state.model.all_budget / this.state.model.reduce_amount) <
this.state.model.receive_number - 0 this.state.model.receive_number - 0