|
|
|
|
@ -694,16 +694,16 @@ import { listdeptNoAuth } from '@/api/system/department'
|
|
|
|
|
row.useMoney = 0
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if ((parseFloat(e) + parseFloat(row.has_money_total)) > (parseFloat(row.update_money) || parseFloat(row.money))) {
|
|
|
|
|
let findPlan = this.plan.find(i => i.value.plan_id === row.id)
|
|
|
|
|
console.log(findPlan,(parseFloat(e) + parseFloat(row.has_money_total) - parseFloat(findPlan?.value?.use_money||0)),(parseFloat(row.update_money) || parseFloat(row.money)))
|
|
|
|
|
if ((parseFloat(e) + parseFloat(row.has_money_total) - parseFloat(findPlan?.value?.use_money||0)) > (parseFloat(row.update_money) || parseFloat(row.money))) {
|
|
|
|
|
this.$message.warning("使用金额不能大于计划金额");
|
|
|
|
|
row.useMoney = 0
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let findPlan = this.plan.find(i => i.value.plan_id === row.id)
|
|
|
|
|
if (findPlan) {
|
|
|
|
|
findPlan.value.use_money = e;
|
|
|
|
|
}
|
|
|
|
|
console.log(this.plan,row)
|
|
|
|
|
row.useMoney = e
|
|
|
|
|
},
|
|
|
|
|
//确认计划选择
|
|
|
|
|
|