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