From 5a31ef8548c3ef9fedc23472a4d6f5b7acf300e8 Mon Sep 17 00:00:00 2001 From: tangfutang Date: Tue, 31 Jul 2018 15:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=89=BF=E7=A7=9F=E4=BA=BA?= =?UTF-8?q?=E3=80=81=E6=8B=85=E4=BF=9D=E4=BA=BA=E3=80=81=E5=85=B1=E5=90=8C?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=BA=BA=E3=80=81=E6=89=A3=E6=AC=BE=E5=8D=A1?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=AD=E7=9A=84=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Flow/Comm/LBDebitCard/DebitCardInfo.jsp | 12 +++++++-- .../LBGuaranteePerUnitInfo.jsp | 27 +++++++++++++++---- .../CustomerFamilyJoinTempInfo.jsp | 19 ++++++++++--- .../BusinessApplication/CustomerInfo.jsp | 15 ++++++++--- 4 files changed, 60 insertions(+), 13 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp index 15e76ede5..203096190 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfo.jsp @@ -76,13 +76,21 @@ alert("预留手机号不能为空!"); return false; } - if(CheckPhoneCode(mobile)){ + var phone = /^[1][3,4,5,7,8][0-9]{9}$/; + if(phone.test(mobile)){ + setErrorTips("MOBILE",""); + return true; + }else{ + setErrorTips("MOBILE","手机号格式不正确!"); + return false; + } + /* if(CheckPhoneCode(mobile)){ return true; }else{ //setErrorTips("mobile","手机号格式不正确!"); alert("预留手机号格式不正确!"); return false; - } + } */ } function save(){ diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp index 5ad70beac..02774ece6 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp @@ -84,13 +84,22 @@ alert("手机号不能为空!"); return false; } - if(CheckPhoneCode(mobile)){ + var phone = /^[1][3,4,5,7,8][0-9]{9}$/; + if(phone.test(mobile)){ + setErrorTips("mobile",""); + return true; + }else{ + setErrorTips("mobile","手机号格式不正确!"); + //alert("手机号格式不正确!"); + return false; + } + /* if(CheckPhoneCode(mobile)){ return true; }else{ //setErrorTips("mobile","手机号格式不正确!"); alert("手机号格式不正确!"); return false; - } + } */ } function checkWorkTel(){//校验担保人单位电话格式 @@ -115,9 +124,13 @@ var sParams = "mobile="+mobile+",customerType="+customerType+",flowunid="+"<%=sFlowUnid%>"; var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams); if(sReturnInfo=="8"){ - alert("该手机号已重复!"); - setItemValue(0,0,"MOBILE",""); - return; + /* alert("该手机号已重复!"); + setItemValue(0,0,"MOBILE",""); */ + setErrorTips("MOBILE","该手机号已重复!"); + return false; + }else{ + setErrorTips("MOBILE",""); + return true; } } @@ -130,6 +143,10 @@ if(TelResult==false){ return; } + var falgs = checkMobileRepeat(); + if(falgs==false){ + return; + } // var WorkTelResult = checkWorkTel(); // if(WorkTelResult==false){ // return; diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp index 05082d476..4b999f119 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyJoinTempInfo.jsp @@ -68,7 +68,8 @@ //alert("手机号不能为空!"); return false; } - if(CheckPhoneCode(tel)){ + var phone = /^[1][3,4,5,7,8][0-9]{9}$/; + if(phone.test(tel)){ setErrorTips("tel",""); return true; }else{ @@ -76,6 +77,14 @@ //alert("手机号格式不正确!"); return false; } + /* if(CheckPhoneCode(tel)){ + setErrorTips("tel",""); + return true; + }else{ + setErrorTips("tel","手机号格式不正确!"); + //alert("手机号格式不正确!"); + return false; + } */ } function checkSuphone(){//校验单位电话格式和不为空 @@ -103,10 +112,10 @@ if(sReturnInfo=="8"){ setErrorTips("tel","该手机号已重复!"); //alert("该手机号已重复!"); - setItemValue(0,0,"tel",""); - return; + return false; }else{ setErrorTips("tel",""); + return true; } } @@ -151,6 +160,10 @@ if(SuphoneResult==false){ return; } + var falgs = checkTelRepeat(); + if(falgs==false){ + return; + } /*var ID = getItemValue(0,getRow(0),'ID'); if("undefined"==ID||""==ID || null==ID){ AsDebug.showMessage("提示","请选中一条数据!","","",true); diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index 2a4c66c99..4d75d5a02 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -360,13 +360,22 @@ alert("手机号不能为空!"); return false; } - if(CheckPhoneCode(mobile)){ + var phone = /^[1][3,4,5,7,8][0-9]{9}$/; + if(phone.test(mobile)){ + setErrorTips("mobile",""); + return true; + }else{ + setErrorTips("mobile","手机号格式不正确!"); + //alert("手机号格式不正确!"); + return false; + } + /* if(CheckPhoneCode(mobile)){ return true; }else{ //setErrorTips("mobile","手机号格式不正确!"); alert("手机号格式不正确!"); return false; - } + } */ } function saveRecord(leasfrom,projectSource){//保存 @@ -384,7 +393,7 @@ } var mobileResult = checkTel(); - if(mobileResult=="false"){ + if(mobileResult==false){ return; }