资金项增加总价款

This commit is contained in:
zhulianghua 2018-09-18 10:33:52 +08:00
parent 10d04b6494
commit 6285f3be54

View File

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