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'){