From 361f50647685c93b2bede985dc7fe018083305f2 Mon Sep 17 00:00:00 2001 From: hanbo <2608504783@qq.com> Date: Tue, 18 Jan 2022 18:27:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BB=B7=E8=AE=A1=E7=AE=97=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E5=8F=965=E4=BD=8D=E5=B0=8F=E6=95=B0?= 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 169b47e..40935ee 100644 --- a/src/main/resources/static/assets/js/project_budget.js +++ b/src/main/resources/static/assets/js/project_budget.js @@ -448,7 +448,7 @@ function bindChangeableInput() { $(".input-changeable-amount").change(function () { var amount = parseInt($(this).val()); //找到对应的单价和税率 - var price = f2($(this).parent().parent().find(".input-changeable-price").val()); + var price = f5($(this).parent().parent().find(".input-changeable-price").val()); var taxRate = f2($(this).parent().parent().find(".input-changeable-tax-rate").val()); console.log(amount, price, taxRate); @@ -473,7 +473,7 @@ function bindChangeableInput() { var taxRate = f2($(this).val()); //找到对应的数量和单价 var amount = parseInt($(this).parent().parent().find(".input-changeable-amount").val()); - var price = f2($(this).parent().parent().find(".input-changeable-price").val()); + var price = f5($(this).parent().parent().find(".input-changeable-price").val()); console.log(amount, price, taxRate); $(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(amount * price / (1 + taxRate / 100)));