diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp index 3d49a1703..d64620b71 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp @@ -146,10 +146,10 @@ setItemRequired(0,"FRAME_NUMBER",true); setItemRequired(0,"CAR_COLOUR",true); setItemRequired(0,"ENGINE_NUMBER",true); - var falg = checkCarNumber(); + /* var falg = checkCarNumber(); if(falg){ $("#FRAME_NUMBER").css("color","red"); - } + } */ } }); @@ -158,8 +158,10 @@ var framenumber = getItemValue(0,getRow(0),"FRAME_NUMBER"); var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BusinessApproveManager","checkCarNumber","phaseNo="+id+",plate_number="+framenumber); if("EROOR"==sResult){ + setErrorTips("FRAME_NUMBER","车架号已存在!"); return true; }else{ + setErrorTips("FRAME_NUMBER",""); return false; } } @@ -191,6 +193,9 @@ /*~[Describe=保存记录;InputParam=无;OutPutParam=无;]~*/ function saveRecord(){ + if(checkCarNumber()){ + return; + } var sFlowUnid = "<%=sFlowUnid%>"; setItemValue(0,getRow(),"FlowUnid",sFlowUnid);//初始化流程编号 var framNum = getItemValue(0,getRow(0),"FRAME_NUMBER").length;