details.vue 51 KB

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