details.vue 44 KB

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