From 0c6982b0a23c00ce9043117a925de2b734419bf1 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Thu, 9 Jul 2020 18:08:21 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=B5=8B=E7=AE=97=E6=97=B6?= =?UTF-8?q?=E6=94=B6=E4=BB=98=E6=AC=BE=E4=B8=8D=E8=81=94=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index d501b1dd1..f7b97fa2b 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -836,7 +836,6 @@ function changeRateType(){ //¸ù¾Ý½ð¶îËã±ÈÀý function getRatioByMoney(e){ - if(e.value === "") { setItemValue(0, 0, e.id, "0"); } @@ -867,8 +866,8 @@ function getRatioByMoney(e){ if(e.id == "FIRST_PAYMENT_RATIO") { firstPayment = equipAmt * Number(firstPaymentRatio) / 100 }else if(e.id == "EQUIP_AMT") { - firstPaymentRatio = Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)*100; - setItemValue(0, 0, "FIRST_PAYMENT_RATIO", firstPaymentRatio + ""); + firstPaymentRatio = (Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)).toFixed(6)*100; + setItemValue(0, 0, "FIRST_PAYMENT_RATIO_0", firstPaymentRatio + ""); } // var ratio = 100 - Number(firstPaymentRatio); // var firstPayment = equipAmt * Number(firstPaymentRatio) / 100; @@ -916,7 +915,7 @@ function getRatioByMoney(e){ } fundRatio=Number(fundMoney/money*100).toFixed(6); }else{ - fundRatio=Number(0).toFixed(6); + fundRatio=Number(0).toFixed(6); } setValue(key+"_RATIO",fundRatio); if(fundRules[key]["isShowRatio"]!="false"){ @@ -924,7 +923,7 @@ function getRatioByMoney(e){ } } } - // var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT")); + //var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT")); if(allMoney != 0 ) { setItemValue(0, 0, "ALL_FIRST_PAYMENT", firstPayment + ""); setItemValue(0, 0, "FIRST_PAYMENT", firstPayment + "");