details.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555
  1. <template>
  2. <view class="details">
  3. <view class="zxtop">
  4. <!-- 风险部 -->
  5. <view class="failtit" v-if="datainfo.auditType==4">该业务申请未通过审核,可完善信息后进行申诉</view>
  6. <view class="detop">
  7. <!-- 归档 归档后没有业务进度-->
  8. <image :src="gdicoimg" class="gdimg" v-if="datainfo.loanApplicationType==4"></image>
  9. <block v-else>
  10. <view class="speed" v-if="checkPermi(['system:schedule:list'])" @click="getSpeedFn" :style="type=='ywjd'?'z-index: 6;':''">
  11. <image :src="speedimg"></image>
  12. <view>业务</view>
  13. <view>进度</view>
  14. </view>
  15. </block>
  16. <view class="head">
  17. <view class="top">
  18. <view class="toptit">{{datainfo.enterpriseName}}</view>
  19. <view class="statbox" v-if="datainfo.isNew=='Y'">专精特新<image :src="start"></image></view>
  20. </view>
  21. <view class="adr">贷款编号 | {{datainfo.loanApplicationNumber}}</view>
  22. <view class="adr">企业地址 | {{datainfo.enterpriseName}}</view>
  23. <view class="adr">申报时间 | {{datainfo.applicationTime}}</view>
  24. <view class="adr" v-if="datainfo.fileTime">归档时间 | {{datainfo.fileTime}}</view>
  25. </view>
  26. <view class="deta">
  27. <view class="lists">
  28. <view class="tit">申请额度</view>
  29. <view class="txt">{{datainfo.applicationAmount}}<text>/万元</text></view>
  30. </view>
  31. <view class="lists">
  32. <view class="tit">使用期限</view>
  33. <view class="txt">{{datainfo.usagePeriod}}<text>/个月</text></view>
  34. </view>
  35. <view class="lists">
  36. <view class="tit">申贷银行</view>
  37. <view class="txt">{{kaType(datainfo.applicationBank,sdyhlist)}}</view>
  38. </view>
  39. <view class="lists">
  40. <view class="tit">资金用途</view>
  41. <view class="txt">{{datainfo.purposeFunds}}</view>
  42. </view>
  43. <view class="lists">
  44. <view class="tit">还款来源</view>
  45. <view class="txt">{{datainfo.repaymentSource}}</view>
  46. </view>
  47. <view class="lists">
  48. <view class="tit">担保类型</view>
  49. <view class="txt">{{statusFormats(datainfo.guaranteeType,dblxlist)}}</view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="main">
  55. <!-- tab -->
  56. <view class="tabs" :class="fixedflag?'tabfix':''">
  57. <block v-for="(ite,idx) in tabList" :key="idx">
  58. <view v-if="!ite.limit||ite.limit&&!ite.limita&&checkPermi([ite.limit])||ite.limita&&ite.limit&&checkPermi([ite.limit])&&checkPermi([ite.limita])" class="tab" :class="tabval==ite.val?'act':''" @click="getTab(ite.val)">{{ite.tit}}</view>
  59. </block>
  60. </view>
  61. <view style="height:116rpx;" v-if="fixedflag"></view>
  62. <!-- 企业信息 -->
  63. <view class="mainb" :style="'min-height: ' + minheight + 'px;'">
  64. <block v-if="tabval==0">
  65. <aqyxx @getDown="getDown" :qyinfo="qyinfo" :datainfo="datainfo" :basicFj="basicFj" ></aqyxx>
  66. </block>
  67. <block v-if="tabval==1">
  68. <bfrxx @getDown="getDown" :datainfo="datainfo" :yhlxlist="yhlxlist" :hyztlist="hyztlist" :basicFj="basicFj"></bfrxx>
  69. </block>
  70. <block v-if="tabval==2">
  71. <cfdbrxx @getDown="getDown" :datainfo="datainfo" :fdarlist="fdarlist" :fdaqylist="fdaqylist" :hyztlist="hyztlist" :basicFj="basicFj"></cfdbrxx>
  72. </block>
  73. <block v-if="tabval==3">
  74. <dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
  75. </block>
  76. <block v-if="tabval==4">
  77. <ewjcj @getDown="getDown" :pfrom="pfrom" @getQmFn="getQmFn" :datainfo="datainfo" @getDelwjFj="getDelwjFj" @getfjEdit="getfjEdit" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
  78. </block>
  79. <block v-if="tabval==5">
  80. <fshxx @getDown="getDown" :shztlist="shztlist" :shjdlist="shjdlist" :datalist="shlist" ></fshxx>
  81. </block>
  82. <!-- 投票结果 -->
  83. <block v-if="tabval==6">
  84. <gtpjg :datalist="tplist"></gtpjg>
  85. </block>
  86. </view>
  87. <!-- 法人信息 -->
  88. </view>
  89. <block v-if="datainfo.loanApplicationType!=4&&tabval!=5&&datainfo.loanApplicationType!=3">
  90. <view class="h50"></view>
  91. <view class="footbtns" >
  92. <!-- (业务进度表查询进度列表):1:申报提交 stepval 4,7,8,9,没有通过不通过
  93. 2:业务审核/分配
  94. 3:担保初审
  95. 4:初审风险合规
  96. 5:尽职调查
  97. 6:评审会
  98. 7:合同签约
  99. 8:放款合规风险审核
  100. 9:放款通知
  101. 10:归档 -->
  102. <!-- 审核进度 auditSchedule
  103. 1:业务审核/分配
  104. 2:A角色审核
  105. 3:B角色审核
  106. 4:风险审核
  107. 5:初审风险合规
  108. 6:尽职调查
  109. 7:上会评审 -->
  110. <!-- 申请审核 start-->
  111. <!-- 投票 -->
  112. <!-- 董事长一键否决 -->
  113. <view class="fbtns bgb" v-if="checkPermi(['c:conference:finish'])" @click="getVoteFinish">一键否决</view>
  114. <block v-if="pfrom=='vote'">
  115. <view class="fbtns bga" v-if="checkPermi(['c:conference:vote'])&&(datainfo.votingResult==4||datainfo.votingResult==1)" @click="getShFn('shshtp')">投票</view>
  116. <!-- 管理员重新投票 只有需要重新投票才会出现 -->
  117. <view class="fbtns bga" v-if="checkRole(['manager'])&&stepval==6&&datainfo.votingResult==3&&checkPermi(['c:conference:again'])" @click="getShFn('cxtp')">重新投票</view>
  118. </block>
  119. <block v-else>
  120. <!-- a角色,管理员和可以全程修改 -->
  121. <view class="fbtns bge" v-if="checkPermi(['system:application:edit'])&&(stepval<3||userId==datainfo.aUserId&&stepval>2||checkPermi(['*:*:*']))" @click="getedit">修改</view>
  122. <view class="fbtns bgc" v-if="checkPermi(['system:application:remove'])&&stepval<3" @click="getDel">删除</view>
  123. <!-- 申诉状态除了修改,都不给 -->
  124. <block v-if="datainfo.auditType!=4&&checkPermi(['system:application:sh'])&&datainfo.loanApplicationType==2">
  125. <!-- checkRole(['auditing_risk']) 风险角色 -->
  126. <view class="fbtns bga" v-if="auditSchedule==1&&checkRole(['manager'])" @click="getShFn('sh')">审核</view>
  127. <view class="fbtns bga" v-if="auditSchedule==4&&datainfo.auditType!=4&&userId==datainfo.fUserId" @click="getShFn('fxsh')">风险审核</view>
  128. <!-- end -->
  129. <!-- a,b角按钮 start-->
  130. <view class="fbtns bga" v-if="userId==datainfo.aUserId&&auditSchedule==6" @click="getShFn('jztcsh')">尽职调查反馈</view>
  131. <view class="fbtns bga" v-if="userId==datainfo.aUserId&&auditSchedule==2&&datainfo.auditType==1" @click="getShFn('ajssh')">审核</view>
  132. <view class="fbtns bga" v-if="userId==datainfo.bUserId&&auditSchedule==3" @click="getShFn('bjssh')">审核</view>
  133. </block>
  134. <!-- 风险上传风险报告 v-if="auditSchedule==6"-->
  135. <view class="fbtns bga" v-if="auditSchedule==6&&userId==datainfo.fUserId" @click="getfjEdit('fxbg')">上传风险调查报告</view>
  136. <!-- 审核后 -->
  137. <!-- 未通过申诉 风险不通过,上会不通过-->
  138. <!-- 撤销, 业务分配,a,b角撤销 -->
  139. <!-- 只有上会才有申诉弹窗 -->
  140. <block v-if="checkPermi(['system:application:ss'])&&datainfo.auditType==4&&(userId==datainfo.aUserId||userId==datainfo.bUserId)">
  141. <view class="fbtns bga" v-if="stepval==6" @click="getShFn('sssh')">申诉</view>
  142. <view class="fbtns bga" v-else @click="getSsFn">申诉</view>
  143. </block>
  144. <!-- 回收站,暂存,归档不能撤 项目进度是申报提交-->
  145. <!-- 撤销,管理员在 a待审核 可以撤,
  146. a,b角是自己的时候可以撤
  147. -->
  148. <!-- end -->
  149. <!-- 风险部门 start-->
  150. <block v-if="stepval==4&&userId==datainfo.fUserId">
  151. <view class="fbtns bgb" v-if="checkPermi(['system:hyperlink:list'])" @click="getMoreFn('wb')">外部工具平台</view>
  152. <!-- 初审风险审核 -->
  153. <view class="fbtns bga" @click="getShFn('fxbmsh')" v-if="checkPermi(['system:application:sh'])&&datainfo.auditType!=4">审核</view>
  154. </block>
  155. <!-- end -->
  156. <!-- 上会管理员 start -->
  157. <block v-if="stepval==6&&checkRole(['manager'])&&datainfo.auditType!=4">
  158. <view class="fbtns bga" v-if="datainfo.reviewSchedule==1" @click="getShFn('shshty')">上会审核</view>
  159. <!-- 专门账号处理商行时间 -->
  160. <view class="fbtns bga" v-if="datainfo.reviewSchedule==3" @click="getShFn('shsh')">上会日期</view>
  161. <!-- <view class="fbtns bga" v-if="checkPermi(['c:conference:vote'])&&datainfo.reviewSchedule==4&&(datainfo.votingResult==1||datainfo.votingResult==4)" @click="getShFn('shshtp')">投票</view> -->
  162. </block>
  163. <!-- 上会管理员 end -->
  164. <!-- 合同签约start -->
  165. <!-- 上传附件 是上传其他 和出具合同的附件-->
  166. <block v-if="stepval==7">
  167. <view class="fbtns bgd" @click="getMoreFn('htqy')">出具合同</view>
  168. <!-- <view class="fbtns bgb" @click="getMoreFn('htsc')">上传附件</view>
  169. <view class="fbtns bgb" @click="getMoreFn('shmore')">更多操作</view> -->
  170. </block>
  171. <!-- 合同签约end -->
  172. <!-- 风险部放款 start 推进,归档-->
  173. <!-- 管理员重新投票 只有需要重新投票才会出现 -->
  174. <view class="fbtns bga" v-if="checkRole(['manager'])&&stepval==6&&datainfo.votingResult==3&&checkPermi(['c:conference:again'])" @click="getShFn('cxtp')">重新投票</view>
  175. <block v-if="datainfo.auditType!=4">
  176. <!-- 管理员授权判断是否提前了,步骤7之后,并且暂缓了 -->
  177. <!-- 管理员 可以让a角 提前开放款通知书,意向函, a角色和管理员给 &&datainfo.aAuthorize!='Y'-->
  178. <view class="fbtns bgb" v-if="checkPermi(['system:application:authorize'])&&stepval==8" @click="getAuthorize">授权放款通知书</view>
  179. <view class="fbtns bga" v-if="checkPermi(['system:application:gd'])&&stepval==9" @click="getGdFn">一键归档</view>
  180. <view class="fbtns bga" v-if="checkPermi(['system:application:schedule'])&&stepval<9&&stepval>6" @click="getXybFn">项目推进</view>
  181. </block>
  182. <!-- end -->
  183. <!-- 所有出具 -->
  184. <view class="fbtns bgd" v-if="stepval>1&&checkPermi(['system:system:user'])" @click="getMoreFn('chuju')">出具</view>
  185. <!-- 申诉的时候不能撤销 -->
  186. <!-- <view class="fbtns" :class="auditSchedule==6?'bga':'bgb'" v-if="checkPermi(['system:application:cx'])&&(stepval!=1&&stepval!=10&&(datainfo.auditType!=1||auditSchedule<6&&auditSchedule>2))" @click="getCxFn">撤销</view> -->
  187. <block v-if="checkPermi(['system:application:cx'])&&stepval!=1&&stepval!=10&&datainfo.auditType!=4">
  188. <!-- <view class="fbtns bgb" @click="getCxFn">撤销</view> -->
  189. <view class="fbtns bgb" v-if="userId==datainfo.aUserId&&(auditSchedule==3||auditSchedule>6)" @click="getCxFn">撤销</view>
  190. <view class="fbtns bgb" v-if="userId==datainfo.bUserId&&auditSchedule==4" @click="getCxFn">撤销</view>
  191. <!-- 风险部撤销 -->
  192. <view class="fbtns bgb" v-if="userId==datainfo.fUserId&&(auditSchedule==5||stepval==5&&datainfo.auditType==1||stepval==9)" @click="getCxFn">撤销</view>
  193. <!-- stepval==6&&reviewSchedule>1 -->
  194. <view class="fbtns bgb" v-if="checkRole(['manager'])&&(datainfo.auditType!=1||auditSchedule>7||auditSchedule==2||stepval==6&&datainfo.reviewSchedule>1)" @click="getCxFn">撤销</view>
  195. </block>
  196. </block>
  197. </view>
  198. </block>
  199. <!-- 更多操作 -->
  200. <view class="bgbox" @click="getClose" v-if="mtype"></view>
  201. <view v-if="mtype" class="morebox">
  202. <view class="molists">
  203. <!-- 出具信息 -->
  204. <block v-if="mtype=='chuju'">
  205. <!-- 管理员业务初审审核后出具担保意向函-->
  206. <view v-if="(checkRole(['manager'])||userId==datainfo.aUserId)&&auditSchedule>1" @click="getIssureFn(3,'dbyxh')">出具担保意向函</view>
  207. <!-- 材料合规 风险部上传 &&checkRole(['auditing_risk']) -->
  208. <view v-if="stepval==4&&userId==datainfo.fUserId" @click="getIssureFn(13,'clhgb')">出具材料合规表</view>
  209. <view v-if="stepval==6&&datainfo.reviewSchedule==4" @click="getIssureFn(15,'pshtz')">出具评审会通知</view>
  210. <block v-if="stepval==7">
  211. <view @click="getIssureFn(12,'psyjqpb')">出具评审意见签批表</view>
  212. <view @click="getIssureFn(11,'gdhyjy')">出具股东会决议</view>
  213. <view @click="getIssureFn(1,'wtdbsqs')">出具委托担保申请书</view>
  214. </block>
  215. <!-- 放款合规表 -->
  216. <block v-if="checkRole(['manager'])||userId==datainfo.fUserId">
  217. <view class="fbtns bga" v-if="stepval==8||stepval==9&&datainfo.aAuthorize=='Y'" @click="getIssureFn(14,'fkhgb')">出具放款合规表</view>
  218. <!-- 暂缓出具 备注原因推给管理员-->
  219. <view class="fbtns bgb" v-if="stepval==8&&checkPermi(['system:application:zanHuan'])" @click="getShFn('zhfkhgb')">暂缓出具放款合规表</view>
  220. <!-- <view class="fbtns bgb" @click="getfjEdit('fkhgb')">上传附件</view> -->
  221. </block>
  222. <!-- a角 管理员 判断是否提前了,步骤7之后,并且暂缓了-->
  223. <block v-if="stepval==9||stepval==8&&datainfo.aAuthorize=='Y'">
  224. <view class="fbtns bgb" v-if="checkRole(['manager'])||userId==datainfo.aUserId" @click="getIssureFn(4,'fktzhsh')">放款通知书</view>
  225. </block>
  226. <view @click="getQtfjEdit('qtfj')" v-if="checkPermi(['system:fj:add'])">上传其他附件</view>
  227. </block>
  228. <!--风险部门 start 外部工具平台 -->
  229. <block v-if="mtype=='wb'">
  230. <view v-for="(ite,idx) in linkList" :key="idx" @click="getWebUel(ite.url)">{{ite.name}}</view>
  231. </block>
  232. <!-- 风险部门 end -->
  233. <!-- 上会管理员 start -->
  234. <block v-if="mtype=='shmore'">
  235. <view @click="getIssureFn(12,'psyjqpb')">出具评审意见签批表</view>
  236. <view @click="getIssureFn(11,'gdhyjy')">出具股东会决议</view>
  237. <!-- <view @click="getfjEdit('psyjqpb')">上传评审意见签批表</view>
  238. <view @click="getfjEdit('gdhyjy')">上传上会纪要</view> -->
  239. </block>
  240. <!-- 上会管理员 end -->
  241. <!-- 合同签约 start -->
  242. <!-- 合同上传信息 -->
  243. <!-- <block v-if="mtype=='htsc'">
  244. <view @click="getfjEdit('wtdbht')">上传委托保证合同</view>
  245. <block v-if="datainfo.guaranteeType=='2'">
  246. <view @click="getfjEdit('bzfdbhtfr')">上传保证反担保合同(法人)</view>
  247. <view @click="getfjEdit('bzfdbhtzrr')">上传保证反担保合同(自然人)</view>
  248. </block>
  249. <block v-if="datainfo.guaranteeType=='1'">
  250. <view @click="getfjEdit('dyfdbhtfr')">上传抵押反担保合同(法人)</view>
  251. <view @click="getfjEdit('dyfdbhtzrr')">上传抵押反担保合同(自然人)</view>
  252. </block>
  253. <view @click="getQtfjEdit('qtfj')">其他附件</view>
  254. </block> -->
  255. <block v-if="mtype=='htqy'">
  256. <view @click="getIssureFn(2,'wtdbht')">委托保证合同</view>
  257. <block v-if="datainfo.guaranteeType.indexOf('2')!=-1">
  258. <view @click="getIssureFn(5,'bzfdbhtfr')">保证反担保合同(法人)</view>
  259. <view @click="getIssureFn(6,'bzfdbhtzrr')">保证反担保合同(自然人)</view>
  260. </block>
  261. <block v-if="datainfo.guaranteeType.indexOf('1')!=-1">
  262. <view @click="getIssureFn(7,'dyfdbhtfr')">抵押反担保合同(法人)</view>
  263. <view @click="getIssureFn(8,'dyfdbhtzrr')">抵押反担保合同(自然人)</view>
  264. </block>
  265. <block v-if="datainfo.guaranteeType.indexOf('3')!=-1">
  266. <view @click="getIssureFn(9,'qlzqfdbhtfr')">权利质权反担保合同(适用于法人)</view>
  267. <view @click="getIssureFn(10,'qlzqfdbhtzrr')">权利质权反担保合同(适用于自然人)</view>
  268. </block>
  269. <view @click="getIssureFn(18,'qyxyfdb')">企业信用反担保合同</view>
  270. <view @click="getIssureFn(17,'wtbzgcly')">委托保证合同(工程履约)</view>
  271. <view @click="getIssureFn(16,'bkcxgr')">不可撤销个人连带责任信用反担保合同</view>
  272. </block>
  273. <!-- 合同签约 end -->
  274. </view>
  275. <!-- <view class="surbtns" @click="getMoreSure">确认</view> -->
  276. </view>
  277. <pop-up :type="type" :startady="daytime" :shtg="shtg" :loanApplicationId="datainfo.loanApplicationId" :loanApplicationNumber="datainfo.loanApplicationNumber" :userList="userList"
  278. :stepList="stepList" :wjcjobj='wjcjobj' :qtfjobj="qtfjobj" :stepval="stepval" :fjval="fjval"
  279. @getfjAdd="getfjAdd"
  280. @getClose="getClose" @getupSubmit="getupSubmit" @getSure="getSure"></pop-up>
  281. </view>
  282. </template>
  283. <script>
  284. import config from '@/config'
  285. const baseUrl = config.baseUrl
  286. const baseName = config.baseName
  287. import self from '@/utils/location.js';
  288. import { getToken } from '@/utils/auth'
  289. import popUp from "@/work/components/popup/popup.vue"
  290. import aqyxx from "@/work/components/business/aqyxx.vue"
  291. import bfrxx from "@/work/components/business/bfrxx.vue"
  292. import cfdbrxx from "@/work/components/business/cfdbrxx.vue"
  293. import dfjxx from "@/work/components/business/dfjxx.vue"
  294. import ewjcj from "@/work/components/business/ewjcj.vue"
  295. import fshxx from "@/work/components/business/fshxx.vue"
  296. import gtpjg from "@/work/components/business/gtpjg.vue"
  297. import {uploadmore,selectValue} from '@/utils/common.js'
  298. import {getInfo} from "@/api/login.js"
  299. import {getDictionaryFn} from "@/api/mine/register.js"
  300. import {getUsernoPageList,getFjAdd,getFjDel} from "@/api/common.js"
  301. import {getApplicationDet,getScheduleList,getHyperlinkList,getApplicationDel,getApplicationSh,getCommentsList,getApplicationSs,getApplicationCx,getapplicationGd,getapplicationXib,getExportMb,
  302. getZanHuan,getAuthorize,getReview,getVoteAdd,getcxVoteAdd,getVoteFive,getVoteTimeList,getVoteFinish
  303. } from "@/api/mine/work.js"
  304. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  305. export default{
  306. components:{aqyxx,bfrxx,cfdbrxx,dfjxx,ewjcj,fshxx,gtpjg,popUp},
  307. data(){
  308. return{
  309. start:require('@/work/static/images/start.png'),
  310. titimg:require('@/work/static/images/infotit.png'),
  311. speedimg:require('@/work/static/images/speed.png'),
  312. gdicoimg:require('@/work/static/images/gdico.png'),
  313. tabval:0,
  314. type:'',
  315. tabList:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3},{tit:"文件出具",val:4,limit:'system:system:user'},{tit:"审核信息",val:5,limit:'system:system:user'},{tit:"投票结果",val:6,limit:'system:system:user',limita:'c:conference:list:time'},],
  316. // tabLists:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3}],
  317. stepList:[],
  318. stepval:0,
  319. gdflag:false,
  320. auditSchedule:'',//审核进度
  321. mtype:'',
  322. minheight:0,
  323. listTop:0,//距离顶部的距离
  324. fixedflag:false,
  325. dblxlist:[],
  326. sdyhlist:[],
  327. qyinfo:{},//企业信息
  328. datainfo:{
  329. // "createBy": "",//
  330. // "createTime": null,//
  331. // "updateBy": "",//
  332. // "updateTime": null,//
  333. // "remark": null,//
  334. "loanApplicationId": '',//贷款申请id
  335. "loanApplicationNumber": "",//贷款申请编号
  336. "applicationAmount": '',//申请额度(万元)
  337. "applicationBank": "",//申请银行
  338. "usagePeriod": "",//使用期限(月)
  339. "purposeFunds": "",//资金用途
  340. "repaymentSource": "",//还款来源
  341. "enterpriseName": "",//企业名称
  342. 'sysUserEnterprise':{},//企业对象具体字段查看营业执照
  343. "categoryType": "",//行业类型
  344. "isMake": "N",//是否是制造业
  345. "isNew": "N",//是否是精特新
  346. "isSmall": "N",//是否是小微企业
  347. "isDuty": "N",//是否是免税企业
  348. "companyIntroduction": "",//公司简介
  349. "customerType": "",//用户类型
  350. "corporationFront": "",//法人身份证正面
  351. "corporationBack": "",//法人身份证反面
  352. "corporationName": "",// 法人姓名
  353. "corporationIdCard": "",//法人身份证号
  354. "corporationPhone": "",// 法人手机号
  355. "familyPopulation": "",//家庭人口数
  356. "corporationJob": "",//法人职业
  357. "isLoan": "",//有无贷款
  358. "receivablePay": "",//应收应付款
  359. "businessSituation": "",//经营情况
  360. "businessEfficiency": "",//经营效益
  361. "corporationMaritalStatus": "",//法人婚姻状态
  362. "spouseFront": "",//配偶身份证正面
  363. "spouseBack": "",//配偶身份证反面
  364. "spouseName": "",//配偶姓名
  365. "spouseIdCard": "",//配偶身份证号
  366. "spousePhone": "",//配偶手机号
  367. "guaranteeType": "",//担保类型
  368. "guaranteeFront": "",//反担保人身份证正面
  369. "guaranteeBack": "",//反担保人身份证反面
  370. "guaranteeName": "",//反担保人姓名
  371. "guaranteeIdCard": "",//反担保人身份证号
  372. "guaranteePhone": "",//反担保人手机号
  373. // "guaranteeMaritalStatus": "",//反担保人婚姻状态
  374. // "guaranteeSpouseFront": "",//反担保人配偶身份证正面
  375. // "guaranteeSpouseBack": "",//反担保人配偶身份证反面
  376. // "guaranteeSpouseName": "",//反担保人配偶姓名
  377. // "guaranteeSpouseIdCard": "",//反担保人配偶身份证号
  378. // "guaranteeSpousePhone": "",//反担保人配偶手机号
  379. // "userId": '',//申请人用户ID
  380. // "idCard": "",//申请人身份证号码
  381. // "applicationTime": "",//申请时间
  382. "fileTime": "",//归档时间
  383. "loanSchedule": "",//贷款申请进度(业务进度表查询进度列表):1:申报提交2:业务审核/分配 3:担保初审 4:尽职调查 5:初审风险合规 6:评审会 7:合同签约 8:放款合规风险审核 9:放款通知 10:归档
  384. "loanScheduleName": '',//贷款申请进度名称(中文字)
  385. "auditSchedule": "",//审核进度1:担保初审 2:A角色审核 3:B角色审核 4:风险审核 5:尽职调查 6:上会评审
  386. "auditType": "",//审核状态 1:待审核 2:已通过 3:未通过 4:申诉
  387. "loanApplicationType": "",//贷款申请状态 1:暂存 2:正常 3:回收站 4:归档
  388. "aUserId": "",//A角色用户ID
  389. "aUserName": "",//A角色用户名称
  390. "bUserId": "",//B角色用户ID
  391. "bUserName": "",//B角色用户名称
  392. "shareholderFjList": [],//全体股东信息附件
  393. "loanApplicationFjList": [],//相关附件
  394. "basicFj": {},//基础附件
  395. "declareFj": {},//申报附件
  396. "fileFj": {},//文件出具
  397. "otherFj": {},//其他附件 key值是type类型 value值具体字段查看相关附件新增
  398. },
  399. gdlists:[],//股东信息
  400. basicFj:{},//基础附件
  401. declareFj:{},//申报附件
  402. yhlxlist:[],//用户类型
  403. hyztlist:[],//婚姻状态
  404. sbfjlist:[],//申报附件
  405. wjcjlist:[],//文件出具
  406. linkList:[],//外部链接
  407. userList:[],//用户列表
  408. shjdlist:[],//审核进度
  409. shztlist:[],//审核状态
  410. fdarlist:[],//反担保人附件列表
  411. fdaqylist:[],//反担保企业附件列表
  412. shlist:[],//审核信息
  413. tplist:[],//投票列表
  414. shinfo:{},//审核信息
  415. wjcjobj:{},//文件出具对象
  416. qtfjobj:{'qtfj':"其他附件"},//其他附件
  417. qtfjlist:[],//其他附件
  418. fjval:'',//附件类型
  419. userId:this.$store.state.user.userId,
  420. iscjflag:false,
  421. contype:'',//二次确认弹窗
  422. mval:-1,
  423. mite:"",
  424. shtg:'',
  425. textType:[
  426. {tit:'文字',val:'w',children:['doc','docx','wps']},
  427. {tit:'表格',val:'s',children:['xls','xlsx']},
  428. {tit:'演示',val:'p',children:['ppt','pptx']},
  429. {tit:'PDF',val:'f',children:['pdf','ofd']},
  430. {tit:'智能文档',val:'o',children:['otl']},
  431. {tit:'多维表格',val:'d',children:['dbt']},
  432. ],
  433. isqiye:true,
  434. pfrom:'',//vote 从投票来的
  435. daytime:'',
  436. }
  437. },
  438. onLoad(e) {
  439. this.id=e.id;
  440. if(e.from){
  441. this.pfrom=e.from
  442. }
  443. // this.time()
  444. this.init()
  445. this.getDetail();
  446. if(checkPermi(['system:schedule:list'])){
  447. this.getScheduleList();;//贷款进度
  448. }
  449. if(checkPermi(['system:hyperlink:list'])){
  450. this.getHyperlinkList();//外部链接stepval==4
  451. }
  452. if(checkPermi(['system:user:noPageList'])){
  453. this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
  454. }
  455. // if(checkPermi(['system:system:user'])&&checkPermi(['system:comments:list'])){
  456. // this.getCommentsList()//审核意见
  457. // }
  458. // if(checkPermi(['system:system:user'])&&checkPermi(['c:conference:list:time'])){
  459. // this.getVoteTimeList()//投票结果
  460. // }
  461. // this.getInfolis()
  462. },
  463. mounted() {
  464. var that=this;
  465. uni.getSystemInfo({
  466. success: (e) => {
  467. this.minheight = e.screenHeight- 50;
  468. }
  469. })
  470. setTimeout(function(){
  471. that.getHeightFn()
  472. },200)
  473. },
  474. onPageScroll(e) {
  475. var scrollTop = Number(e.scrollTop);
  476. var listTop=Number(this.listTop)
  477. if(scrollTop>listTop){
  478. this.fixedflag=true
  479. }else{
  480. this.fixedflag=false
  481. }
  482. },
  483. methods:{
  484. time() {
  485. var date = new Date();
  486. var y = date.getFullYear();
  487. var m = date.getMonth() + 1;
  488. var d = date.getDate();
  489. this.daytime=y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);
  490. },
  491. checkPermi, checkRole,
  492. statusFormats(ite,list,type){//多选匹配
  493. if(ite){
  494. var actions = [];
  495. list.forEach(s => {
  496. if(ite.indexOf(s.value)>-1){
  497. actions.push(s.label);
  498. }
  499. })
  500. return actions.join(',')
  501. }else{
  502. return ''
  503. }
  504. },
  505. kaType(ite,list){
  506. return selectValue(list, ite);
  507. },
  508. getedit(){
  509. var obj={
  510. type:'edit',
  511. id:this.id,
  512. val:this.tabval
  513. }
  514. this.$tab.navigateTo('/work/pages/business/add?data='+encodeURIComponent(JSON.stringify(obj)))
  515. },
  516. // 删除
  517. getDelwjFj(id){
  518. var that=this;
  519. uni.showModal({
  520. title: '确认删除',
  521. content: "是否确认删除",
  522. cancelText: '取消',
  523. confirmText: '确认',
  524. success: function(res) {
  525. if (res.confirm) {
  526. getFjDel(id).then(res=>{
  527. if(res.code==200){
  528. that.$toast("删除成功")
  529. setTimeout(function(){
  530. that.getDetail()
  531. },1200)
  532. }
  533. })
  534. } else if (res.cancel) {
  535. }
  536. }
  537. });
  538. },
  539. // 出具附件
  540. // getfjEdit(ite){
  541. // var type=0;
  542. // if(ite=='dbyxh'){
  543. // type=3
  544. // }else if(ite=='fkhgb'){
  545. // type=14
  546. // }else if(ite=='fktzs'){
  547. // type=4
  548. // }else if(ite=='clhgb'){
  549. // type=13
  550. // }else if(ite=='psyjqpb'){
  551. // type=12
  552. // }else if(ite=='gdhyjy'){
  553. // type=11
  554. // }else if(ite=='wtdbht'){
  555. // type=2
  556. // }else if(ite=='bzfdbhtfr'){
  557. // type=5
  558. // }else if(ite=='bzfdbhtzrr'){
  559. // type=6
  560. // }else if(ite=='dyfdbhtfr'){
  561. // type=7
  562. // }else if(ite=='dyfdbhtzrr'){
  563. // type=8
  564. // }else if(ite=='qlzqfdbhtfr'){
  565. // type=9
  566. // }else if(ite=='qlzqfdbhtzrr'){
  567. // type=10
  568. // }
  569. // if(type){
  570. // this.getIssureFn(type,ite)
  571. // }
  572. // },
  573. // 上传附件
  574. getfjEdit(ite){
  575. this.type='fjadd';
  576. this.mtype='';
  577. this.fjval=ite
  578. },
  579. getQtfjEdit(val){
  580. this.type='qtfjadd';
  581. this.mtype='';
  582. this.fjval=val
  583. },
  584. // 业务进度
  585. getScheduleList(){
  586. var params={
  587. loanApplicationId:this.id
  588. }
  589. getScheduleList(params).then(res=>{
  590. if(res.code==200){
  591. this.stepList=res.data
  592. }
  593. })
  594. },
  595. getWebUel(url){
  596. // this.mval=idx;
  597. // this.mite=ite
  598. this.mtype='';
  599. this.$tab.navigateTo("/pages/common/webview/index?url="+url)
  600. },
  601. getMoreSure(){
  602. var mttype=this.mtype;
  603. var mite=this.mite;
  604. if(mttype=='wb'){
  605. this.mtype='';
  606. this.$tab.navigateTo("/pages/common/webview/index?url="+mite.url)
  607. }
  608. },
  609. // 外部链接
  610. getHyperlinkList(){
  611. var params={
  612. type:1
  613. }
  614. getHyperlinkList(params).then(res=>{
  615. if(res.code==200){
  616. this.linkList=res.rows
  617. }
  618. })
  619. },
  620. // 用户-列表
  621. //用户类型(00系统用户 01注册用户 02管理用户
  622. getUsernoPageList(){
  623. var params={
  624. userType:'02'
  625. }
  626. getUsernoPageList(params).then(res=>{
  627. if(res.code==200){
  628. this.userList=res.rows
  629. }
  630. })
  631. },
  632. getCommentsList(){
  633. var params={
  634. loanApplicationId:this.id,
  635. }
  636. getCommentsList(params).then(res=>{
  637. if(res.code==200){
  638. var newArr=res.rows;
  639. newArr.forEach(ite=>{
  640. if(ite.imageUrl){
  641. ite.imageUrl=ite.imageUrl.split(',')
  642. }
  643. })
  644. this.shlist=newArr
  645. }
  646. })
  647. },
  648. // 投票结果
  649. getVoteTimeList(){
  650. var params={
  651. loanApplicationId:this.id,
  652. }
  653. getVoteTimeList(params).then(res=>{
  654. if(res.code==200){
  655. var newArr=res.data;
  656. newArr.forEach(ite=>{
  657. ite.check=false
  658. })
  659. this.tplist=JSON.parse(JSON.stringify(newArr))
  660. }
  661. })
  662. },
  663. init(){
  664. // 用户类型
  665. getDictionaryFn('customer_type').then(res=>{
  666. if(res.code==200){
  667. this.yhlxlist = res.data.map(v => {
  668. return {
  669. label: v.dictLabel,
  670. value: v.dictValue
  671. }
  672. })
  673. }
  674. })
  675. // 婚姻状况
  676. getDictionaryFn('marital_status').then(res=>{
  677. if(res.code==200){
  678. this.hyztlist = res.data.map(v => {
  679. return {
  680. label: v.dictLabel,
  681. value: v.dictValue
  682. }
  683. })
  684. }
  685. })
  686. // 申贷银行
  687. getDictionaryFn('shendai_bank').then(res=>{
  688. if(res.code==200){
  689. this.sdyhlist = res.data.map(v => {
  690. return {
  691. label: v.dictLabel,
  692. value: v.dictValue
  693. }
  694. })
  695. }
  696. })
  697. //担保类型
  698. getDictionaryFn('guarantee_type').then(res=>{
  699. if(res.code==200){
  700. this.dblxlist = res.data.map(v => {
  701. return {
  702. label: v.dictLabel,
  703. value: v.dictValue
  704. }
  705. })
  706. }
  707. })
  708. // 附件信息
  709. getDictionaryFn('application_fj_sb').then(res=>{
  710. if(res.code==200){
  711. this.sbfjlist = res.data.map(v => {
  712. return {
  713. label: v.dictLabel,
  714. val: v.dictValue,
  715. fjlist:[]
  716. }
  717. })
  718. }
  719. })
  720. // // 文件出具
  721. getDictionaryFn('application_fj_wjcj').then(res=>{
  722. if(res.code==200){
  723. var obj={}
  724. this.wjcjlist = res.data.map(v => {
  725. // var key=v.dictValue
  726. obj[v.dictValue]=v.dictLabel
  727. return {
  728. label: v.dictLabel,
  729. val: v.dictValue,
  730. fjlist:[]
  731. }
  732. })
  733. this.wjcjobj=obj
  734. }
  735. })
  736. //审核状态
  737. getDictionaryFn('sh_status').then(res=>{
  738. if(res.code==200){
  739. this.shztlist = res.data.map(v => {
  740. return {
  741. label: v.dictLabel,
  742. value: v.dictValue,
  743. }
  744. })
  745. }
  746. })
  747. // 其他附件
  748. // getDictionaryFn('application_fj_other').then(res=>{
  749. // if(res.code==200){
  750. // var obj={}
  751. // this.qtfjlist = res.data.map(v => {
  752. // // var key=v.dictValue
  753. // obj[v.dictValue]=v.dictLabel
  754. // return {
  755. // label: v.dictLabel,
  756. // val: v.dictValue,
  757. // fjlist:[]
  758. // }
  759. // })
  760. // this.qtfjobj=obj
  761. // console.log(obj,1)
  762. // }
  763. // })
  764. //审核进度
  765. getDictionaryFn('audit_schedule').then(res=>{
  766. if(res.code==200){
  767. this.shjdlist = res.data.map(v => {
  768. return {
  769. label: v.dictLabel,
  770. value: v.dictValue,
  771. }
  772. })
  773. }
  774. })
  775. },
  776. getTab(val){
  777. this.tabval=val;
  778. uni.pageScrollTo({
  779. scrollTop: Number(this.listTop),
  780. duration: 0
  781. })
  782. if(val==5){
  783. this.getCommentsList()
  784. }else if(val==6){
  785. this.getVoteTimeList();
  786. }else if(val==4&&this.iscjflag){
  787. this.iscjflag=false;
  788. this.getDetail();
  789. }
  790. },
  791. // 出具
  792. getIssureFn(type,fileType){
  793. var that=this;
  794. that.iscjflag=true;
  795. var params={
  796. type:type,
  797. loanApplicationId:this.id,
  798. fileType:fileType,
  799. bigType:'c',
  800. }
  801. getExportMb(params).then(res=>{
  802. if(res.code==200){
  803. var data=res.data;
  804. var path=data.path;
  805. var name=data.fileName;
  806. var fileName = name.replace(/.*(\/|\\)/, ""); // 获得文件名
  807. var fileSuffix = (/[.]/.exec(fileName)) ? /[^.]+$/.exec(fileName.toLowerCase()) : ''; // 获得文件后缀
  808. var texthz=fileSuffix[0];
  809. var type=''
  810. // 在线编辑
  811. // 获取后缀
  812. var textType=that.textType;
  813. Object.keys(textType).some((key) => {
  814. if (textType[key].children.indexOf(texthz)!=-1) {
  815. type=`${textType[key].val}`
  816. return true;
  817. }
  818. })
  819. data.type=type
  820. that.$tab.navigateTo('/pages/common/webview/weboffice?data='+encodeURIComponent(JSON.stringify(data)))
  821. }
  822. })
  823. },
  824. getDownloader(path,name){
  825. console.log(path,name)
  826. // #ifdef APP-PLUS
  827. self.getFilePermissions(function(res){
  828. if(res==1){
  829. uni.showLoading({
  830. title: '加载中'
  831. });
  832. var url = baseUrl + path;
  833. let dtask = plus.downloader.createDownload(url, {
  834. filename: 'file://storage/emulated/0/'+baseName+'/' + name
  835. }, (d, status) => {
  836. //d为下载的文件对象
  837. if (status == 200) {
  838. uni.hideLoading();
  839. uni.showToast({
  840. icon: 'none',
  841. mask: true,
  842. title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
  843. duration: 3000,
  844. });
  845. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  846. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  847. setTimeout(() => {
  848. plus.runtime.openFile(d.filename); //选择软件打开文件
  849. }, 1500)
  850. } else {
  851. //下载失败
  852. uni.hideLoading();
  853. plus.downloader.clear(); //清除下载任务
  854. uni.showToast({
  855. icon: 'none',
  856. mask: true,
  857. title: '下载失败,请稍后重试',
  858. });
  859. }
  860. })
  861. dtask.start();
  862. }else{
  863. uni.hideLoading();
  864. uni.showToast({
  865. title: '无法获取权限,文件下载将出错!',
  866. icon: 'none',
  867. })
  868. }
  869. })
  870. // #endif
  871. },
  872. getClose(){
  873. this.type='';
  874. this.mtype='';
  875. },
  876. getupSubmit(data){
  877. this.shinfo=JSON.parse(JSON.stringify(data))
  878. var type=this.type;
  879. if(type=='ajssh'||type=='bjssh'){
  880. this.contype=this.type
  881. this.type='confirm'
  882. this.shtg=data.auditType
  883. }else if(type=='zhfkhgb'){
  884. this.getZanHuanFn()
  885. }else if(type=='shshty'){//上会
  886. this.getReview()
  887. }else if(type=='shsh'){//日期
  888. this.getVoteFive()
  889. }else if(type=='shshtp'){//投票
  890. this.getVoteAdd()
  891. }else if(type=='sssh'){//申诉
  892. this.getSsshFn()
  893. }else if(type=='cxtp'){//重新投票
  894. this.getcxVoteAdd()
  895. }else{
  896. this.getApplicationSh()
  897. }
  898. },
  899. getSure(){
  900. this.getApplicationSh()
  901. },
  902. getfjAdd(data){
  903. var that=this;
  904. var params=JSON.parse(JSON.stringify(data));
  905. var fjUrl=params.fjUrl
  906. // params.loanApplicationId=this.id;
  907. // params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  908. // params.auditSchedule=this.auditSchedule;
  909. getFjAdd(fjUrl).then(res=>{
  910. if(res.code==200){
  911. that.$toast('上传附件成功')
  912. setTimeout(function(){
  913. that.getDetail();
  914. uni.$emit('refreshdatalist')
  915. that.type=''
  916. },1200)
  917. }
  918. })
  919. },
  920. getApplicationSh(){
  921. var that=this;
  922. var params=this.shinfo;
  923. params.loanApplicationId=this.id;
  924. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  925. params.auditSchedule=this.auditSchedule;
  926. params.enterpriseName=this.datainfo.enterpriseName;
  927. getApplicationSh(params).then(res=>{
  928. if(res.code==200){
  929. that.$toast('审核成功')
  930. setTimeout(function(){
  931. that.getDetail();
  932. uni.$emit('refreshdatalist')
  933. that.type=''
  934. },1200)
  935. }
  936. })
  937. },
  938. // 上会同意接口
  939. getReview(data){
  940. var that=this;
  941. var params=this.shinfo;
  942. params.loanApplicationId=this.id;
  943. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  944. params.auditSchedule=this.auditSchedule;
  945. params.aUserId=this.datainfo.aUserId;
  946. params.loanSchedule=this.datainfo.loanSchedule;
  947. params.auditType=this.datainfo.auditType;
  948. params.enterpriseName=this.datainfo.enterpriseName;
  949. getReview(params).then(res=>{
  950. if(res.code==200){
  951. that.$toast('审核成功')
  952. setTimeout(function(){
  953. that.getDetail();
  954. uni.$emit('refreshdatalist')
  955. that.type=''
  956. },1200)
  957. }
  958. })
  959. },
  960. // 上会日期
  961. getVoteFive(data){
  962. var that=this;
  963. var params=this.shinfo;
  964. params.loanApplicationId=this.id;
  965. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  966. params.enterpriseName=this.datainfo.enterpriseName;
  967. // params.auditSchedule=this.auditSchedule;
  968. getVoteFive(params).then(res=>{
  969. if(res.code==200){
  970. that.$toast('操作成功')
  971. setTimeout(function(){
  972. that.getDetail();
  973. uni.$emit('refreshdatalist')
  974. that.type=''
  975. },1200)
  976. }
  977. })
  978. },
  979. // 上会投票
  980. getVoteAdd(data){
  981. var that=this;
  982. var params=this.shinfo;
  983. params.loanApplicationId=this.id;
  984. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  985. params.auditSchedule=this.auditSchedule;
  986. params.conferenceTime=this.datainfo.reviewTime;
  987. getVoteAdd(params).then(res=>{
  988. if(res.code==200){
  989. that.$toast('投票成功')
  990. setTimeout(function(){
  991. that.getDetail();
  992. uni.$emit('refreshdatalist')
  993. that.type=''
  994. },1200)
  995. }
  996. })
  997. },
  998. // 重新投票
  999. getcxVoteAdd(){
  1000. var that=this;
  1001. var params=this.shinfo;
  1002. params.loanApplicationId=this.id;
  1003. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  1004. // params.auditSchedule=this.auditSchedule;
  1005. getcxVoteAdd(params).then(res=>{
  1006. if(res.code==200){
  1007. that.$toast('操作成功')
  1008. setTimeout(function(){
  1009. that.getDetail();
  1010. uni.$emit('refreshdatalist')
  1011. that.type=''
  1012. },1200)
  1013. }
  1014. })
  1015. },
  1016. // 一票否决
  1017. getVoteFinish(){
  1018. var that=this;
  1019. uni.showModal({
  1020. title: '确认否决',
  1021. content: "是否一键否决该申请",
  1022. cancelText: '取消',
  1023. confirmText: '确认',
  1024. success: function(res) {
  1025. if (res.confirm) {
  1026. var params={
  1027. loanApplicationId:that.id,
  1028. }
  1029. getVoteFinish(params).then(res=>{
  1030. if(res.code==200){
  1031. that.$toast('一票否决成功')
  1032. setTimeout(function(){
  1033. that.getDetail();
  1034. uni.$emit('refreshdatalist')
  1035. that.type=''
  1036. },1200)
  1037. }
  1038. })
  1039. } else if (res.cancel) {
  1040. }
  1041. }
  1042. });
  1043. },
  1044. // 申诉
  1045. getSsshFn(data){
  1046. var that=this;
  1047. var params=this.shinfo;
  1048. params.loanApplicationId=this.id;
  1049. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  1050. params.auditSchedule=this.auditSchedule;
  1051. params.auditType=this.datainfo.auditType;
  1052. params.aUserId=this.datainfo.aUserId;
  1053. params.bUserId=this.datainfo.bUserId;
  1054. params.enterpriseName=this.datainfo.enterpriseName;
  1055. getApplicationSs(params).then(res=>{
  1056. if(res.code==200){
  1057. that.$toast('操作成功')
  1058. setTimeout(function(){
  1059. that.getDetail();
  1060. uni.$emit('refreshdatalist')
  1061. that.type=''
  1062. },1200)
  1063. }
  1064. })
  1065. },
  1066. // 暂缓出具
  1067. getZanHuanFn(data){
  1068. var that=this;
  1069. var params=this.shinfo;
  1070. params.loanApplicationId=this.id;
  1071. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  1072. params.aUserId=this.datainfo.aUserId;
  1073. params.enterpriseName=this.datainfo.enterpriseName;
  1074. getZanHuan(params).then(res=>{
  1075. if(res.code==200){
  1076. that.$toast('暂缓成功')
  1077. setTimeout(function(){
  1078. that.getDetail();
  1079. uni.$emit('refreshdatalist')
  1080. that.type=''
  1081. },1200)
  1082. }
  1083. })
  1084. },
  1085. //授权
  1086. getAuthorize(data){
  1087. var that=this;
  1088. uni.showModal({
  1089. title: '确认授权',
  1090. content: "是否授权A角提前开放款通知书?",
  1091. cancelText: '取消',
  1092. confirmText: '确认',
  1093. success: function(res) {
  1094. if (res.confirm) {
  1095. var params={};
  1096. params.loanApplicationId=that.id;
  1097. params.loanApplicationNumber=that.datainfo.loanApplicationNumber;
  1098. getAuthorize(params).then(res=>{
  1099. if(res.code==200){
  1100. that.$toast('授权成功')
  1101. setTimeout(function(){
  1102. that.getDetail();
  1103. uni.$emit('refreshdatalist')
  1104. that.type=''
  1105. },1200)
  1106. }
  1107. })
  1108. } else if (res.cancel) {
  1109. }
  1110. }
  1111. });
  1112. },
  1113. getShFn(type){
  1114. this.type=type;
  1115. this.mtype='';
  1116. },
  1117. getSsFn(){
  1118. var that=this;
  1119. var datainfo=JSON.parse(JSON.stringify(this.datainfo))
  1120. uni.showModal({
  1121. title: '确认申诉',
  1122. content: "是否确认申诉",
  1123. cancelText: '取消',
  1124. confirmText: '确认',
  1125. success: function(res) {
  1126. if (res.confirm) {
  1127. var params={
  1128. loanApplicationId:that.id,
  1129. loanApplicationNumber:datainfo.loanApplicationNumber,
  1130. aUserId:datainfo.aUserId,
  1131. bUserId:datainfo.bUserId,
  1132. auditType:datainfo.auditType,
  1133. enterpriseName:datainfo.enterpriseName,
  1134. ssType:1,
  1135. }
  1136. getApplicationSs(params).then(res=>{
  1137. if(res.code==200){
  1138. that.$toast("申诉成功")
  1139. setTimeout(function(){
  1140. that.getDetail();
  1141. uni.$emit('refreshdatalist')
  1142. },1200)
  1143. }
  1144. })
  1145. } else if (res.cancel) {
  1146. }
  1147. }
  1148. });
  1149. },
  1150. getCxFn(){
  1151. var that=this;
  1152. var datainfo=JSON.parse(JSON.stringify(this.datainfo))
  1153. uni.showModal({
  1154. title: '确认撤销',
  1155. content: "是否确认撤销",
  1156. cancelText: '取消',
  1157. confirmText: '确认',
  1158. success: function(res) {
  1159. if (res.confirm) {
  1160. that.mtype=''
  1161. var params={
  1162. loanApplicationId:that.id,
  1163. loanApplicationNumber:datainfo.loanApplicationNumber,
  1164. auditSchedule:that.auditSchedule,
  1165. loanSchedule:datainfo.loanSchedule,
  1166. loanApplicationType:datainfo.loanApplicationType,
  1167. auditType:datainfo.auditType,
  1168. reviewSchedule:datainfo.reviewSchedule,
  1169. enterpriseName:datainfo.enterpriseName,
  1170. aUserId:datainfo.aUserId,
  1171. bUserId:datainfo.bUserId,
  1172. fUserId:datainfo.fUserId,
  1173. }
  1174. getApplicationCx(params).then(res=>{
  1175. if(res.code==200){
  1176. that.$toast("撤销成功")
  1177. setTimeout(function(){
  1178. that.getDetail()
  1179. uni.$emit('refreshywlist')
  1180. // uni.navigateBack({
  1181. // delta:1
  1182. // })
  1183. },1200)
  1184. }
  1185. })
  1186. } else if (res.cancel) {
  1187. }
  1188. }
  1189. });
  1190. },
  1191. getXybFn(){
  1192. var that=this;
  1193. uni.showModal({
  1194. title: '确认推进',
  1195. content: "是否确认推进",
  1196. cancelText: '取消',
  1197. confirmText: '确认',
  1198. success: function(res) {
  1199. if (res.confirm) {
  1200. var params={
  1201. loanApplicationId:that.id,
  1202. auditSchedule:that.auditSchedule,
  1203. loanSchedule:that.datainfo.loanSchedule,
  1204. aUserId:that.datainfo.aUserId,
  1205. loanApplicationNumber:that.datainfo.loanApplicationNumber,
  1206. enterpriseName:that.datainfo.enterpriseName,
  1207. }
  1208. getapplicationXib(params).then(res=>{
  1209. if(res.code==200){
  1210. that.$toast("推进成功")
  1211. setTimeout(function(){
  1212. that.getDetail()
  1213. uni.$emit('refreshywlist')
  1214. },1200)
  1215. }
  1216. })
  1217. } else if (res.cancel) {
  1218. }
  1219. }
  1220. });
  1221. },
  1222. getGdFn(){
  1223. var that=this;
  1224. uni.showModal({
  1225. title: '确认归档',
  1226. content: "是否确认归档",
  1227. cancelText: '取消',
  1228. confirmText: '确认',
  1229. success: function(res) {
  1230. if (res.confirm) {
  1231. var params={
  1232. loanApplicationId:that.id,
  1233. auditSchedule:that.auditSchedule,
  1234. loanSchedule:that.datainfo.loanSchedule,
  1235. loanApplicationType:that.datainfo.loanApplicationType,
  1236. loanApplicationNumber:that.datainfo.loanApplicationNumber,
  1237. enterpriseName:that.datainfo.enterpriseName,
  1238. auditType:that.datainfo.auditType,
  1239. aUserId:that.datainfo.aUserId,
  1240. bUserId:that.datainfo.bUserId,
  1241. fUserId:that.datainfo.fUserId,
  1242. }
  1243. getapplicationGd(params).then(res=>{
  1244. if(res.code==200){
  1245. that.$toast("归档成功")
  1246. setTimeout(function(){
  1247. that.getDetail()
  1248. uni.$emit('refreshywlist')
  1249. // uni.navigateBack({
  1250. // delta:1
  1251. // })
  1252. },1200)
  1253. }
  1254. })
  1255. } else if (res.cancel) {
  1256. }
  1257. }
  1258. });
  1259. },
  1260. getMoreFn(type){
  1261. this.mtype=type;
  1262. this.mval=-1;
  1263. this.mtit=''
  1264. },
  1265. getSpeedFn(){
  1266. if(this.type){
  1267. this.type=''
  1268. }else{
  1269. this.type='ywjd'
  1270. }
  1271. },
  1272. getQmFn(url){
  1273. this.$tab.navigateTo("/work/pages/business/sign?url="+encodeURIComponent(JSON.stringify(url)))
  1274. },
  1275. getDel(){
  1276. var that=this;
  1277. uni.showModal({
  1278. title: '确认删除',
  1279. content: "是否确认删除",
  1280. cancelText: '取消',
  1281. confirmText: '确认',
  1282. success: function(res) {
  1283. if (res.confirm) {
  1284. getApplicationDel(that.id).then(res=>{
  1285. if(res.code==200){
  1286. that.$toast("删除成功")
  1287. setTimeout(function(){
  1288. uni.$emit('refreshdatalist')
  1289. uni.navigateBack({
  1290. delta:1
  1291. })
  1292. },1200)
  1293. }
  1294. })
  1295. } else if (res.cancel) {
  1296. }
  1297. }
  1298. });
  1299. },
  1300. getDetail(){
  1301. getApplicationDet(this.id).then(res=>{
  1302. if(res.code==200){
  1303. this.datainfo=res.data;
  1304. this.auditSchedule=res.data.auditSchedule
  1305. if(res.data.sysUserEnterprise){
  1306. this.qyinfo=res.data.sysUserEnterprise
  1307. }
  1308. // 反担保
  1309. if(res.data.guaranteeInfoList){
  1310. // 数据处理
  1311. var fdarlist=[],fdaqylist=[];
  1312. var gInfoList=res.data.guaranteeInfoList;
  1313. Object.keys(gInfoList).some((key) => {
  1314. var obj=gInfoList[key];
  1315. var fdblist=gInfoList[key].guaranteeInfoFjList;
  1316. fdblist=fdblist.filter((ite) => {
  1317. if(ite.type=='fdbrsfzrmx'||ite.type=='fdbrsfzghm'){
  1318. return ite.remark!=1
  1319. }else{
  1320. return ite.remark==1||this.getFilterFj(ite.url);
  1321. }
  1322. })
  1323. obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
  1324. if(obj.type==1){
  1325. fdarlist.push(obj)
  1326. }else if(obj.type==2){
  1327. fdaqylist.push(obj)
  1328. }
  1329. })
  1330. this.fdarlist=JSON.parse(JSON.stringify(fdarlist));
  1331. this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist));
  1332. }
  1333. if(res.data.basicFj){
  1334. // 数据处理
  1335. var basicFj=res.data.basicFj;
  1336. Object.keys(basicFj).some((key) => {
  1337. // a,b里面的全部都转pdf了
  1338. basicFj[key]=basicFj[key].filter((ite) => {
  1339. return ite.remark==1||this.getFilterFj(ite.url);
  1340. })
  1341. // 公司章程,企业征信,企业法人,实际控股人,配偶征信,个人征信,反担保企业征信
  1342. // if(key=='gszc'||key=='sqqyzxbg'||key=='glqyzxbg'||key=='qyfrzxbg'||key=='sjkgrzxbg'||key=='sjkgrpozxbg'||key=='fdbrgrzxbg'||key=='fdbqyzx'){
  1343. // basicFj[key]=basicFj[key].filter((ite) => {
  1344. // return ite.remark==1||this.getFilterFj(ite.url);
  1345. // })
  1346. // }
  1347. })
  1348. this.basicFj=JSON.parse(JSON.stringify(basicFj));
  1349. }
  1350. if(res.data.declareFj){
  1351. // 数据处理
  1352. var declareFj=res.data.declareFj;
  1353. Object.keys(declareFj).some((key) => {
  1354. // a,b里面的全部都转pdf了
  1355. declareFj[key]=declareFj[key].filter((ite) => {
  1356. return ite.remark==1||this.getFilterFj(ite.url);
  1357. })
  1358. })
  1359. this.declareFj=JSON.parse(JSON.stringify(declareFj));
  1360. }
  1361. this.stepval=res.data.loanSchedule||0;
  1362. // var auditSchedule=res.data.auditSchedule
  1363. // if(checkPermi(['system:hyperlink:list'])&&auditSchedule==5){
  1364. // this.getHyperlinkList();//外部链接stepval==4
  1365. // }else if(auditSchedule==1||auditSchedule==7){
  1366. // if(checkPermi(['system:user:noPageList'])){
  1367. // this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
  1368. // }
  1369. // }
  1370. }
  1371. }).catch(error => {
  1372. setTimeout(function(){
  1373. uni.navigateBack({
  1374. delta:1
  1375. })
  1376. },1200)
  1377. })
  1378. },
  1379. // 数据处理
  1380. getFilterFj(url){
  1381. let index1 = url.lastIndexOf("."); // 得到一个索引值
  1382. let index2 = url.length;
  1383. let type = url.substring(index1, index2);
  1384. if ((type.indexOf('jpg') >-1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  1385. return false
  1386. }else{
  1387. return true
  1388. }
  1389. },
  1390. getHeightFn(){
  1391. let query = uni.createSelectorQuery().in(this);
  1392. //需要给黄色区域设置一个id标识,在这里是demo
  1393. query.select('.zxtop').boundingClientRect(data => {
  1394. this.listTop = data.height//赋值,待会要用
  1395. }).exec();
  1396. },
  1397. getPreview(url) {
  1398. var newArr=[];
  1399. newArr.push(url)
  1400. uni.previewImage({
  1401. urls: newArr,
  1402. current:0,
  1403. success: function(data) {
  1404. },
  1405. fail: function(err) {
  1406. }
  1407. });
  1408. },
  1409. onuploadEnd(item) {
  1410. var newobj={}
  1411. var responseText=JSON.parse(item.responseText)
  1412. newobj.name=responseText.originalFilename;
  1413. newobj.url=responseText.fileName;
  1414. this.filelist.push(newobj)
  1415. // this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  1416. },
  1417. getXzFn(ite){
  1418. this.getDownloader(ite.url,ite.name)
  1419. },
  1420. getDown(e){
  1421. uni.showLoading({
  1422. title: '加载中'
  1423. });
  1424. var url=baseUrl+e;
  1425. let index1 = e.lastIndexOf("."); // 得到一个索引值
  1426. let index2 = e.length;
  1427. let type = e.substring(index1, index2);
  1428. if ((type.indexOf('jpg') > -1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  1429. uni.previewImage({
  1430. current: 0,
  1431. urls: [url],
  1432. // background: '#ffffff'
  1433. });
  1434. uni.hideLoading();
  1435. } else {
  1436. uni.downloadFile({
  1437. url: url,//文件的下载路径
  1438. success(result) {
  1439. uni.hideLoading()
  1440. var filePath = result.tempFilePath;
  1441. uni.openDocument({
  1442. filePath: filePath,
  1443. showMenu: true,
  1444. success: function (res) {
  1445. // console.log('打开文档成功');
  1446. }
  1447. });
  1448. },
  1449. fail(res) {uni.hideLoading()}
  1450. })
  1451. }
  1452. },
  1453. }
  1454. }
  1455. </script>
  1456. <style lang="scss" scoped>
  1457. .failtit{background: #FFECEC;font-weight: 500;font-size: 26rpx;color: #FF6969;text-align: center;line-height: 36rpx;padding: 22rpx;}
  1458. .zxtop{padding-bottom: 2rpx;}
  1459. .detop{background: #FFFFFF;padding:0rpx 24rpx;margin-bottom: 28rpx;flex: 0 0 auto;
  1460. position: relative;
  1461. .head{
  1462. padding: 40rpx 2rpx;border-bottom: 2rpx solid #E6E6E6;
  1463. .top{display: flex;align-items: center;overflow: hidden;
  1464. .toptit{font-weight: bold;font-size: 40rpx;color: #222327;}
  1465. .statbox{min-width: 140rpx;height: 36rpx;background-color: rgba(255,177,50,0.3);padding: 0 14rpx;box-sizing: border-box;font-weight: bold;font-size: 22rpx;color: #FF6924;display: flex;align-items: center;flex: 0 0 auto;border-radius: 10rpx;margin-left: 34rpx;
  1466. image{width: 22rpx;height: 22rpx;margin-left: 6rpx;}
  1467. }
  1468. }
  1469. .adr{font-weight: 500;font-size: 26rpx;color: #666666;margin-top: 12rpx;}
  1470. }
  1471. .deta{display: flex;flex-wrap: wrap;padding: 16rpx 0 28rpx;
  1472. .lists{padding:20rpx 0;width: 33.3%;display: flex;flex-direction: column;align-items: center;position: relative;
  1473. &::after{width: 2rpx;height: 60rpx;background: #E6E6E6;content: '';position: absolute;right: 0;top: 50%;margin-top: -30rpx;}
  1474. &:nth-of-type(3n){
  1475. &::after{display: none;}
  1476. }
  1477. .tit{font-weight: 500;font-size: 26rpx;color: #AAAAAA;margin-bottom: 38rpx;}
  1478. .txt{font-weight: bold;font-size: 30rpx;color: #222327;padding: 0 10rpx;
  1479. text{font-size: 26rpx;color: #666666;font-weight: normal;}
  1480. }
  1481. }
  1482. }
  1483. }
  1484. .details{
  1485. // display: flex;flex-direction: column;height: 100vh;overflow: hidden;
  1486. }
  1487. .main{background-color: #FFFFFF;flex: 1;display: flex;flex-direction: column;overflow: hidden;
  1488. .tabs{padding: 0 6rpx 0 36rpx;display: flex;flex-wrap: nowrap;overflow: auto;flex: 0 0 auto;
  1489. &.tabfix{position: fixed;left: 0;right: 0;z-index: 2;top: 0;background-color: #ffffff;border-bottom: 2rpx solid #E6E6E6;}
  1490. .tab{font-weight: 500;font-size: 26rpx;color: #666666;height: 116rpx;display: flex;align-items: center;margin-right: 26rpx;flex: 0 0 auto;position: relative;
  1491. &.act{color: #00A9F0;font-weight: bold;
  1492. &::after{width: 100%;background: #00A9F0;position: absolute;left: 0;bottom: 0;
  1493. border-radius: 2rpx;height: 4rpx;content: '';}
  1494. }
  1495. }
  1496. }
  1497. .mainb{flex: 1;overflow: auto;}
  1498. }
  1499. .speed{width: 96rpx;height: 140rpx;background: #FFFFFF;box-shadow: 0px 0px 14rpx 0px rgba(184,184,184,0.76);border-radius: 20rpx;
  1500. display: flex;align-items: center;flex-direction: column;justify-content: center;
  1501. position: absolute;right: 28rpx;top: 86rpx;z-index: 2;padding: 0 6rpx;
  1502. image{width: 26rpx;height: 28rpx;margin-bottom: 8rpx;}
  1503. view{font-weight: 500;font-size: 22rpx;color: #666666;}
  1504. }
  1505. .gdimg{width: 110rpx;height: 86rpx;position: absolute;right: 40rpx;top: 130rpx;}
  1506. //
  1507. .footbtns{width: 100%;height: 100rpx;position: fixed;left: 0;right: 0;bottom: 0;display: flex;
  1508. .fbtns{flex: 1;height: 100rpx;font-weight: bold;font-size: 30rpx;display: flex;align-items: center;justify-content: center;border-top: 2rpx solid #E6E6E6;box-sizing: border-box;
  1509. &.bga{background: $com-cd3;color: #FFFFFF;}
  1510. &.bgb{background: #FFFFFF;color: $com-cd3;}
  1511. &.bgc{background: #DF0303;color: #FFFFFF;}
  1512. &.bgd{background: #45cb99;color: #FFFFFF;}
  1513. &.bge{background: #ffac41;color: #FFFFFF;}
  1514. }
  1515. }
  1516. .morebox{
  1517. position: fixed;left: 0;right: 0;bottom: 0;z-index: 10;max-height: calc(100vh - 200rpx);overflow: auto;
  1518. .molists{
  1519. view{width: 100%;background: #ffffff;font-weight: 500;font-size: 30rpx;color: #222327;border-bottom: 2rpx solid #E6E6E6;min-height: 100rpx;display: flex;align-items: center;justify-content: center;padding: 10rpx;
  1520. box-sizing: border-box;
  1521. &.mcoa{color: #00A9F0;}
  1522. }
  1523. }
  1524. .surbtns{
  1525. width: 100%;height: 100rpx;background: #00A9F0;display: flex;align-items: center;justify-content: center;
  1526. font-size: 30rpx;color: #ffffff;margin-top: 24rpx;
  1527. }
  1528. }
  1529. </style>