1.期限校验
This commit is contained in:
parent
f5182f1eca
commit
20b14f87b9
@ -77,8 +77,15 @@
|
||||
String sTempletNo = "LoanSimulationBasicInfo";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
|
||||
|
||||
|
||||
Map<String, Map<String, String>> productRates = ProductParamUtil.getProductComponentType(productId, "PRD0350");
|
||||
Map<String, String> 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(incomeNumber<termMin){
|
||||
alert("期数不能小于"+termMin);
|
||||
return;
|
||||
}
|
||||
if(incomeNumber>termMax){
|
||||
alert("期数不能大于"+termMax);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//贷款比例不能大于产品配置
|
||||
var cleanLeaseMoney=eval(getItemValue(0,0,"CLEAN_LEASE_MONEY"));//融资额
|
||||
var EQUIP_AMT=eval(getItemValue(0,0,"EQUIP_AMT"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user