1.修改测算时收付款不联动问题

This commit is contained in:
zhangbb 2020-07-09 18:08:21 +08:00
parent 508e64a31a
commit 0c6982b0a2

View File

@ -836,7 +836,6 @@ function changeRateType(){
//¸ù¾Ý½ð¶îËã±ÈÀý
function getRatioByMoney(e){
if(e.value === "") {
setItemValue(0, 0, e.id, "0");
}
@ -867,8 +866,8 @@ function getRatioByMoney(e){
if(e.id == "FIRST_PAYMENT_RATIO") {
firstPayment = equipAmt * Number(firstPaymentRatio) / 100
}else if(e.id == "EQUIP_AMT") {
firstPaymentRatio = Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)*100;
setItemValue(0, 0, "FIRST_PAYMENT_RATIO", firstPaymentRatio + "");
firstPaymentRatio = (Number(getItemValue(0, 0, "FIRST_PAYMENT"))/Number(equipAmt)).toFixed(6)*100;
setItemValue(0, 0, "FIRST_PAYMENT_RATIO_0", firstPaymentRatio + "");
}
// var ratio = 100 - Number(firstPaymentRatio);
// var firstPayment = equipAmt * Number(firstPaymentRatio) / 100;
@ -916,7 +915,7 @@ function getRatioByMoney(e){
}
fundRatio=Number(fundMoney/money*100).toFixed(6);
}else{
fundRatio=Number(0).toFixed(6);
fundRatio=Number(0).toFixed(6);
}
setValue(key+"_RATIO",fundRatio);
if(fundRules[key]["isShowRatio"]!="false"){
@ -924,7 +923,7 @@ function getRatioByMoney(e){
}
}
}
// var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
//var firstPayment = Number(getItemValue(0, 0, "FIRST_PAYMENT"));
if(allMoney != 0 ) {
setItemValue(0, 0, "ALL_FIRST_PAYMENT", firstPayment + "");
setItemValue(0, 0, "FIRST_PAYMENT", firstPayment + "");