From 2dbcc43a434df375e9106c0f06a6fb85f7834114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98wangjiuyun?= <‘1595161655@qq.com> Date: Tue, 31 Dec 2024 10:50:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E6=97=85=E8=B4=B9=E5=92=8C=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E8=B4=B9=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/assets/js/project_budget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/assets/js/project_budget.js b/src/main/resources/static/assets/js/project_budget.js index 17c11f1..a1a37b3 100644 --- a/src/main/resources/static/assets/js/project_budget.js +++ b/src/main/resources/static/assets/js/project_budget.js @@ -366,11 +366,11 @@ $(function () { }, 0) var limitTotal = dataManage.details.reduce((total, now) => { if (now.type == 2 && (now.name == '5' || now.name == '4')) - return +total + return now.total+total else return total }, 0) var projectGrossProfitA = $('[name="projectGrossProfitA"]').val() - console.log(limitTotal, projectGrossProfitA.replace(/,/g, ''), totalTotal, limitTotal) + console.log(limitTotal, projectGrossProfitA.replace(/,/g, ''), totalTotal,7777777) if (limitTotal > ((parseFloat(projectGrossProfitA.replace(/,/g, '')) - (totalTotal - limitTotal)) * 0.1)) { $("#saveApprove").attr('disabled', false);