From 0b2ca06ccd273334f49bb249c0b63c1c80ff8b36 Mon Sep 17 00:00:00 2001 From: zhangbb Date: Tue, 3 Dec 2019 09:56:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BA=A7=E5=93=81=E4=B8=AD=E5=B0=86=E7=A7=9F?= =?UTF-8?q?=E8=B5=81=E6=9C=9F=E9=99=90=E6=94=B9=E4=B8=BA=E5=8F=AF=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E6=9C=9F=E9=99=90=EF=BC=8C=E4=B9=9F=E5=8F=AF=E5=8C=BA?= =?UTF-8?q?=E9=97=B4=E6=9C=9F=E9=99=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComponentConfig/ComponentRule.jsp | 31 +++++++++++++++++++ .../etc/app/component/component-config.xml | 2 +- .../component/component-parameter-config.xml | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/WebContent/ProductManage/ComponentConfig/ComponentRule.jsp b/WebContent/ProductManage/ComponentConfig/ComponentRule.jsp index 455bda6cb..a2486fc23 100644 --- a/WebContent/ProductManage/ComponentConfig/ComponentRule.jsp +++ b/WebContent/ProductManage/ComponentConfig/ComponentRule.jsp @@ -94,6 +94,9 @@ if("ADJUST_INTEREST".equals(componentID)) { doTemp.setHtmlEvent("VALUE_ISADJUST_INTEREST", "onchange", "checkValueIsadjustInterest"); } + if("product_rate".equals(componentID)) { + doTemp.setHtmlEvent("VALUE_TERMTYPE", "onchange", "checkValueIsFixed"); + } dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写 dwTemp.genHTMLObjectWindow(""); CurPage.setObjectWindowOutput(dwTemp.CurPage.getObjectWindowOutput()); @@ -132,7 +135,35 @@ if("ADJUST_INTEREST" == "<%=componentID%>") { checkValueIsadjustInterest(); } + if("product_rate" == "<%=componentID%>") { + checkValueIsFixed(); + } }) + function checkValueIsFixed(){ + debugger; + var valueIsFixed = getItemValue(0, 0, "VALUE_TERMTYPE"); + if("01" == valueIsFixed){ + setItemReadOnly(0, 0, "MINIMUMVALUE_TERMSCOPE", true); + setItemReadOnly(0, 0, "MAXIMUMVALUE_TERMSCOPE", true); + setItemRequired(0, "MINIMUMVALUE_TERMSCOPE", false); + setItemRequired(0, "MAXIMUMVALUE_TERMSCOPE", false); + setItemValue(0, 0, "MINIMUMVALUE_TERMSCOPE", ""); + setItemValue(0, 0, "MAXIMUMVALUE_TERMSCOPE", ""); + + setItemReadOnly(0, 0, "OPTIONALVALUE_INCOME_NUMBER", false); + setItemRequired(0, "OPTIONALVALUE_INCOME_NUMBER", true); + }else{ + setItemReadOnly(0, 0, "OPTIONALVALUE_INCOME_NUMBER", true); + setItemRequired(0, "OPTIONALVALUE_INCOME_NUMBER", false); + setItemValue(0, 0, "OPTIONALVALUE_INCOME_NUMBER", ""); + + setItemReadOnly(0, 0, "MINIMUMVALUE_TERMSCOPE", false); + setItemReadOnly(0, 0, "MAXIMUMVALUE_TERMSCOPE", false); + setItemRequired(0, "MINIMUMVALUE_TERMSCOPE", true); + setItemRequired(0, "MAXIMUMVALUE_TERMSCOPE", true); + } + + } //利率类型JS校验 function checkValueIsadjustInterest() { diff --git a/WebContent/WEB-INF/etc/app/component/component-config.xml b/WebContent/WEB-INF/etc/app/component/component-config.xml index 04cdf8a0c..3acf65a7a 100644 --- a/WebContent/WEB-INF/etc/app/component/component-config.xml +++ b/WebContent/WEB-INF/etc/app/component/component-config.xml @@ -27,7 +27,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 18890578a..53fa2b2e1 100644 --- a/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml +++ b/WebContent/WEB-INF/etc/app/component/component-parameter-config.xml @@ -196,4 +196,4 @@ - \ No newline at end of file + \ No newline at end of file