From 9f9dc0c1afe05d1b4712b0bc65818f47124c9dae Mon Sep 17 00:00:00 2001 From: tangfutang Date: Sat, 4 Aug 2018 16:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E6=9E=B6=E5=8F=B7=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=94=AF=E4=B8=80=E6=80=A7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Lease/Flow/Comm/LBEquipment_Car/LBEquipmentInfo.jsp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;