diff --git a/src/views/finance/components/examineRegistration.vue b/src/views/finance/components/examineRegistration.vue index ef30439..fd8cace 100644 --- a/src/views/finance/components/examineRegistration.vue +++ b/src/views/finance/components/examineRegistration.vue @@ -403,7 +403,7 @@ import { listdeptNoAuth } from '@/api/system/department' width: 120, align: "right", formatter: (v1, v2, value) => - value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "", + value ? `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : "0", }, { label: "已用金额", @@ -411,7 +411,7 @@ import { listdeptNoAuth } from '@/api/system/department' width: 120, align: "right", 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) { - 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("使用金额不能大于计划金额"); + row.use_money = 0 return } row.use_money = e