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);