💊 fix: 修复单天预算发放上限需要小于或等于总预算

This commit is contained in:
wangsongsole 2023-06-26 16:31:26 +08:00
parent 672bfe3d29
commit fc700e6fc4
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ export function additionalRules({ model, computeMax }) {
return false return false
} }
if (model.day_budget > model.all_budget) {
Notify.error("单天预算发放上限需要小于或等于总预算")
return false
}
if (model.receive_every === 1 && model.receive_num > 10) { if (model.receive_every === 1 && model.receive_num > 10) {
Notify.error("每日红包最高上限为10个") Notify.error("每日红包最高上限为10个")
return false return false