From 6285f3be54d9a40bae64a2397a31f76601a3508d Mon Sep 17 00:00:00 2001 From: zhulianghua Date: Tue, 18 Sep 2018 10:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E9=87=91=E9=A1=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=80=BB=E4=BB=B7=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoanSimulation/LoanBasicInfoBusiness.jsp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp index 36d462e8c..18d1ffb44 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp @@ -738,7 +738,15 @@ function getRatioByMoney(e){ var firstPayment = getItemValue(0,0,"FIRST_PAYMENT");//首付款 if(e.id == "FIRST_PAYMENT_RATIO_0") { if(e.value) { - firstPayment = Number(e.value) / 100 * Number(equipAmt); + var calcMoney = 0; + if(fundRules["FIRST_PAYMENT"]["ratioFee"] == "EquipEndAmt"){//比例参照项 + calcMoney = cleanLeaseMoney; + }else if(fundRules["FIRST_PAYMENT"]["ratioFee"] == "TOTAL_ALL"){//比例参照项 + calcMoney = allMoney; + }else{ + calcMoney = equipAmt; + } + firstPayment = Number(e.value) / 100 * Number(calcMoney); } else { firstPayment = 0; } @@ -762,8 +770,10 @@ function getRatioByMoney(e){ } var money=0; - if(fundRules[key]["ratioFee"]=="EquipEndAmt"&&key!="FIRST_PAYMENT"){//比例参照项 + if(fundRules[key]["ratioFee"]=="EquipEndAmt"){//比例参照项 money=cleanLeaseMoney; + }else if(fundRules[key]["ratioFee"]=="TOTAL_ALL"){//比例参照项 + money=allMoney; }else{ money=equipAmt; }