details.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  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>
  14. </block>
  15. <view class="head">
  16. <view class="top">
  17. <view class="toptit">{{datainfo.enterpriseName}}</view>
  18. <view class="statbox" v-if="datainfo.isNew=='Y'">专精特新<image :src="start"></image></view>
  19. </view>
  20. <view class="adr">企业地址 | {{datainfo.enterpriseName}}</view>
  21. <view class="adr">申报时间 | {{datainfo.applicationTime}}</view>
  22. <view class="adr" v-if="datainfo.fileTime">归档时间 | {{datainfo.fileTime}}</view>
  23. </view>
  24. <view class="deta">
  25. <view class="lists">
  26. <view class="tit">申请额度</view>
  27. <view class="txt">{{datainfo.applicationAmount}}<text>/万元</text></view>
  28. </view>
  29. <view class="lists">
  30. <view class="tit">使用期限</view>
  31. <view class="txt">{{datainfo.usagePeriod}}<text>/个月</text></view>
  32. </view>
  33. <view class="lists">
  34. <view class="tit">申贷银行</view>
  35. <view class="txt">{{kaType(datainfo.applicationBank,sdyhlist)}}</view>
  36. </view>
  37. <view class="lists">
  38. <view class="tit">资金用途</view>
  39. <view class="txt">{{datainfo.purposeFunds}}</view>
  40. </view>
  41. <view class="lists">
  42. <view class="tit">还款来源</view>
  43. <view class="txt">{{datainfo.repaymentSource}}</view>
  44. </view>
  45. <view class="lists">
  46. <view class="tit">担保类型</view>
  47. <view class="txt">{{kaType(datainfo.guaranteeType,dblxlist)}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="main">
  53. <!-- tab -->
  54. <view class="tabs" :class="fixedflag?'tabfix':''">
  55. <view class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabList" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
  56. </view>
  57. <view style="height:116rpx;" v-if="fixedflag"></view>
  58. <!-- 企业信息 -->
  59. <view class="mainb" :style="'min-height: ' + minheight + 'px;'">
  60. <block v-if="tabval==0">
  61. <aqyxx @getDown="getDown" :qyinfo="qyinfo" :datainfo="datainfo" :basicFj="basicFj" ></aqyxx>
  62. </block>
  63. <block v-if="tabval==1">
  64. <bfrxx @getDown="getDown" :datainfo="datainfo" :yhlxlist="yhlxlist" :hyztlist="hyztlist" :basicFj="basicFj"></bfrxx>
  65. </block>
  66. <block v-if="tabval==2">
  67. <cfdbrxx @getDown="getDown" :datainfo="datainfo" :hyztlist="hyztlist" :basicFj="basicFj"></cfdbrxx>
  68. </block>
  69. <block v-if="tabval==3">
  70. <dfjxx @getDown="getDown" :datainfo="datainfo" :declareFj="datainfo.declareFj" :sbfjlist="sbfjlist" @getXzFn="getXzFn"></dfjxx>
  71. </block>
  72. <block v-if="tabval==4">
  73. <ewjcj @getDown="getDown" @getQmFn="getQmFn" :datainfo="datainfo" @getDelwjFj="getDelwjFj" @getfjEdit="getfjEdit" :wjcjlist="wjcjlist" :qtfileFj="datainfo.otherFj" :fileFj="datainfo.fileFj"></ewjcj>
  74. </block>
  75. <block v-if="tabval==5">
  76. <fshxx @getDown="getDown" :shjdlist="shjdlist" :datalist="shlist" ></fshxx>
  77. </block>
  78. </view>
  79. <!-- 法人信息 -->
  80. </view>
  81. <block v-if="datainfo.loanApplicationType!=4">
  82. <view class="h50"></view>
  83. <view class="footbtns">
  84. <!-- (业务进度表查询进度列表):1:申报提交 stepval 4,7,8,9,没有通过不通过
  85. 2:业务审核/分配
  86. 3:担保初审
  87. 4:尽职调查
  88. 5:初审风险合规
  89. 6:评审会
  90. 7:合同签约
  91. 8:放款合规风险审核
  92. 9:放款通知
  93. 10:归档 -->
  94. <!-- 审核进度 auditSchedule
  95. 1:业务审核/分配
  96. 2:A角色审核
  97. 3:B角色审核
  98. 4:风险审核
  99. 5:尽职调查
  100. 6:初审风险合规
  101. 7:上会评审 -->
  102. <!-- 申请审核 start-->
  103. <view class="fbtns bga" v-if="checkPermi(['system:application:edit'])&&stepval<2" @click="getedit">修改</view>
  104. <view class="fbtns bgc" v-if="checkPermi(['system:application:remove'])&&stepval<2" @click="getDel">删除</view>
  105. <view class="fbtns bga" v-if="auditSchedule==1&&checkPermi(['system:application:sh'])" @click="getShFn('sh')">审核</view>
  106. <view class="fbtns bga" v-if="auditSchedule==4&&datainfo.auditType!=4&&checkPermi(['system:application:sh'])&&checkRole(['auditing_risk'])" @click="getShFn('fxsh')">风险审核</view>
  107. <!-- end -->
  108. <!-- a,b角按钮 start-->
  109. <view class="fbtns bgb" v-if="checkPermi(['system:application:sh'])&&userId==datainfo.aUserId&&auditSchedule==5" @click="getShFn('jztcsh')">尽职调查反馈</view>
  110. <view class="fbtns bga" v-if="checkPermi(['system:application:sh'])&&userId==datainfo.aUserId&&auditSchedule==2&&datainfo.auditType==1" @click="getShFn('ajssh')">a审核</view>
  111. <view class="fbtns bga" v-if="checkPermi(['system:application:sh'])&&userId==datainfo.bUserId&&auditSchedule==3" @click="getShFn('bjssh')">b审核</view>
  112. <!-- 审核后 -->
  113. <!-- <view class="fbtns bga" @click="getMoreFn('more')">更多操作</view> -->
  114. <!-- 未通过申诉 风险不通过,上会不通过-->
  115. <!-- 撤销, 业务分配,a,b角撤销 -->
  116. <view class="fbtns bga" v-if="checkPermi(['system:application:ss'])&&datainfo.auditType==4&&userId==datainfo.aUserId" @click="getSsFn">申诉</view>
  117. <!-- <block ></block> -->
  118. <!-- 申诉的时候不能撤销 -->
  119. <view class="fbtns" :class="auditSchedule==5?'bga':'bgb'" v-if="checkPermi(['system:application:cx'])&&(stepval!=1&&stepval!=10&&(datainfo.auditType!=1||auditSchedule<6&&auditSchedule>1))" @click="getCxFn">撤销</view>
  120. <!-- 回收站,暂存,归档不能撤 项目进度是申报提交-->
  121. <!-- 撤销,管理员在 a待审核 可以撤,
  122. a,b角是自己的时候可以撤
  123. -->
  124. <view class="fbtns bga" v-if="checkPermi(['system:application:cx'])&&stepval<9&&stepval>6" @click="getXybFn">项目推进</view>
  125. <!-- end -->
  126. <!-- 管理员业务初审审核后出具担保意向函-->
  127. <!-- <block v-if="auditSchedule>1&&stepval<3"> -->
  128. <block v-if="checkRole(['manager'])">
  129. <view class="fbtns bgb" @click="getfjEdit('dbyxh')">上传文件</view>
  130. <view class="fbtns bga" @click="getIssureFn(3)">出具担保意向函</view>
  131. </block>
  132. <!-- 风险部门 start-->
  133. <block v-if="stepval==5&&checkRole(['auditing_risk'])">
  134. <view class="fbtns bgb" v-if="checkPermi(['system:hyperlink:list'])" @click="getMoreFn('wb')">外部工具平台</view>
  135. <view class="fbtns bga" @click="getMoreFn('fxmore')">更多操作</view>
  136. </block>
  137. <!-- end -->
  138. <!-- 上会管理员 start -->
  139. <block v-if="stepval==6">
  140. <view class="fbtns bgb" @click="getMoreFn('shmore')">更多操作</view>
  141. <view class="fbtns bga" @click="getShFn('shsh')">审核</view>
  142. </block>
  143. <!-- 上会管理员 end -->
  144. <!-- 合同签约start -->
  145. <!-- 上传附件 是上传其他 和出具合同的附件-->
  146. <block v-if="stepval==7">
  147. <view class="fbtns bgb" @click="getMoreFn('htsc')">上传附件</view>
  148. <view class="fbtns bga" @click="getMoreFn('htqy')">出具合同</view>
  149. </block>
  150. <!-- 合同签约end -->
  151. <!-- 风险部放款 start-->
  152. <block v-if="stepval==8">
  153. <view class="fbtns bgb" @click="getfjEdit('fkhgb')">上传附件</view>
  154. <view class="fbtns bga" @click="getIssureFn(14)">出具放款合规表</view>
  155. </block>
  156. <!-- end -->
  157. <block v-if="stepval==9">
  158. <view class="fbtns bgb" @click="getfjEdit('fktzs')">上传附件</view>
  159. <view class="fbtns bga" @click="getIssureFn(4)">放款通知书</view>
  160. </block>
  161. <view class="fbtns bga" v-if="stepval==9&&datainfo.loanApplicationType!=4" @click="getGdFn">一键归档</view>
  162. </view>
  163. </block>
  164. <!-- 更多操作 -->
  165. <view class="bgbox" @click="getClose" v-if="mtype"></view>
  166. <view v-if="mtype" class="morebox">
  167. <view class="molists">
  168. <!-- 审核详情后 -->
  169. <!-- <block v-if="mtype=='more'">
  170. <view class="mcoa" @click="getShFn('shhj')">上传附件</view>
  171. <view>撤回</view>
  172. </block> -->
  173. <!--风险部门 start 外部工具平台 -->
  174. <block v-if="mtype=='wb'">
  175. <view v-for="(ite,idx) in linkList" :key="idx" @click="getWebUel(ite.url)">{{ite.name}}</view>
  176. </block>
  177. <!-- 更多操作 -->
  178. <block v-if="mtype=='fxmore'">
  179. <view @click="getShFn('fxbmsh')" v-if="auditSchedule==6&&checkPermi(['system:application:sh'])">审核</view>
  180. <view @click="getIssureFn(13)">出具材料合规表</view>
  181. <!-- <view @click="getfjEdit('clhgb')">上传附件</view> -->
  182. <view @click="getfjEdit('clhgb')">上传材料合规表</view>
  183. <view v-if="checkPermi(['system:application:cx'])" @click="getCxFn">撤回</view>
  184. </block>
  185. <!-- 风险部门 end -->
  186. <!-- 上会管理员 start -->
  187. <block v-if="mtype=='shmore'">
  188. <view @click="getIssureFn(12)">出具评审意见签批表</view>
  189. <!-- <view @click="getIssureFn()">上会纪要</view> -->
  190. <view @click="getIssureFn(11)">出具股东会决议</view>
  191. <view @click="getfjEdit('psyjqpb')">上传评审意见签批表</view>
  192. <view @click="getfjEdit('gdhyjy')">上传上会纪要</view>
  193. </block>
  194. <!-- 上会管理员 end -->
  195. <!-- 合同签约 start -->
  196. <!-- 合同上传信息 -->
  197. <block v-if="mtype=='htsc'">
  198. <view @click="getfjEdit('wtdbht')">上传委托保证合同</view>
  199. <block v-if="datainfo.guaranteeType=='2'">
  200. <view @click="getfjEdit('bzfdbhtfr')">上传保证反担保合同(法人)</view>
  201. <view @click="getfjEdit('bzfdbhtzrr')">上传保证反担保合同(自然人)</view>
  202. </block>
  203. <block v-if="datainfo.guaranteeType=='1'">
  204. <view @click="getfjEdit('dyfdbhtfr')">上传抵押反担保合同(法人)</view>
  205. <view @click="getfjEdit('dyfdbhtzrr')">上传抵押反担保合同(自然人)</view>
  206. </block>
  207. <view @click="getQtfjEdit('qtfj')">其他附件</view>
  208. <!-- 其他附件 都给放 -->
  209. </block>
  210. <block v-if="mtype=='htqy'">
  211. <view @click="getIssureFn(2)">委托保证合同</view>
  212. <block v-if="datainfo.guaranteeType=='2'">
  213. <view @click="getIssureFn(5)">保证反担保合同(法人)</view>
  214. <view @click="getIssureFn(6)">保证反担保合同(自然人)</view>
  215. </block>
  216. <block v-if="datainfo.guaranteeType=='1'">
  217. <view @click="getIssureFn(7)">抵押反担保合同(法人)</view>
  218. <view @click="getIssureFn(8)">抵押反担保合同(自然人)</view>
  219. <!-- <view @click="getIssureFn(9)">权利质权反担保合同(适用于法人)</view>
  220. <view @click="getIssureFn(10)">权利质权反担保合同(适用于自然人)</view> -->
  221. </block>
  222. </block>
  223. <!-- 合同签约 end -->
  224. </view>
  225. <!-- <view class="surbtns" @click="getMoreSure">确认</view> -->
  226. </view>
  227. <pop-up :type="type" :shtg="shtg" :loanApplicationId="datainfo.loanApplicationId" :loanApplicationNumber="datainfo.loanApplicationNumber" :userList="userList"
  228. :stepList="stepList" :wjcjobj='wjcjobj' :qtfjobj="qtfjobj" :stepval="stepval" :fjval="fjval"
  229. @getfjAdd="getfjAdd"
  230. @getClose="getClose" @getupSubmit="getupSubmit" @getSure="getSure"></pop-up>
  231. </view>
  232. </template>
  233. <script>
  234. import config from '@/config'
  235. const baseUrl = config.baseUrl
  236. const baseName = config.baseName
  237. import popUp from "@/work/components/popup/popup.vue"
  238. import aqyxx from "@/work/components/business/aqyxx.vue"
  239. import bfrxx from "@/work/components/business/bfrxx.vue"
  240. import cfdbrxx from "@/work/components/business/cfdbrxx.vue"
  241. import dfjxx from "@/work/components/business/dfjxx.vue"
  242. import ewjcj from "@/work/components/business/ewjcj.vue"
  243. import fshxx from "@/work/components/business/fshxx.vue"
  244. import {uploadmore,selectValue} from '@/utils/common.js'
  245. import {getDictionaryFn} from "@/api/mine/register.js"
  246. import {getUsernoPageList,getFjAdd,getFjDel} from "@/api/common.js"
  247. import {getApplicationDet,getScheduleList,getHyperlinkList,getApplicationDel,getApplicationSh,getCommentsList,getApplicationSs,getApplicationCx,getapplicationGd,getapplicationXib,getExportMb} from "@/api/mine/work.js"
  248. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  249. export default{
  250. components:{aqyxx,bfrxx,cfdbrxx,dfjxx,ewjcj,fshxx,popUp},
  251. data(){
  252. return{
  253. start:require('@/work/static/images/start.png'),
  254. titimg:require('@/work/static/images/infotit.png'),
  255. speedimg:require('@/work/static/images/speed.png'),
  256. gdicoimg:require('@/work/static/images/gdico.png'),
  257. tabval:0,
  258. type:'',
  259. tabList:[{tit:"企业信息",val:0},{tit:"法人信息",val:1},{tit:"反担保人信息",val:2},{tit:"附件信息",val:3},{tit:"文件出具",val:4},{tit:"审核信息",val:5},],
  260. stepList:[],
  261. stepval:0,
  262. gdflag:false,
  263. auditSchedule:'',//审核进度
  264. mtype:'',
  265. minheight:0,
  266. listTop:0,//距离顶部的距离
  267. fixedflag:false,
  268. dblxlist:[],
  269. sdyhlist:[],
  270. qyinfo:{},//企业信息
  271. datainfo:{
  272. // "createBy": "",//
  273. // "createTime": null,//
  274. // "updateBy": "",//
  275. // "updateTime": null,//
  276. // "remark": null,//
  277. "loanApplicationId": '',//贷款申请id
  278. "loanApplicationNumber": "",//贷款申请编号
  279. "applicationAmount": '',//申请额度(万元)
  280. "applicationBank": "",//申请银行
  281. "usagePeriod": "",//使用期限(月)
  282. "purposeFunds": "",//资金用途
  283. "repaymentSource": "",//还款来源
  284. "enterpriseName": "",//企业名称
  285. 'sysUserEnterprise':{},//企业对象具体字段查看营业执照
  286. "categoryType": "",//行业类型
  287. "isMake": "N",//是否是制造业
  288. "isNew": "N",//是否是精特新
  289. "isSmall": "N",//是否是小微企业
  290. "isDuty": "N",//是否是免税企业
  291. "companyIntroduction": "",//公司简介
  292. "customerType": "",//用户类型
  293. "corporationFront": "",//法人身份证正面
  294. "corporationBack": "",//法人身份证反面
  295. "corporationName": "",// 法人姓名
  296. "corporationIdCard": "",//法人身份证号
  297. "corporationPhone": "",// 法人手机号
  298. "familyPopulation": "",//家庭人口数
  299. "corporationJob": "",//法人职业
  300. "isLoan": "",//有无贷款
  301. "receivablePay": "",//应收应付款
  302. "businessSituation": "",//经营情况
  303. "businessEfficiency": "",//经营效益
  304. "corporationMaritalStatus": "",//法人婚姻状态
  305. "spouseFront": "",//配偶身份证正面
  306. "spouseBack": "",//配偶身份证反面
  307. "spouseName": "",//配偶姓名
  308. "spouseIdCard": "",//配偶身份证号
  309. "spousePhone": "",//配偶手机号
  310. "guaranteeType": "",//担保类型
  311. "guaranteeFront": "",//反担保人身份证正面
  312. "guaranteeBack": "",//反担保人身份证反面
  313. "guaranteeName": "",//反担保人姓名
  314. "guaranteeIdCard": "",//反担保人身份证号
  315. "guaranteePhone": "",//反担保人手机号
  316. // "guaranteeMaritalStatus": "",//反担保人婚姻状态
  317. // "guaranteeSpouseFront": "",//反担保人配偶身份证正面
  318. // "guaranteeSpouseBack": "",//反担保人配偶身份证反面
  319. // "guaranteeSpouseName": "",//反担保人配偶姓名
  320. // "guaranteeSpouseIdCard": "",//反担保人配偶身份证号
  321. // "guaranteeSpousePhone": "",//反担保人配偶手机号
  322. // "userId": '',//申请人用户ID
  323. // "idCard": "",//申请人身份证号码
  324. // "applicationTime": "",//申请时间
  325. "fileTime": "",//归档时间
  326. "loanSchedule": "",//贷款申请进度(业务进度表查询进度列表):1:申报提交2:业务审核/分配 3:担保初审 4:尽职调查 5:初审风险合规 6:评审会 7:合同签约 8:放款合规风险审核 9:放款通知 10:归档
  327. "loanScheduleName": '',//贷款申请进度名称(中文字)
  328. "auditSchedule": "",//审核进度1:担保初审 2:A角色审核 3:B角色审核 4:风险审核 5:尽职调查 6:上会评审
  329. "auditType": "",//审核状态 1:待审核 2:已通过 3:未通过 4:申诉
  330. "loanApplicationType": "",//贷款申请状态 1:暂存 2:正常 3:回收站 4:归档
  331. "aUserId": "",//A角色用户ID
  332. "aUserName": "",//A角色用户名称
  333. "bUserId": "",//B角色用户ID
  334. "bUserName": "",//B角色用户名称
  335. "shareholderFjList": [],//全体股东信息附件
  336. "loanApplicationFjList": [],//相关附件
  337. "basicFj": {},//基础附件
  338. "declareFj": {},//申报附件
  339. "fileFj": {},//文件出具
  340. "otherFj": {},//其他附件 key值是type类型 value值具体字段查看相关附件新增
  341. },
  342. gdlists:[],//股东信息
  343. basicFj:{},//基础附件
  344. yhlxlist:[],//用户类型
  345. hyztlist:[],//婚姻状态
  346. sbfjlist:[],//申报附件
  347. wjcjlist:[],//文件出具
  348. linkList:[],//外部链接
  349. userList:[],//用户列表
  350. shjdlist:[],//审核进度
  351. shlist:[],//审核信息
  352. shinfo:{},//审核信息
  353. wjcjobj:{},//文件出具对象
  354. qtfjobj:{'qtfj':"其他附件"},//其他附件
  355. qtfjlist:[],//其他附件
  356. fjval:'',//附件类型
  357. userId:this.$store.state.user.userId,
  358. contype:'',//二次确认弹窗
  359. mval:-1,
  360. mite:"",
  361. shtg:'',
  362. }
  363. },
  364. onUnload() {
  365. uni.$off('refreshywlist')
  366. },
  367. onLoad(e) {
  368. this.id=e.id;
  369. uni.$on('refreshywlist',(e) => {
  370. this.getDetail();
  371. })
  372. this.init()
  373. this.getDetail();
  374. this.getScheduleList();
  375. // if(checkPermi(['system:hyperlink:list'])){
  376. // this.getHyperlinkList();//外部链接stepval==5
  377. // }
  378. // if(checkPermi(['system:user:noPageList'])){
  379. // this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
  380. // }
  381. this.getCommentsList()//审核意见
  382. },
  383. mounted() {
  384. var that=this;
  385. uni.getSystemInfo({
  386. success: (e) => {
  387. this.minheight = e.screenHeight- 50;
  388. }
  389. })
  390. setTimeout(function(){
  391. that.getHeightFn()
  392. },200)
  393. },
  394. onPageScroll(e) {
  395. var scrollTop = Number(e.scrollTop);
  396. var listTop=Number(this.listTop)
  397. if(scrollTop>listTop){
  398. this.fixedflag=true
  399. }else{
  400. this.fixedflag=false
  401. }
  402. },
  403. methods:{
  404. checkPermi, checkRole,
  405. kaType(ite,list){
  406. return selectValue(list, ite);
  407. },
  408. getedit(){
  409. var obj={
  410. type:'edit',
  411. id:this.id,
  412. }
  413. this.$tab.navigateTo('/work/pages/business/add?data='+encodeURIComponent(JSON.stringify(obj)))
  414. },
  415. // 删除
  416. getDelwjFj(id){
  417. var that=this;
  418. uni.showModal({
  419. title: '确认删除',
  420. content: "是否确认删除",
  421. cancelText: '取消',
  422. confirmText: '确认',
  423. success: function(res) {
  424. if (res.confirm) {
  425. getFjDel(id).then(res=>{
  426. if(res.code==200){
  427. that.$toast("删除成功")
  428. setTimeout(function(){
  429. that.getDetail()
  430. },1200)
  431. }
  432. })
  433. } else if (res.cancel) {
  434. }
  435. }
  436. });
  437. },
  438. getfjEdit(ite){
  439. this.type='fjadd';
  440. this.mtype='';
  441. this.fjval=ite
  442. },
  443. getQtfjEdit(val){
  444. this.type='qtfjadd';
  445. this.mtype='';
  446. this.fjval=val
  447. },
  448. // 业务进度
  449. getScheduleList(){
  450. var params={
  451. loanApplicationId:this.id
  452. }
  453. getScheduleList(params).then(res=>{
  454. if(res.code==200){
  455. this.stepList=res.data
  456. }
  457. })
  458. },
  459. getWebUel(url){
  460. // this.mval=idx;
  461. // this.mite=ite
  462. this.mtype='';
  463. this.$tab.navigateTo("/pages/common/webview/index?url="+url)
  464. },
  465. getMoreSure(){
  466. var mttype=this.mtype;
  467. var mite=this.mite;
  468. if(mttype=='wb'){
  469. this.mtype='';
  470. this.$tab.navigateTo("/pages/common/webview/index?url="+mite.url)
  471. }
  472. },
  473. // 外部链接
  474. getHyperlinkList(){
  475. var params={
  476. type:1
  477. }
  478. getHyperlinkList(params).then(res=>{
  479. if(res.code==200){
  480. this.linkList=res.rows
  481. }
  482. })
  483. },
  484. // 用户-列表
  485. //用户类型(00系统用户 01注册用户 02管理用户
  486. getUsernoPageList(){
  487. var params={
  488. userType:'02'
  489. }
  490. getUsernoPageList(params).then(res=>{
  491. if(res.code==200){
  492. this.userList=res.rows
  493. }
  494. })
  495. },
  496. getCommentsList(){
  497. var params={
  498. loanApplicationId:this.id,
  499. }
  500. getCommentsList(params).then(res=>{
  501. if(res.code==200){
  502. var newArr=res.rows;
  503. newArr.forEach(ite=>{
  504. if(ite.imageUrl){
  505. ite.imageUrl=ite.imageUrl.split(',')
  506. }
  507. })
  508. this.shlist=newArr
  509. // this.shlist = res.rows.map(v => {
  510. // return {
  511. // auditType: v.auditType,
  512. // auditView: v.auditView,
  513. // fjUrl:v.fjUrl,
  514. // imageUrl:v.imageUrl.split(',')||v.imageUrl
  515. // }
  516. // })
  517. // this.shlist=res.rows
  518. }
  519. })
  520. },
  521. init(){
  522. // 用户类型
  523. getDictionaryFn('customer_type').then(res=>{
  524. if(res.code==200){
  525. this.yhlxlist = res.data.map(v => {
  526. return {
  527. label: v.dictLabel,
  528. value: v.dictValue
  529. }
  530. })
  531. }
  532. })
  533. // 婚姻状况
  534. getDictionaryFn('marital_status').then(res=>{
  535. if(res.code==200){
  536. this.hyztlist = res.data.map(v => {
  537. return {
  538. label: v.dictLabel,
  539. value: v.dictValue
  540. }
  541. })
  542. }
  543. })
  544. // 申贷银行
  545. getDictionaryFn('shendai_bank').then(res=>{
  546. if(res.code==200){
  547. this.sdyhlist = res.data.map(v => {
  548. return {
  549. label: v.dictLabel,
  550. value: v.dictValue
  551. }
  552. })
  553. }
  554. })
  555. //担保类型
  556. getDictionaryFn('guarantee_type').then(res=>{
  557. if(res.code==200){
  558. this.dblxlist = res.data.map(v => {
  559. return {
  560. label: v.dictLabel,
  561. value: v.dictValue
  562. }
  563. })
  564. }
  565. })
  566. // 附件信息
  567. getDictionaryFn('application_fj_sb').then(res=>{
  568. if(res.code==200){
  569. this.sbfjlist = res.data.map(v => {
  570. return {
  571. label: v.dictLabel,
  572. val: v.dictValue,
  573. fjlist:[]
  574. }
  575. })
  576. }
  577. })
  578. // // 文件出具
  579. getDictionaryFn('application_fj_wjcj').then(res=>{
  580. if(res.code==200){
  581. var obj={}
  582. this.wjcjlist = res.data.map(v => {
  583. // var key=v.dictValue
  584. obj[v.dictValue]=v.dictLabel
  585. return {
  586. label: v.dictLabel,
  587. val: v.dictValue,
  588. fjlist:[]
  589. }
  590. })
  591. this.wjcjobj=obj
  592. }
  593. })
  594. // 其他附件
  595. // getDictionaryFn('application_fj_other').then(res=>{
  596. // if(res.code==200){
  597. // var obj={}
  598. // this.qtfjlist = res.data.map(v => {
  599. // // var key=v.dictValue
  600. // obj[v.dictValue]=v.dictLabel
  601. // return {
  602. // label: v.dictLabel,
  603. // val: v.dictValue,
  604. // fjlist:[]
  605. // }
  606. // })
  607. // this.qtfjobj=obj
  608. // console.log(obj,1)
  609. // }
  610. // })
  611. //审核进度
  612. getDictionaryFn('audit_schedule').then(res=>{
  613. if(res.code==200){
  614. this.shjdlist = res.data.map(v => {
  615. return {
  616. label: v.dictLabel,
  617. value: v.dictValue,
  618. }
  619. })
  620. }
  621. })
  622. },
  623. getTab(val){
  624. this.tabval=val;
  625. uni.pageScrollTo({
  626. scrollTop: Number(this.listTop),
  627. duration: 0
  628. })
  629. if(val==5){
  630. this.getCommentsList()
  631. }
  632. },
  633. // 出具
  634. getIssureFn(type){
  635. var that=this;
  636. var params={
  637. type:type,
  638. loanApplicationId:this.id,
  639. }
  640. getExportMb(params).then(res=>{
  641. if(res.code==200){
  642. var data=res.data;
  643. var path=data.path;
  644. var name=data.fileName;
  645. this.getDown(path)
  646. // that.getDownloader(path,name)
  647. }
  648. })
  649. },
  650. getDownloader(path,name){
  651. console.log(url)
  652. var that=this;
  653. // var url='http://192.168.101.245:8056/profile/upload/RZDB202405101456481709599/上一年度财务报表_20240510151142A015.xlsx'
  654. // #ifdef APP-PLUS
  655. var url = baseUrl + path;
  656. let dtask = plus.downloader.createDownload(url, {
  657. filename: 'file://storage/emulated/0/'+baseName+'/' + name
  658. }, (d, status) => {
  659. //d为下载的文件对象
  660. if (status == 200) {
  661. uni.hideLoading();
  662. uni.showToast({
  663. icon: 'none',
  664. mask: true,
  665. title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
  666. duration: 3000,
  667. });
  668. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  669. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  670. setTimeout(() => {
  671. plus.runtime.openFile(d.filename); //选择软件打开文件
  672. }, 1500)
  673. } else {
  674. //下载失败
  675. uni.hideLoading();
  676. plus.downloader.clear(); //清除下载任务
  677. uni.showToast({
  678. icon: 'none',
  679. mask: true,
  680. title: '下载失败,请稍后重试',
  681. });
  682. }
  683. })
  684. dtask.start();
  685. // #endif
  686. },
  687. getClose(){
  688. this.type='';
  689. this.mtype='';
  690. },
  691. getupSubmit(data){
  692. this.shinfo=JSON.parse(JSON.stringify(data))
  693. var type=this.type;
  694. if(type=='ajssh'||type=='bjssh'){
  695. this.contype=this.type
  696. this.type='confirm'
  697. this.shtg=data.auditType
  698. }else{
  699. this.getApplicationSh()
  700. }
  701. },
  702. getSure(){
  703. this.getApplicationSh()
  704. },
  705. getfjAdd(data){
  706. var that=this;
  707. var params=JSON.parse(JSON.stringify(data));
  708. var fjUrl=params.fjUrl
  709. // params.loanApplicationId=this.id;
  710. // params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  711. // params.auditSchedule=this.auditSchedule;
  712. getFjAdd(fjUrl).then(res=>{
  713. if(res.code==200){
  714. that.$toast('上传附件成功')
  715. setTimeout(function(){
  716. that.getDetail();
  717. uni.$emit('refreshdatalist')
  718. that.type=''
  719. },1200)
  720. }
  721. })
  722. },
  723. getApplicationSh(){
  724. var that=this;
  725. var params=this.shinfo;
  726. params.loanApplicationId=this.id;
  727. params.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  728. params.auditSchedule=this.auditSchedule;
  729. getApplicationSh(params).then(res=>{
  730. if(res.code==200){
  731. that.$toast('审核成功')
  732. setTimeout(function(){
  733. that.getDetail();
  734. uni.$emit('refreshdatalist')
  735. that.type=''
  736. },1200)
  737. }
  738. })
  739. },
  740. getShFn(type){
  741. this.type=type;
  742. this.mtype='';
  743. },
  744. getSsFn(){
  745. var that=this;
  746. uni.showModal({
  747. title: '确认申诉',
  748. content: "是否确认申诉",
  749. cancelText: '取消',
  750. confirmText: '确认',
  751. success: function(res) {
  752. if (res.confirm) {
  753. var params={
  754. loanApplicationId:that.id,
  755. aUserId:that.datainfo.aUserId
  756. }
  757. getApplicationSs(params).then(res=>{
  758. if(res.code==200){
  759. that.$toast("申诉成功")
  760. setTimeout(function(){
  761. that.getDetail();
  762. uni.$emit('refreshdatalist')
  763. // uni.navigateBack({
  764. // delta:1
  765. // })
  766. },1200)
  767. }
  768. })
  769. } else if (res.cancel) {
  770. }
  771. }
  772. });
  773. },
  774. getCxFn(){
  775. var that=this;
  776. uni.showModal({
  777. title: '确认撤销',
  778. content: "是否确认撤销",
  779. cancelText: '取消',
  780. confirmText: '确认',
  781. success: function(res) {
  782. if (res.confirm) {
  783. var params={
  784. loanApplicationId:that.id,
  785. auditSchedule:that.auditSchedule,
  786. loanSchedule:that.datainfo.loanSchedule,
  787. loanApplicationType:that.datainfo.loanApplicationType,
  788. auditType:that.datainfo.auditType
  789. }
  790. getApplicationCx(params).then(res=>{
  791. if(res.code==200){
  792. that.$toast("撤销成功")
  793. setTimeout(function(){
  794. uni.$emit('refreshywlist')
  795. // uni.navigateBack({
  796. // delta:1
  797. // })
  798. },1200)
  799. }
  800. })
  801. } else if (res.cancel) {
  802. }
  803. }
  804. });
  805. },
  806. getXybFn(){
  807. var that=this;
  808. uni.showModal({
  809. title: '确认推进',
  810. content: "是否确认推进",
  811. cancelText: '取消',
  812. confirmText: '确认',
  813. success: function(res) {
  814. if (res.confirm) {
  815. var params={
  816. loanApplicationId:that.id,
  817. // auditSchedule:that.auditSchedule,
  818. loanSchedule:that.datainfo.loanSchedule,
  819. // loanApplicationType:that.datainfo.loanApplicationType
  820. }
  821. getapplicationXib(params).then(res=>{
  822. if(res.code==200){
  823. that.$toast("推进成功")
  824. setTimeout(function(){
  825. uni.$emit('refreshywlist')
  826. },1200)
  827. }
  828. })
  829. } else if (res.cancel) {
  830. }
  831. }
  832. });
  833. },
  834. getGdFn(){
  835. var that=this;
  836. uni.showModal({
  837. title: '确认归档',
  838. content: "是否确认归档",
  839. cancelText: '取消',
  840. confirmText: '确认',
  841. success: function(res) {
  842. if (res.confirm) {
  843. var params={
  844. loanApplicationId:that.id,
  845. auditSchedule:that.auditSchedule,
  846. loanSchedule:that.datainfo.loanSchedule,
  847. loanApplicationType:that.datainfo.loanApplicationType,
  848. loanApplicationNumber:that.datainfo.loanApplicationNumber,
  849. auditType:that.datainfo.auditType
  850. }
  851. getapplicationGd(params).then(res=>{
  852. if(res.code==200){
  853. that.$toast("归档成功")
  854. setTimeout(function(){
  855. uni.$emit('refreshywlist')
  856. // uni.navigateBack({
  857. // delta:1
  858. // })
  859. },1200)
  860. }
  861. })
  862. } else if (res.cancel) {
  863. }
  864. }
  865. });
  866. },
  867. getMoreFn(type){
  868. this.mtype=type;
  869. this.mval=-1;
  870. this.mtit=''
  871. },
  872. getSpeedFn(){
  873. if(this.type){
  874. this.type=''
  875. }else{
  876. this.type='ywjd'
  877. }
  878. },
  879. getQmFn(url){
  880. this.$tab.navigateTo("/work/pages/business/sign?url="+encodeURIComponent(JSON.stringify(url)))
  881. },
  882. getDel(){
  883. var that=this;
  884. uni.showModal({
  885. title: '确认删除',
  886. content: "是否确认删除",
  887. cancelText: '取消',
  888. confirmText: '确认',
  889. success: function(res) {
  890. if (res.confirm) {
  891. getApplicationDel(that.id).then(res=>{
  892. if(res.code==200){
  893. that.$toast("删除成功")
  894. setTimeout(function(){
  895. uni.$emit('refreshdatalist')
  896. uni.navigateBack({
  897. delta:1
  898. })
  899. },1200)
  900. }
  901. })
  902. } else if (res.cancel) {
  903. }
  904. }
  905. });
  906. },
  907. getDetail(){
  908. getApplicationDet(this.id).then(res=>{
  909. if(res.code==200){
  910. this.datainfo=res.data;
  911. this.auditSchedule=res.data.auditSchedule
  912. if(res.data.sysUserEnterprise){
  913. this.qyinfo=res.data.sysUserEnterprise
  914. }
  915. if(res.data.basicFj){
  916. this.basicFj=res.data.basicFj;
  917. }
  918. this.stepval=res.data.loanSchedule||0;
  919. var auditSchedule=res.data.auditSchedule
  920. if(checkPermi(['system:hyperlink:list'])&&auditSchedule==6){
  921. this.getHyperlinkList();//外部链接stepval==5
  922. }else if(auditSchedule==1||auditSchedule==7){
  923. if(checkPermi(['system:user:noPageList'])){
  924. this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
  925. }
  926. }
  927. }
  928. })
  929. },
  930. getHeightFn(){
  931. let query = uni.createSelectorQuery().in(this);
  932. //需要给黄色区域设置一个id标识,在这里是demo
  933. query.select('.zxtop').boundingClientRect(data => {
  934. this.listTop = data.height//赋值,待会要用
  935. }).exec();
  936. },
  937. getPreview(url) {
  938. var newArr=[];
  939. newArr.push(url)
  940. uni.previewImage({
  941. urls: newArr,
  942. current:0,
  943. success: function(data) {
  944. },
  945. fail: function(err) {
  946. }
  947. });
  948. },
  949. onuploadEnd(item) {
  950. var newobj={}
  951. var responseText=JSON.parse(item.responseText)
  952. newobj.name=responseText.originalFilename;
  953. newobj.url=responseText.fileName;
  954. this.filelist.push(newobj)
  955. // this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  956. },
  957. getXzFn(ite){
  958. // 本地路径开头使用file://,跟上手机文件本地目录storage/emulated/0,
  959. // 后缀是用于文件命名和格式修改,大家可以使用变量。
  960. var url = baseUrl + ite.url;
  961. var name=ite.name;
  962. let dtask = plus.downloader.createDownload(url, {
  963. filename: 'file://storage/emulated/0/'+baseName+'/' + name
  964. }, (d, status) => {
  965. //d为下载的文件对象
  966. if (status == 200) {
  967. uni.hideLoading();
  968. uni.showToast({
  969. icon: 'none',
  970. mask: true,
  971. title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
  972. duration: 3000,
  973. });
  974. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  975. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  976. setTimeout(() => {
  977. plus.runtime.openFile(d.filename); //选择软件打开文件
  978. }, 1500)
  979. } else {
  980. //下载失败
  981. uni.hideLoading();
  982. plus.downloader.clear(); //清除下载任务
  983. uni.showToast({
  984. icon: 'none',
  985. mask: true,
  986. title: '下载失败,请稍后重试',
  987. });
  988. }
  989. })
  990. dtask.start();
  991. },
  992. getDown(e){
  993. uni.showLoading({
  994. title: '加载中'
  995. });
  996. var url=baseUrl+e;
  997. uni.downloadFile({
  998. url: url,//文件的下载路径
  999. success(result) {
  1000. uni.hideLoading()
  1001. var filePath = result.tempFilePath;
  1002. uni.openDocument({
  1003. filePath: filePath,
  1004. showMenu: true,
  1005. success: function (res) {
  1006. // console.log('打开文档成功');
  1007. }
  1008. });
  1009. },
  1010. fail(res) {uni.hideLoading()}
  1011. })
  1012. },
  1013. }
  1014. }
  1015. </script>
  1016. <style lang="scss" scoped>
  1017. .failtit{background: #FFECEC;font-weight: 500;font-size: 26rpx;color: #FF6969;text-align: center;line-height: 36rpx;padding: 22rpx;}
  1018. .zxtop{padding-bottom: 2rpx;}
  1019. .detop{background: #FFFFFF;padding:0rpx 24rpx;margin-bottom: 28rpx;flex: 0 0 auto;
  1020. position: relative;
  1021. .head{
  1022. padding: 40rpx 2rpx;border-bottom: 2rpx solid #E6E6E6;
  1023. .top{display: flex;align-items: center;overflow: hidden;
  1024. .toptit{font-weight: bold;font-size: 40rpx;color: #222327;}
  1025. .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;
  1026. image{width: 22rpx;height: 22rpx;margin-left: 6rpx;}
  1027. }
  1028. }
  1029. .adr{font-weight: 500;font-size: 26rpx;color: #666666;margin-top: 12rpx;}
  1030. }
  1031. .deta{display: flex;flex-wrap: wrap;padding: 16rpx 0 28rpx;
  1032. .lists{padding:20rpx 0;width: 33.3%;display: flex;flex-direction: column;align-items: center;position: relative;
  1033. &::after{width: 2rpx;height: 60rpx;background: #E6E6E6;content: '';position: absolute;right: 0;top: 50%;margin-top: -30rpx;}
  1034. &:nth-of-type(3n){
  1035. &::after{display: none;}
  1036. }
  1037. .tit{font-weight: 500;font-size: 26rpx;color: #AAAAAA;margin-bottom: 38rpx;}
  1038. .txt{font-weight: bold;font-size: 30rpx;color: #222327;
  1039. text{font-size: 26rpx;color: #666666;font-weight: normal;}
  1040. }
  1041. }
  1042. }
  1043. }
  1044. .details{
  1045. // display: flex;flex-direction: column;height: 100vh;overflow: hidden;
  1046. }
  1047. .main{background-color: #FFFFFF;flex: 1;display: flex;flex-direction: column;overflow: hidden;
  1048. .tabs{padding: 0 6rpx 0 36rpx;display: flex;flex-wrap: nowrap;overflow: auto;flex: 0 0 auto;
  1049. &.tabfix{position: fixed;left: 0;right: 0;z-index: 2;top: 0;background-color: #ffffff;border-bottom: 2rpx solid #E6E6E6;}
  1050. .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;
  1051. &.act{color: #00A9F0;font-weight: bold;
  1052. &::after{width: 100%;background: #00A9F0;position: absolute;left: 0;bottom: 0;
  1053. border-radius: 2rpx;height: 4rpx;content: '';}
  1054. }
  1055. }
  1056. }
  1057. .mainb{flex: 1;overflow: auto;}
  1058. }
  1059. .speed{width: 96rpx;height: 140rpx;background: #FFFFFF;box-shadow: 0px 0px 14rpx 0px rgba(184,184,184,0.76);border-radius: 20rpx;
  1060. display: flex;align-items: center;flex-direction: column;justify-content: center;
  1061. position: absolute;right: 28rpx;top: 86rpx;z-index: 2;padding: 0 26rpx;
  1062. image{width: 26rpx;height: 28rpx;margin-bottom: 8rpx;}
  1063. view{font-weight: 500;font-size: 22rpx;color: #666666;}
  1064. }
  1065. .gdimg{width: 110rpx;height: 86rpx;position: absolute;right: 40rpx;top: 130rpx;}
  1066. //
  1067. .footbtns{width: 100%;height: 100rpx;position: fixed;left: 0;right: 0;bottom: 0;display: flex;border-top: 2rpx solid #E6E6E6;
  1068. .fbtns{flex: 1;height: 100rpx;font-weight: bold;font-size: 30rpx;display: flex;align-items: center;justify-content: center;
  1069. &.bga{background: $com-cd3;color: #FFFFFF;}
  1070. &.bgb{background: #FFFFFF;;color: $com-cd3;}
  1071. &.bgc{background: #DF0303;;color: #FFFFFF;}
  1072. }
  1073. }
  1074. .morebox{
  1075. position: fixed;left: 0;right: 0;bottom: 0;z-index: 10;
  1076. .molists{
  1077. 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;
  1078. box-sizing: border-box;
  1079. &.mcoa{color: #00A9F0;}
  1080. }
  1081. }
  1082. .surbtns{
  1083. width: 100%;height: 100rpx;background: #00A9F0;display: flex;align-items: center;justify-content: center;
  1084. font-size: 30rpx;color: #ffffff;margin-top: 24rpx;
  1085. }
  1086. }
  1087. </style>