diff --git a/projects/fangjia-open/src/main/webapp/static/js/report.js b/projects/fangjia-open/src/main/webapp/static/js/report.js index 12d52f2a2..b61a6e2d1 100644 --- a/projects/fangjia-open/src/main/webapp/static/js/report.js +++ b/projects/fangjia-open/src/main/webapp/static/js/report.js @@ -331,31 +331,34 @@ $('.download_btn').on('click', function () { /* 下载评估报告 */ $('.formal_btn').on('click', function () { - $.ajax({ - url:"checkImage", - data:{ - evaluationId:eId - }, - dataType:"json", - success:function(data){ - if(isLoan && isLoan==1){ - if(data.count_5==0){ - $.alert('请上传产调报告或权籍!'); - }else if(data.count_3==0){ - $.alert('请上传房屋照片!'); + if(isLoan!=null) { + $.ajax({ + url:"checkImage", + data:{ + evaluationId:eId + }, + dataType:"json", + success:function(data){ + if(isLoan==1){ + if(data.count_5==0){ + $.alert('请上传产调报告或权籍!'); + }else if(data.count_3==0){ + $.alert('请上传房屋照片!'); + }else{ + clickFormalReport() + } }else{ - clickFormalReport() - } - }else{ - if(data.count_3==0){ - $.alert('请上传房屋照片!'); - }else{ - clickFormalReport() + if(data.count_3==0){ + $.alert('请上传房屋照片!'); + }else{ + clickFormalReport() + } } } - } - }) - + }) + }else{ + $.alert('请选择是否续贷!'); + } }); function clickFormalReport(){