details.vue 34 KB

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