diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp index 8861dedb8..222c5821e 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfoBusiness.jsp @@ -738,20 +738,18 @@ function getRatioByMoney(e){ var firstPayment = getItemValue(0,0,"FIRST_PAYMENT");//首付款 //计算总价款 var allMoney = Number(equipAmt) + Number(getItemValue(0, 0, "INSURANCE_PREMIUM")) + Number(getItemValue(0, 0, "OTHER_MONEY")); - if(e.id == "FIRST_PAYMENT_RATIO_0") { - if(e.value) { - 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; + if(getItemValue(0, 0, "FIRST_PAYMENT_RATIO_0")) { + 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(getItemValue(0, 0, "FIRST_PAYMENT_RATIO_0")) / 100 * Number(calcMoney); + } else { + firstPayment = 0; } //计算融资额 setItemValue(0, 0, "TOTAL_ALL", allMoney + ""); diff --git a/WebContent/WEB-INF/etc/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml index 36fdf165e..c3d15d53d 100644 --- a/WebContent/WEB-INF/etc/app/component/component-config.xml +++ b/WebContent/WEB-INF/etc/app/component/component-config.xml @@ -1105,4 +1105,4 @@ - \ No newline at end of file + \ No newline at end of file