From f8fc7013bb84c9470463c115a722588ee84d2393 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Tue, 12 Jul 2022 17:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E5=A1=AB=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/static/js/report.js | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) 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(){