xy 2 years ago
parent ebf4301495
commit 47acd9f48c

@ -403,7 +403,7 @@ import { listdeptNoAuth } from '@/api/system/department'
width: 120, width: 120,
align: "right", align: "right",
formatter: (v1, v2, value) => formatter: (v1, v2, value) =>
value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "", value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "0",
}, },
{ {
label: "已用金额", label: "已用金额",
@ -411,7 +411,7 @@ import { listdeptNoAuth } from '@/api/system/department'
width: 120, width: 120,
align: "right", align: "right",
formatter: (v1, v2, value) => formatter: (v1, v2, value) =>
value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "", value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "0",
}, },
], ],
} }
@ -450,8 +450,10 @@ import { listdeptNoAuth } from '@/api/system/department'
}, },
inputMoney(e, row) { inputMoney(e, row) {
if ((parseFloat(e) + parseFloat(row.has_money_total)) > (parseFloat(row.money) || parseFloat(row.update_money))) { console.log(row)
if ((parseFloat(e) + parseFloat(row.has_money_total)) > (parseFloat(row.update_money) || parseFloat(row.money))) {
this.$message.warning("使用金额不能大于计划金额"); this.$message.warning("使用金额不能大于计划金额");
row.use_money = 0
return return
} }
row.use_money = e row.use_money = e

Loading…
Cancel
Save