From 47acd9f48c80decb9376be3c786e46c7d405d537 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 12 Jul 2024 15:43:15 +0800 Subject: [PATCH] 1 --- src/views/finance/components/examineRegistration.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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