details.vue 51 KB

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