details.vue 45 KB

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