From 58e88d8deabf2054898a94b476795f785b0f75b0 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Fri, 26 Oct 2018 11:10:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AE=A1=E7=AE=97=E8=BD=A6?= =?UTF-8?q?=E4=BB=B7onchange=E6=97=B6=EF=BC=8C=E8=9E=8D=E8=B5=84=E9=A2=9D?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Accounting/LoanSimulation/LoanBasicInfo.jsp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 6480bece8..19b7afd16 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -835,9 +835,9 @@ function getRatioByMoney(e){ } var ratio = 100 - Number(firstPaymentRatio); var firstPayment = equipAmt * Number(firstPaymentRatio) / 100; - if(Number(getItemValue(0, 0, "FIRST_PAYMENT")) != firstPayment) { + /* if(Number(getItemValue(0, 0, "FIRST_PAYMENT")) != firstPayment) { firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT")); - } + } */ cleanLeaseMoney = equipAmt - firstPayment + Number(allMoney); setItemValue(0, 0, "RENT_RATIO", ((cleanLeaseMoney / equipAmt) * 100).toFixed(6) + ""); setItemValue(0, 0, "CLEAN_LEASE_MONEY", cleanLeaseMoney + ""); @@ -871,6 +871,11 @@ function getRatioByMoney(e){ setValue(key,Number(money*fundRatio/100).toFixed(2)); }else{ if(Number(equipAmt)!=0){ + if(key='FIRST_PAYMENT'){ + fundMoney=firstPayment; + fundRatio=Number(fundMoney/money*100).toFixed(6); + setValue(key,fundMoney); + } fundRatio=Number(fundMoney/money*100).toFixed(6); }else{ fundRatio=Number(0).toFixed(6); @@ -881,7 +886,7 @@ function getRatioByMoney(e){ } } } - var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT")); +// var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT")); if(allMoney != 0 && firstPayment != 0) { setItemValue(0, 0, "ALL_FIRST_PAYMENT", firstPayment + ""); setItemValue(0, 0, "ALL_FIRST_PAYMENT_RATIO", ((firstPayment / allMoney) * 100).toFixed(6));