From 73578f1b64c7af7b3e8c8b4a3dd6531cc8302929 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 10 Jan 2020 10:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=8B=E6=B8=B8=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/StatementMangement/createDownstreamOrder.html | 6 +++--- Application/Admin/View/StatementMangement/edit.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Admin/View/StatementMangement/createDownstreamOrder.html b/Application/Admin/View/StatementMangement/createDownstreamOrder.html index a47d9ca0b..2c3a66a2f 100644 --- a/Application/Admin/View/StatementMangement/createDownstreamOrder.html +++ b/Application/Admin/View/StatementMangement/createDownstreamOrder.html @@ -285,9 +285,9 @@ function eventnew(){ $(".tax").off("blur"); $(".tax").on("blur", function() { - var lastNum = $(this).parent().next().text(); + var lastNum = (parseFloat($(this).parent().next().text())).toFixed(2); $(this).parent().next().text(($(this).parent().next().attr('data-value')*(1-$(this).val()/100)).toFixed(2)); - var nowNum = $(this).parent().next().text(); + var nowNum = (parseFloat($(this).parent().next().text())).toFixed(2); console.log((nowNum-lastNum)) $(".sumAll").text((parseFloat($(".sumAll").text())+(nowNum-lastNum)).toFixed(2)); }); @@ -296,7 +296,7 @@ $(".forfeit").on("blur", function() { var lastNumber = $(this).parent().next().next().next().text(); - $(this).parent().next().next().next().text($(this).val()); + $(this).parent().next().next().next().text(parseFloat($(this).val()).toFixed(2)); $(".sumAmount").text($(".sumAmount").attr("data-value")-$(this).val()); $(".sumAll").text((parseFloat($(".sumAll").text())+parseFloat(lastNumber)-parseFloat($(this).val())).toFixed(2)); diff --git a/Application/Admin/View/StatementMangement/edit.html b/Application/Admin/View/StatementMangement/edit.html index 8c0dd5723..02ceb35c8 100644 --- a/Application/Admin/View/StatementMangement/edit.html +++ b/Application/Admin/View/StatementMangement/edit.html @@ -286,9 +286,9 @@ function eventnew(){ $(".tax").off("blur"); $(".tax").on("blur", function() { - var lastNum = $(this).parent().next().text(); + var lastNum = (parseFloat($(this).parent().next().text())).toFixed(2); $(this).parent().next().text(($(this).parent().next().attr('data-value')*(1-$(this).val()/100)).toFixed(2)); - var nowNum = $(this).parent().next().text(); + var nowNum = (parseFloat($(this).parent().next().text())).toFixed(2); console.log((nowNum-lastNum)) $(".sumAll").text((parseFloat($(".sumAll").text())+(nowNum-lastNum)).toFixed(2)); }); @@ -297,8 +297,8 @@ $(".forfeit").on("blur", function() { var lastNumber = $(this).parent().next().next().next().text(); - $(this).parent().next().next().next().text($(this).val()); - $(".sumAmount").text($(".sumAmount").attr("data-value")-$(this).val()); + $(this).parent().next().next().next().text(parseFloat($(this).val()).toFixed(2)); + $(".sumAmount").text(($(".sumAmount").attr("data-value")-$(this).val()).toFixed(2)); $(".sumAll").text((parseFloat($(".sumAll").text())+parseFloat(lastNumber)-parseFloat($(this).val())).toFixed(2));