From 48b55830e82d04a54172311a3c232a08b222fefe Mon Sep 17 00:00:00 2001 From: user Date: Sun, 17 Jun 2018 17:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=B3=E8=AF=B7=EF=BC=8C=E8=AF=81=E4=BB=B6?= =?UTF-8?q?=E5=8F=B7=E6=A0=A1=E9=AA=8C=E3=80=81=E8=BD=A6=E8=BE=86=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E3=80=81=E7=A7=9F=E8=B5=81=E5=BD=A2=E5=BC=8F=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/CustomerInfo.jsp | 2 +- .../ProjectApprovalCreationInfo.jsp | 24 +++++++++++++++---- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp index 16c99b87e..6a027dc12 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerInfo.jsp @@ -335,7 +335,7 @@ if(getItemValue(0,0,"CERTTYPE") == null || getItemValue(0,0,"CERTTYPE") == ""){ } } - } + } /* function setErrorTips(colName,tips){ if(tips==""){ diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index a905069e5..ff982a4af 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -75,7 +75,7 @@ /*~[Describe=保存并初始化数据;InputParam=无;OutPutParam=无;]~*/ function saveRecord() { - debugger; + //从页面上获取客户编号,产品编号 var carAttributes = getItemValue(0,getRow(),"carAttributes"); var leasehold = getItemValue(0,getRow(),"leasehold"); @@ -94,7 +94,14 @@ var certid = getItemValue(0,getRow(),"certid"); - + if(carAttributes==""){ + alert("请选择车辆属性"); + return; + } + if(leasehold==""){ + alert("请选择租赁类型"); + return; + } if(certtype==""){ alert("请选择证件类型"); @@ -145,9 +152,15 @@ /*~[Describe=确认新增申请;InputParam=无;OutPutParam=无;]~*/ function doCreation() - { - if(!iV_all(0)) return ; - saveRecord(); + { + var certid = getItemValue(0,0,"certid"); + if(certid.length != 18){ + alert("证件号码格式有误!请重新输入") + return; + }else if(certid.length == 18){ + if(!iV_all(0)) return ; + saveRecord(); + } } /*~[Describe=返回列表;InputParam=无;OutPutParam=无;]~*/ @@ -319,6 +332,7 @@ setItemValue(0,0,"certtype","Ind01"); } } + <%/*~END~*/%>