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