diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp index 2e08809b7..3c3e4eb25 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBContractTemplate/contract_template.jsp @@ -240,8 +240,11 @@ var message = RunJavaMethodTrans("com.tenwa.app.baseFileTemplate.handle.FileTemplateUtil","CheckCar","contractId="+"<%=sContractId%>"+",templateIds="+tempids+",flowunid="+"<%=flowunid%>"); if(""!=message){ if("01"=="<%=customertype%>"){ - alert("合同已生成,无法再次生成!"); - return; + if(message.indexOf("请先删除后再生成")>0){ + alert("合同已生成,无法再次生成!"); + location.reload(); + return; + } } alert(message); location.reload();