From 598ed9bc6153f0deb2d4b38433d617f7ec75c1d5 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 21 Jun 2018 14:46:24 +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=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=BA=A7=E5=93=81=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=A0=A1=E9=AA=8C=E8=BD=A6=E8=BE=86=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E7=A7=9F=E8=B5=81=E6=96=B9=E5=BC=8F=E5=BF=85?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectApprovalCreationInfo.jsp | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp index 36ed7a49a..4abd47d64 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApproval/ProjectApprovalCreationInfo.jsp @@ -242,11 +242,24 @@ <%/*~[Describe=选择产品;]~*/%> function selectBusinessType() { + var carAttr = false; + var lease = false; var carAttributes = getItemValue(0,getRow(),"carAttributes"); + if(!carAttributes){ + + carAttr = false; + }else{ + carAttr = true; + } var leasehold = getItemValue(0,getRow(),"leasehold"); - + if(!leasehold){ + + lease = false; + }else{ + lease = true; + } var modelid=""; - if(MyOjbect.modelid){ + if(MyOjbect.modelid&&carAttr==true&&lease==true){ modelid=MyOjbect.modelid; AsDialog.OpenSelector("selectProductVersionInfo","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px", function(sReturn){ @@ -262,7 +275,15 @@ setItemValue(0,0,"versionid",sReturn[1]); },"请选择产品",''); }else{ - alert("请先选择车型"); + if(modelid){ + alert("请先选择车型"); + } + if(carAttr==false){ + alert("请先选择车辆属性"); + } + if(lease==false){ + alert("请先选择租赁方式"); + } } // if(carAttributes=='1'){