diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp index 9a6f07655..1914fac3b 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp @@ -33,6 +33,7 @@ <% String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号 String projectId = CurPage.getParameter("ProjectId"); + String ApplyType = CurPage.getParameter("ApplyType"); BizObject boLPI= JBOFactory.createBizObjectQuery(LB_PROJECT_INFO.CLASS_NAME,"ID='"+projectId+"'").getSingleResult(false); //String carType=boLPI.getAttribute("CAR_TYPE").toString(); String carType="new_car"; @@ -124,18 +125,27 @@ if(framNum != "0" && checkFrameNumber()==false){ return; } + debugger; + var ApplyType = "<%=ApplyType%>"; + if(plate_number!=null&&plate_number!=""){ - var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveAreaCode","flowunid="+sFlowUnid+",plate_number="+plate_number); - if(sResult=="SUCCESS"){ + if(ApplyType=="BContractApproveApply"){ as_save("myiframe0",""); - //as_save(0,"goBack()"); + return; }else{ - alert("请填写正确的车牌号码!"); + var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","saveAreaCode","flowunid="+sFlowUnid+",plate_number="+plate_number); + if(sResult=="SUCCESS"){ + as_save("myiframe0",""); + //as_save(0,"goBack()"); + }else{ + alert("请填写正确的车牌号码!"); + } } }else{ - as_save("myiframe0",""); - //as_save(0,"goBack()"); + as_save("myiframe0",""); + //as_save(0,"goBack()"); } + }