From 20b14f87b98f5ef086872bdb34e96bc4fd4bee1e Mon Sep 17 00:00:00 2001 From: zhangbb Date: Tue, 3 Dec 2019 19:00:21 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9C=9F=E9=99=90=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoanSimulation/LoanBasicInfo.jsp | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 452fe574d..03c0bec5a 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -77,8 +77,15 @@ String sTempletNo = "LoanSimulationBasicInfo";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); - - + Map> productRates = ProductParamUtil.getProductComponentType(productId, "PRD0350"); + Map productRate = productRates.get("product_rate"); + String termType = productRate.get("TermType")== null ? "" : productRate.get("TermType"); + String termMin = productRate.get("TermScope-MIN"); + String termMax = productRate.get("TermScope-MAX"); + if("02".equals(termType)){ + doTemp.setColumnAttribute("INCOME_NUMBER", "coleditstyle", "1"); + + } /*设置字段事件*/ doTemp.setHtmlEvent("SETTLE_METHOD", "onchange", "changeSettleMethod");//租金计算方式 doTemp.setHtmlEvent("RENT_OR_RATE", "onchange", "rentOrRateChange");//租金推算方法 @@ -203,6 +210,7 @@ $(function(){ rentOrRateOption=$("#RENT_OR_RATE").children(); incomeNumberYear=$("#INCOME_NUMBER_YEAR").children(); adjustType=$("#ADJUST_TYPE").children(); + incomeNumber=$("#INCOME_NUMBER").children(); var fundRules=calcRules["fund"]; for(var key in fundRules){ @@ -247,6 +255,7 @@ $(function(){ } // getRatioByMoney(getObj(0, "EQUIP_AMT")); }); + function financingCar(){ var financingCar = getItemValue(0, 0, "EQUIP_AMT")-getItemValue(0, 0, "FIRST_PAYMENT"); setItemValue(0, 0, "financing_car", financingCar); @@ -827,7 +836,7 @@ function changeRateType(){ //根据金额算比例 function getRatioByMoney(e){ - debugger; + if(e.value === "") { setItemValue(0, 0, e.id, "0"); } @@ -879,7 +888,7 @@ function getRatioByMoney(e){ }else{ money=equipAmt; } - debugger; + if(fundRules[key]["ratioType"]=="InputMode03"){//互算 if(e.id==key){ if(Number(equipAmt)!=0){ @@ -1011,6 +1020,20 @@ function saveRecord(sPostEvents){ alert('还租次数需大于0 !!!'); return ; } + var termMin = "<%=termMin%>"; + var termMax = "<%=termMax%>"; + var incomeNumber = getItemValue(0,0,"INCOME_NUMBER"); + if("02"=="<%=termType%>"){ + if(incomeNumbertermMax){ + alert("期数不能大于"+termMax); + return; + } + } + //贷款比例不能大于产品配置 var cleanLeaseMoney=eval(getItemValue(0,0,"CLEAN_LEASE_MONEY"));//融资额 var EQUIP_AMT=eval(getItemValue(0,0,"EQUIP_AMT"));