修改首付款互算问题

去除哪个逗比提交的debugger
This commit is contained in:
zhulianghua 2018-08-11 17:07:07 +08:00
parent 82043b5834
commit 18635a120e

View File

@ -227,7 +227,6 @@ $(function(){
getRatioByMoney(getObj(0, "EQUIP_AMT"));
});
function changgeCompare(){
debugger;
var nowTotal=Number("<%=nowTotal%>");
var equipAmt=Number(getItemValue(0, 0, "EQUIP_AMT"));
var flag="<%=flag%>";
@ -802,6 +801,9 @@ function changeRateType(){
//根据金额算比例
function getRatioByMoney(e){
if(e.value === "") {
setItemValue(0, 0, e.id, "0");
}
var equipAmt=getItemValue(0,0,"EQUIP_AMT");//设备款
var cleanLeaseMoney=getItemValue(0,0,"CLEAN_LEASE_MONEY");//融资额
var allMoney = 0;
@ -823,14 +825,15 @@ function getRatioByMoney(e){
}
//得到总价款
setItemValue(0, 0, "TOTAL_ALL", eval(allMoney + "+" + equipAmt) + "");
//¼ÆËã×ÛºÏÈÚ×ʶî
var firstPaymentRatio = getItemValue(0, 0, "FIRST_PAYMENT_RATIO_0");
var ratio = 100 - Number(firstPaymentRatio);
if(ratio > 0) {
cleanLeaseMoney = equipAmt * (ratio / 100) + Number(allMoney);
setItemValue(0, 0, "RENT_RATIO", ((cleanLeaseMoney / equipAmt) * 100).toFixed(6));
setItemValue(0, 0, "CLEAN_LEASE_MONEY", cleanLeaseMoney);
//¼ÆËã×ÛºÏÈÚ×ʶî
if(e.id == "FIRST_PAYMENT") {
firstPaymentRatio = Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)*100;
}
var ratio = 100 - Number(firstPaymentRatio);
cleanLeaseMoney = equipAmt * (ratio / 100) + Number(allMoney);
setItemValue(0, 0, "RENT_RATIO", ((cleanLeaseMoney / equipAmt) * 100).toFixed(6) + "");
setItemValue(0, 0, "CLEAN_LEASE_MONEY", cleanLeaseMoney + "");
allMoney = eval(allMoney + "+" + equipAmt);
for(var key in fundRules){