From 415cf9ea9530c277a436faedbb871d011496d1e9 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Wed, 8 May 2019 17:04:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E8=9E=8D=E8=B5=84=E9=A2=9D?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E9=99=90=E5=8A=9F=E8=83=BD=EF=BC=9B=202.?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=84=E5=8A=A0=E8=9E=8D=E8=B5=84=E9=A1=B9?= =?UTF-8?q?=E6=80=BB=E9=87=91=E9=A2=9D=E7=9A=84=E6=9C=80=E9=AB=98=E5=92=8C?= =?UTF-8?q?=E6=9C=80=E4=BD=8E=E6=AF=94=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LoanSimulation/LoanBasicInfo.jsp | 27 ++++++++++++++++++- .../etc/app/component/component-config.xml | 2 +- .../component/component-parameter-config.xml | 6 ++--- .../reckon/product/ProductCondition.java | 4 +++ 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp index 447b1294c..b8824c272 100644 --- a/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp +++ b/WebContent/Accounting/LoanSimulation/LoanBasicInfo.jsp @@ -1009,7 +1009,32 @@ function saveRecord(sPostEvents){ alert('还租次数需大于0 !!!'); return ; } - + //贷款比例不能大于产品配置 + var cleanLeaseMoney=eval(getItemValue(0,0,"CLEAN_LEASE_MONEY"));//融资额 + var EQUIP_AMT=eval(getItemValue(0,0,"EQUIP_AMT")); + var LeaseMoneyRatio = Number(cleanLeaseMoney/EQUIP_AMT).toFixed(6); + if(calcRules["fund"]["CLEAN_LEASE_MONEY"]){ + var productCleanLeaseMoneyRatioMax = eval(calcRules["fund"]["CLEAN_LEASE_MONEY"]["LeaseMoneyRatio"]["max"]);//贷款比例上限 + var productCleanLeaseMoneyRatioMin = eval(calcRules["fund"]["CLEAN_LEASE_MONEY"]["LeaseMoneyRatio"]["min"]);//贷款比例下限 + var productCleanLeaseMoneyMax = eval(calcRules["fund"]["CLEAN_LEASE_MONEY"]["max"]);//融资额上限 + var productCleanLeaseMoneyMin = eval(calcRules["fund"]["CLEAN_LEASE_MONEY"]["min"]);//融资额下限 + if(LeaseMoneyRatioproductCleanLeaseMoneyRatioMax){ + AsDebug.showMessage("提示","综合融资额比例不能大于"+productCleanLeaseMoneyRatioMax+"%","","",true); + return ; + } + if(cleanLeaseMoneyproductCleanLeaseMoneyMax){ + AsDebug.showMessage("提示","融资额不能大于"+productCleanLeaseMoneyMax,"","",true); + return ; + } + } var startDate=getItemValue(0,getRow(),"START_DATE"); var FIRST_PLAN_DATE=getItemValue(0,getRow(),"FIRST_PLAN_DATE"); var SECOND_PLAN_DATE=getItemValue(0,getRow(),"SECOND_PLAN_DATE"); diff --git a/WebContent/WEB-INF/etc/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml index efc86f721..48a27fd02 100644 --- a/WebContent/WEB-INF/etc/app/component/component-config.xml +++ b/WebContent/WEB-INF/etc/app/component/component-config.xml @@ -1102,7 +1102,7 @@ - + diff --git a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml index 76ea60bde..9538cbad9 100644 --- a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml +++ b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml @@ -179,9 +179,9 @@ - + - + @@ -196,4 +196,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/calc/com/tenwa/reckon/product/ProductCondition.java b/calc/com/tenwa/reckon/product/ProductCondition.java index ee628bebd..428abd4a4 100644 --- a/calc/com/tenwa/reckon/product/ProductCondition.java +++ b/calc/com/tenwa/reckon/product/ProductCondition.java @@ -413,6 +413,10 @@ public class ProductCondition { sb.append("'"+key.toUpperCase()+"':"+rule+""); } } + Map cleanLeaseMoney = ProductParamUtil.getProductComponentAllParameters(productId, "PRD0350", "MoneyLimits"); + if(cleanLeaseMoney.size()>0){ + sb.append(",'CLEAN_LEASE_MONEY':{'max':'"+cleanLeaseMoney.get("MoneyUpLimits")+"','min':'"+cleanLeaseMoney.get("MoneyLowLimits")+"','LeaseMoneyRatio':{'max':'"+cleanLeaseMoney.get("LeaseMoneyRatio-MAX")+"','min':'"+cleanLeaseMoney.get("LeaseMoneyRatio-MIN")+"'}}"); + } sb.append("}"); return sb.toString(); }