financeRecord.vue 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294
  1. <template>
  2. <div class="app-container zap-main">
  3. <el-row v-if="activeName === 'first'" class="zap-table-search">
  4. <el-row style="padding-top: 16px;">
  5. <right-toolbar
  6. class="zap-right-toolbar"
  7. :showSearch.sync="showSearch"
  8. @queryTable="getList"
  9. >收起</right-toolbar>
  10. <span class="zap-table-search__title">所选条件:</span>
  11. <div style="float: right; margin-right: 1%">
  12. <el-button type="cyan" icon="el-icon-search" @click="handleQuery">搜索</el-button>
  13. <el-button icon="el-icon-refresh" @click="resetQuery" style="float: ">重置</el-button>
  14. <column-setting
  15. class="zap-column-setting"
  16. :checkList="checkList"
  17. :tableList="tableList"
  18. :selfDom="selfDom"
  19. :tableId="tableId"
  20. ></column-setting>
  21. </div>
  22. </el-row>
  23. <hr style="margin-top: 16px" />
  24. <el-form
  25. :model="queryParams"
  26. ref="queryForm"
  27. :inline="true"
  28. v-show="showSearch"
  29. label-width="68px"
  30. >
  31. <el-form-item prop="zfrTypes" size="large">
  32. <el-select v-model="queryParams.zfrTypes" clearable>
  33. <el-option
  34. v-for="dict in typesOptions"
  35. :key="dict.dictValue"
  36. :label="dict.dictLabel"
  37. :value="dict.dictValue"
  38. />
  39. </el-select>
  40. </el-form-item>
  41. <el-form-item prop="zfrQuery" size="large">
  42. <el-select v-model="queryParams.zfrQuery" clearable>
  43. <el-option
  44. v-for="dict in adminQueryOptions"
  45. :key="dict.dictValue"
  46. :label="dict.dictLabel"
  47. :value="dict.dictValue"
  48. />
  49. </el-select>
  50. </el-form-item>
  51. <el-form-item prop="zfrValue" v-if="this.queryParams.zfrQuery" size="large">
  52. <el-input
  53. v-model="queryParams.zfrValue"
  54. placeholder="请输入关键字模糊查询"
  55. clearable
  56. maxlength="25"
  57. />
  58. </el-form-item>
  59. <el-form-item label="承诺还款日期" prop="zfrRepaymentDate" label-width="96px" size="large">
  60. <el-date-picker
  61. v-model="queryParams.zfrRepaymentDate"
  62. unlink-panels
  63. value-format="yyyy-MM-dd"
  64. type="daterange"
  65. range-separator="-"
  66. start-placeholder="开始日期"
  67. end-placeholder="结束日期"
  68. ></el-date-picker>
  69. </el-form-item>
  70. </el-form>
  71. </el-row>
  72. <el-row v-else-if="activeName === 'second'" class="zap-table-search">
  73. <el-row style="padding-top: 16px;">
  74. <right-toolbar
  75. style="margin-top: 4px;"
  76. :showSearch.sync="showSearch"
  77. @queryTable="getList"
  78. >收起</right-toolbar>
  79. <span class="zap-table-search__title">所选条件:</span>
  80. <div style="float: right; margin-right: 1%">
  81. <el-button type="cyan" icon="el-icon-search" @click="handleQueryIng">搜索</el-button>
  82. <el-button icon="el-icon-refresh" @click="resetQueryIng" style="float: ">重置</el-button>
  83. <column-setting
  84. :checkList="checkListOne"
  85. :tableList="tableListOne"
  86. :selfDom="selfDom"
  87. :tableId="tableIdOne"
  88. style="margin-left:5px"
  89. ></column-setting>
  90. </div>
  91. </el-row>
  92. <hr style="margin-top: 16px" />
  93. <el-form
  94. :model="queryParamsIng"
  95. ref="queryFormIng"
  96. :inline="true"
  97. v-show="showSearch"
  98. label-width="68px"
  99. >
  100. <el-form-item prop="zfrTypes" size="large">
  101. <el-select v-model="queryParamsIng.zfrTypes" clearable>
  102. <el-option
  103. v-for="dict in typesOptions"
  104. :key="dict.dictValue"
  105. :label="dict.dictLabel"
  106. :value="dict.dictValue"
  107. />
  108. </el-select>
  109. </el-form-item>
  110. <el-form-item prop="zfrQuery" size="large">
  111. <el-select v-model="queryParamsIng.zfrQuery" clearable>
  112. <el-option
  113. v-for="dict in adminQueryOptions"
  114. :key="dict.dictValue"
  115. :label="dict.dictLabel"
  116. :value="dict.dictValue"
  117. />
  118. </el-select>
  119. </el-form-item>
  120. <el-form-item prop="zfrValue" v-if="this.queryParamsIng.zfrQuery" size="large">
  121. <el-input
  122. v-model="queryParamsIng.zfrValue"
  123. placeholder="请输入关键字模糊查询"
  124. clearable
  125. maxlength="25"
  126. />
  127. </el-form-item>
  128. <el-form-item label="承诺还款日期" prop="zfrRepaymentDate" size="large" label-width="96px">
  129. <el-date-picker
  130. v-model="queryParamsIng.zfrRepaymentDate"
  131. unlink-panels
  132. value-format="yyyy-MM-dd"
  133. type="daterange"
  134. range-separator="-"
  135. start-placeholder="开始日期"
  136. end-placeholder="结束日期"
  137. ></el-date-picker>
  138. </el-form-item>
  139. </el-form>
  140. </el-row>
  141. <el-row v-else-if="activeName === 'third'" class="zap-table-search">
  142. <el-row style="padding-top: 16px;">
  143. <right-toolbar
  144. style="margin-top: 4px;"
  145. :showSearch.sync="showSearch"
  146. @queryTable="getList"
  147. >收起</right-toolbar>
  148. <span class="zap-table-search__title">所选条件:</span>
  149. <div style="float: right; margin-right: 1%">
  150. <el-button type="cyan" icon="el-icon-search" @click="handleQueryEnd">搜索</el-button>
  151. <el-button icon="el-icon-refresh" @click="resetQueryEnd" style="float: ">重置</el-button>
  152. <column-setting
  153. :checkList="checkListTwo"
  154. :tableList="tableListTwo"
  155. :selfDom="selfDom"
  156. :tableId="tableIdTwo"
  157. style="margin-left:5px"
  158. ></column-setting>
  159. </div>
  160. </el-row>
  161. <hr style="margin-top: 16px" />
  162. <el-form
  163. :model="queryParamsEnd"
  164. ref="queryFormEnd"
  165. :inline="true"
  166. v-show="showSearch"
  167. label-width="68px"
  168. >
  169. <el-form-item prop="zfrTypes" size="large">
  170. <el-select v-model="queryParamsEnd.zfrTypes" clearable>
  171. <el-option
  172. v-for="dict in typesOptions"
  173. :key="dict.dictValue"
  174. :label="dict.dictLabel"
  175. :value="dict.dictValue"
  176. />
  177. </el-select>
  178. </el-form-item>
  179. <el-form-item prop="zfrQuery" size="large">
  180. <el-select v-model="queryParamsEnd.zfrQuery" clearable>
  181. <el-option
  182. v-for="dict in adminQueryOptions"
  183. :key="dict.dictValue"
  184. :label="dict.dictLabel"
  185. :value="dict.dictValue"
  186. />
  187. </el-select>
  188. </el-form-item>
  189. <el-form-item prop="zfrValue" v-if="this.queryParamsEnd.zfrQuery" size="large">
  190. <el-input
  191. v-model="queryParamsEnd.zfrValue"
  192. placeholder="请输入关键字模糊查询"
  193. clearable
  194. maxlength="25"
  195. />
  196. </el-form-item>
  197. <el-form-item label="承诺还款日期" prop="zfrRepaymentDate" size="large" label-width="96px">
  198. <el-date-picker
  199. v-model="queryParamsEnd.zfrRepaymentDate"
  200. unlink-panels
  201. value-format="yyyy-MM-dd"
  202. type="daterange"
  203. range-separator="-"
  204. start-placeholder="开始日期"
  205. end-placeholder="结束日期"
  206. ></el-date-picker>
  207. </el-form-item>
  208. </el-form>
  209. </el-row>
  210. <el-row v-else-if="activeName === 'fourth'" class="zap-table-search">
  211. <el-row style="padding-top: 16px;">
  212. <right-toolbar
  213. style="padding-top: 4px;"
  214. :showSearch.sync="showSearch"
  215. @queryTable="getList"
  216. >收起</right-toolbar>
  217. <span class="zap-table-search__title">所选条件:</span>
  218. <div style="float: right; margin-right: 1%">
  219. <el-button type="cyan" icon="el-icon-search" @click="handleQueryLose">搜索</el-button>
  220. <el-button icon="el-icon-refresh" @click="resetQueryLose" style="float: ">重置</el-button>
  221. <column-setting
  222. :checkList="checkListThree"
  223. :tableList="tableListThree"
  224. :selfDom="selfDom"
  225. :tableId="tableIdThree"
  226. style="margin-left:5px"
  227. ></column-setting>
  228. </div>
  229. </el-row>
  230. <hr style="margin-top: 16px" />
  231. <el-form
  232. :model="queryParamsLose"
  233. ref="queryFormLose"
  234. :inline="true"
  235. v-show="showSearch"
  236. label-width="68px"
  237. >
  238. <el-form-item prop="zfrTypes" size="large">
  239. <el-select v-model="queryParamsLose.zfrTypes" clearable>
  240. <el-option
  241. v-for="dict in typesOptions"
  242. :key="dict.dictValue"
  243. :label="dict.dictLabel"
  244. :value="dict.dictValue"
  245. />
  246. </el-select>
  247. </el-form-item>
  248. <el-form-item prop="zfrQuery" size="large">
  249. <el-select v-model="queryParamsLose.zfrQuery" clearable>
  250. <el-option
  251. v-for="dict in adminQueryOptions"
  252. :key="dict.dictValue"
  253. :label="dict.dictLabel"
  254. :value="dict.dictValue"
  255. />
  256. </el-select>
  257. </el-form-item>
  258. <el-form-item
  259. prop="zfrValue"
  260. v-if="this.queryParamsLose.zfrQuery && this.queryParamsLose.zfrQuery != '03' "
  261. size="large"
  262. >
  263. <el-input
  264. v-model="queryParamsLose.zfrValue"
  265. placeholder="请输入关键字模糊查询"
  266. clearable
  267. maxlength="25"
  268. />
  269. </el-form-item>
  270. <el-form-item label="承诺还款日期" prop="zfrRepaymentDate" size="large" label-width="96px">
  271. <el-date-picker
  272. v-model="queryParamsLose.zfrRepaymentDate"
  273. unlink-panels
  274. value-format="yyyy-MM-dd"
  275. type="daterange"
  276. range-separator="-"
  277. start-placeholder="开始日期"
  278. end-placeholder="结束日期"
  279. ></el-date-picker>
  280. </el-form-item>
  281. </el-form>
  282. </el-row>
  283. <el-row>
  284. <div class="zap-credit__tabs zap-credit__content">
  285. <div class="zap-credit__buttons">
  286. <el-button
  287. type="primary"
  288. icon="el-icon-plus"
  289. size="large"
  290. @click="handleAdd"
  291. v-hasPermi="['finance:record:add']"
  292. >申请融资</el-button>
  293. </div>
  294. <el-tabs class="zap-margin-top" v-model="activeName" @tab-click="handleClick">
  295. <!-- 全部table页 -->
  296. <el-tab-pane label="全部" name="first">
  297. <el-table
  298. v-loading="loading"
  299. :data="recordList"
  300. @selection-change="handleSelectionChange"
  301. stripe
  302. >
  303. <el-table-column label="序号" type="index" width="50" align="center">
  304. <template slot-scope="scope">
  305. <span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
  306. </template>
  307. </el-table-column>
  308. <el-table-column
  309. label="融信编号"
  310. align="center"
  311. prop="zfiNumner"
  312. width="180"
  313. :show-overflow-tooltip="true"
  314. v-if="uncheckList.zfiNumner && (this.companyType == '00' || this.companyType == '02')"
  315. />
  316. <el-table-column
  317. label="融资编号"
  318. align="center"
  319. prop="zfrNumber"
  320. width="180"
  321. :show-overflow-tooltip="true"
  322. v-if="uncheckList.zfrNumber"
  323. />
  324. <el-table-column
  325. label="融资方"
  326. align="center"
  327. prop="supplierScyName"
  328. width="180"
  329. :show-overflow-tooltip="true"
  330. v-if="uncheckList.supplierScyName && (this.companyType == '01' || this.companyType == '00')"
  331. />
  332. <el-table-column
  333. label="开立方"
  334. align="center"
  335. prop="coreScyName"
  336. width="100"
  337. :show-overflow-tooltip="true"
  338. v-if="uncheckList.coreScyName"
  339. />
  340. <el-table-column
  341. label="融资金额"
  342. :formatter="moneyFormat"
  343. align="center"
  344. prop="zfrAmount"
  345. :show-overflow-tooltip="true"
  346. v-if="uncheckList.zfrAmount"
  347. />
  348. <el-table-column
  349. label="融资利率(%)"
  350. align="center"
  351. prop="zfrRate"
  352. width="100"
  353. :show-overflow-tooltip="true"
  354. v-if="uncheckList.zfrRate"
  355. />
  356. <el-table-column
  357. label="经办人"
  358. align="center"
  359. prop="nickName"
  360. width="100"
  361. :show-overflow-tooltip="true"
  362. v-if="uncheckList.nickName"
  363. />
  364. <el-table-column
  365. label="承诺还款时间"
  366. align="center"
  367. prop="zfrExpireDate"
  368. width="180"
  369. :show-overflow-tooltip="true"
  370. v-if="uncheckList.zfrExpireDate"
  371. />
  372. <el-table-column
  373. label="融资申请日期"
  374. align="center"
  375. prop="zfrApplyDate"
  376. width="180"
  377. :show-overflow-tooltip="true"
  378. v-if="uncheckList.zfrApplyDate"
  379. />
  380. <el-table-column
  381. label="实际放款金额"
  382. :formatter="moneyFormat"
  383. align="center"
  384. prop="zfrLoanAmount"
  385. width="180"
  386. :show-overflow-tooltip="true"
  387. v-if="uncheckList.zfrLoanAmount"
  388. />
  389. <el-table-column
  390. label="融资放款日期"
  391. align="center"
  392. prop="zfrLoanDate"
  393. width="180"
  394. :show-overflow-tooltip="true"
  395. v-if="uncheckList.zfrLoanDate"
  396. />
  397. <el-table-column
  398. label="内部审核"
  399. :formatter="approveFormat"
  400. align="center"
  401. prop="zfrApproveStt"
  402. :show-overflow-tooltip="true"
  403. v-if="uncheckList.zfrApproveStt && this.companyType == '02'"
  404. />
  405. <el-table-column
  406. label="融资状态"
  407. :formatter="statusFormat"
  408. align="center"
  409. prop="zfrStatus"
  410. :show-overflow-tooltip="true"
  411. v-if="uncheckList.zfrStatus"
  412. />
  413. <el-table-column
  414. label="操作"
  415. align="center"
  416. class-name="small-padding fixed-width"
  417. width="200"
  418. >
  419. <template slot-scope="scope">
  420. <el-button
  421. size="mini"
  422. type="text"
  423. icon="el-icon-edit"
  424. @click="handleDetail(scope.row)"
  425. v-hasPermi="['finance:record:query']"
  426. >详情</el-button>
  427. <el-button
  428. size="mini"
  429. type="text"
  430. icon="el-icon-delete"
  431. @click="handleLoan(scope.row)"
  432. v-hasPermi="['finance:record:edit']"
  433. v-if="scope.row.zfrStatus == '00' && scope.row.companyType ==('00' || '01')"
  434. >放款登记</el-button>
  435. <el-button
  436. size="mini"
  437. type="text"
  438. icon="el-icon-delete"
  439. @click="handleExport(scope.row)"
  440. v-hasPermi="['finance:record:export']"
  441. >导出</el-button>
  442. <el-button
  443. size="mini"
  444. type="text"
  445. icon="el-icon-edit"
  446. @click="seal(scope.row)"
  447. v-hasPermi="['finance:record:seal']"
  448. v-if="scope.row.zfrApproveStt == '01' && scope.row.zfrStatus == '04'"
  449. >融资</el-button>
  450. <el-button
  451. size="mini"
  452. type="text"
  453. icon="el-icon-info"
  454. @click="handleFlowable(scope.row)"
  455. v-if="scope.row.zfrApproveStt == '00' || scope.row.zfrApproveStt == '02'"
  456. >查看流程</el-button>
  457. </template>
  458. </el-table-column>
  459. </el-table>
  460. <pagination
  461. v-show="total > 0"
  462. :total="total"
  463. :page.sync="queryParams.pageNum"
  464. :limit.sync="queryParams.pageSize"
  465. @pagination="getList"
  466. />
  467. </el-tab-pane>
  468. <!-- 融资中table页 -->
  469. <el-tab-pane label="融资中" name="second">
  470. <el-table
  471. v-loading="loadingIng"
  472. :data="recordIngList"
  473. @selection-change="handleSelectionChangeIng"
  474. stripe
  475. >
  476. <el-table-column label="序号" type="index" width="50" align="center">
  477. <template slot-scope="scope">
  478. <span>{{(queryParamsIng.pageNum - 1) * queryParamsIng.pageSize +scope.$index + 1}}</span>
  479. </template>
  480. </el-table-column>
  481. <el-table-column
  482. label="融信编号"
  483. align="center"
  484. prop="zfiNumner"
  485. width="180"
  486. :show-overflow-tooltip="true"
  487. v-if="uncheckList.zfiNumner && (this.companyType == '00' || this.companyType == '02')"
  488. />
  489. <el-table-column
  490. label="融资编号"
  491. align="center"
  492. prop="zfrNumber"
  493. width="180"
  494. :show-overflow-tooltip="true"
  495. v-if="uncheckList.zfrNumber"
  496. />
  497. <el-table-column
  498. label="融资方"
  499. align="center"
  500. prop="supplierScyName"
  501. width="180"
  502. :show-overflow-tooltip="true"
  503. v-if="uncheckList.supplierScyName && (this.companyType == '01' || this.companyType == '00')"
  504. />
  505. <el-table-column
  506. label="开立方"
  507. align="center"
  508. prop="coreScyName"
  509. width="100"
  510. :show-overflow-tooltip="true"
  511. v-if="uncheckList.coreScyName"
  512. />
  513. <el-table-column
  514. label="融资金额"
  515. :formatter="moneyFormat"
  516. align="center"
  517. prop="zfrAmount"
  518. :show-overflow-tooltip="true"
  519. v-if="uncheckList.zfrAmount"
  520. />
  521. <el-table-column
  522. label="融资利率(%)"
  523. align="center"
  524. prop="zfrRate"
  525. width="100"
  526. :show-overflow-tooltip="true"
  527. v-if="uncheckList.zfrRate"
  528. />
  529. <el-table-column
  530. label="经办人"
  531. align="center"
  532. prop="nickName"
  533. width="100"
  534. :show-overflow-tooltip="true"
  535. v-if="uncheckList.nickName"
  536. />
  537. <el-table-column
  538. label="承诺还款时间"
  539. align="center"
  540. prop="zfrExpireDate"
  541. width="180"
  542. :show-overflow-tooltip="true"
  543. v-if="uncheckList.zfrExpireDate"
  544. />
  545. <el-table-column
  546. label="融资申请日期"
  547. align="center"
  548. prop="zfrApplyDate"
  549. width="180"
  550. :show-overflow-tooltip="true"
  551. v-if="uncheckList.zfrApplyDate"
  552. />
  553. <el-table-column
  554. label="实际放款金额"
  555. :formatter="moneyFormat"
  556. align="center"
  557. prop="zfrLoanAmount"
  558. width="180"
  559. :show-overflow-tooltip="true"
  560. v-if="uncheckList.zfrLoanAmount"
  561. />
  562. <el-table-column
  563. label="融资放款日期"
  564. align="center"
  565. prop="zfrLoanDate"
  566. width="180"
  567. :show-overflow-tooltip="true"
  568. v-if="uncheckList.zfrLoanDate"
  569. />
  570. <el-table-column
  571. label="内部审核"
  572. :formatter="approveFormat"
  573. align="center"
  574. prop="zfrApproveStt"
  575. :show-overflow-tooltip="true"
  576. v-if="uncheckList.zfrApproveStt && this.companyType == '02'"
  577. />
  578. <el-table-column
  579. label="融资状态"
  580. :formatter="statusFormat"
  581. align="center"
  582. prop="zfrStatus"
  583. :show-overflow-tooltip="true"
  584. v-if="uncheckList.zfrStatus"
  585. />
  586. <el-table-column
  587. label="操作"
  588. align="center"
  589. class-name="small-padding fixed-width"
  590. width="200"
  591. >
  592. <template slot-scope="scope">
  593. <el-button
  594. size="mini"
  595. type="text"
  596. icon="el-icon-edit"
  597. @click="handleDetail(scope.row)"
  598. v-hasPermi="['finance:record:query']"
  599. >详情</el-button>
  600. <el-button
  601. size="mini"
  602. type="text"
  603. icon="el-icon-delete"
  604. @click="handleLoan(scope.row)"
  605. v-hasPermi="['finance:record:edit']"
  606. v-if="scope.row.zfrStatus == '00' && scope.row.companyType ==('00' || '01')"
  607. >放款登记</el-button>
  608. <el-button
  609. size="mini"
  610. type="text"
  611. icon="el-icon-delete"
  612. @click="handleExport(scope.row)"
  613. v-hasPermi="['finance:record:export']"
  614. >导出</el-button>
  615. <el-button
  616. size="mini"
  617. type="text"
  618. icon="el-icon-info"
  619. @click="handleFlowable(scope.row)"
  620. v-if="scope.row.zfrApproveStt == '00' || scope.row.zfrApproveStt == '02'"
  621. >查看流程</el-button>
  622. </template>
  623. </el-table-column>
  624. </el-table>
  625. <pagination
  626. v-show="totalIng > 0"
  627. :total="totalIng"
  628. :page.sync="queryParamsIng.pageNum"
  629. :limit.sync="queryParamsIng.pageSize"
  630. @pagination="getIngList"
  631. />
  632. </el-tab-pane>
  633. <!-- 已放款table页 -->
  634. <el-tab-pane label="已放款" name="third">
  635. <el-table
  636. v-loading="loadingEnd"
  637. :data="recordEndList"
  638. @selection-change="handleSelectionChange"
  639. stripe
  640. >
  641. <el-table-column label="序号" type="index" width="50" align="center">
  642. <template slot-scope="scope">
  643. <span>{{ (queryParamsEnd.pageNum - 1) * queryParamsEnd.pageSize + scope.$index + 1 }}</span>
  644. </template>
  645. </el-table-column>
  646. <el-table-column
  647. label="融信编号"
  648. align="center"
  649. prop="zfiNumner"
  650. width="180"
  651. :show-overflow-tooltip="true"
  652. v-if="uncheckList.zfiNumner && (this.companyType == '00' || this.companyType == '02')"
  653. />
  654. <el-table-column
  655. label="融资编号"
  656. align="center"
  657. prop="zfrNumber"
  658. width="180"
  659. :show-overflow-tooltip="true"
  660. v-if="uncheckList.zfrNumber"
  661. />
  662. <el-table-column
  663. label="融资方"
  664. align="center"
  665. prop="supplierScyName"
  666. width="180"
  667. :show-overflow-tooltip="true"
  668. v-if="uncheckList.supplierScyName && (this.companyType == '01'|| this.companyType == '00')"
  669. />
  670. <el-table-column
  671. label="开立方"
  672. align="center"
  673. prop="coreScyName"
  674. width="100"
  675. :show-overflow-tooltip="true"
  676. v-if="uncheckList.coreScyName"
  677. />
  678. <el-table-column
  679. label="融资金额"
  680. :formatter="moneyFormat"
  681. align="center"
  682. prop="zfrAmount"
  683. :show-overflow-tooltip="true"
  684. v-if="uncheckList.zfrAmount"
  685. />
  686. <el-table-column
  687. label="融资利率(%)"
  688. align="center"
  689. prop="zfrRate"
  690. width="100"
  691. :show-overflow-tooltip="true"
  692. v-if="uncheckList.zfrRate"
  693. />
  694. <el-table-column
  695. label="经办人"
  696. align="center"
  697. prop="nickName"
  698. width="100"
  699. :show-overflow-tooltip="true"
  700. v-if="uncheckList.nickName"
  701. />
  702. <el-table-column
  703. label="承诺还款时间"
  704. align="center"
  705. prop="zfrExpireDate"
  706. width="180"
  707. :show-overflow-tooltip="true"
  708. v-if="uncheckList.zfrExpireDate"
  709. />
  710. <el-table-column
  711. label="融资申请日期"
  712. align="center"
  713. prop="zfrApplyDate"
  714. width="180"
  715. :show-overflow-tooltip="true"
  716. v-if="uncheckList.zfrApplyDate"
  717. />
  718. <el-table-column
  719. label="实际放款金额"
  720. :formatter="moneyFormat"
  721. align="center"
  722. prop="zfrLoanAmount"
  723. width="180"
  724. :show-overflow-tooltip="true"
  725. v-if="uncheckList.zfrLoanAmount"
  726. />
  727. <el-table-column
  728. label="融资放款日期"
  729. align="center"
  730. prop="zfrLoanDate"
  731. width="180"
  732. :show-overflow-tooltip="true"
  733. v-if="uncheckList.zfrLoanDate"
  734. />
  735. <el-table-column
  736. label="内部审核"
  737. :formatter="approveFormat"
  738. align="center"
  739. prop="zfrApproveStt"
  740. :show-overflow-tooltip="true"
  741. v-if="uncheckList.zfrApproveStt && this.companyType == '02'"
  742. />
  743. <el-table-column
  744. label="融资状态"
  745. :formatter="statusFormat"
  746. align="center"
  747. prop="zfrStatus"
  748. :show-overflow-tooltip="true"
  749. v-if="uncheckList.zfrStatus"
  750. />
  751. <el-table-column
  752. label="操作"
  753. align="center"
  754. class-name="small-padding fixed-width"
  755. width="200"
  756. >
  757. <template slot-scope="scope">
  758. <el-button
  759. size="mini"
  760. type="text"
  761. icon="el-icon-edit"
  762. @click="handleDetail(scope.row)"
  763. v-hasPermi="['finance:record:query']"
  764. >详情</el-button>
  765. <el-button
  766. size="mini"
  767. type="text"
  768. icon="el-icon-delete"
  769. @click="handleExport(scope.row)"
  770. v-hasPermi="['finance:record:export']"
  771. >导出</el-button>
  772. <el-button
  773. size="mini"
  774. type="text"
  775. icon="el-icon-info"
  776. @click="handleFlowable(scope.row)"
  777. v-if="scope.row.zfrApproveStt == '00' || scope.row.zfrApproveStt == '02'"
  778. >查看流程</el-button>
  779. </template>
  780. </el-table-column>
  781. </el-table>
  782. <pagination
  783. v-show="totalEnd > 0"
  784. :total="totalEnd"
  785. :page.sync="queryParamsEnd.pageNum"
  786. :limit.sync="queryParamsEnd.pageSize"
  787. @pagination="getEndList"
  788. />
  789. </el-tab-pane>
  790. <!-- 融资失败table页 -->
  791. <el-tab-pane label="融资失败" name="fourth">
  792. <el-table
  793. v-loading="loadingLose"
  794. :data="recordLoseList"
  795. @selection-change="handleSelectionChange"
  796. stripe
  797. >
  798. <el-table-column label="序号" type="index" width="50" align="center">
  799. <template slot-scope="scope">
  800. <span>{{ (queryParamsLose.pageNum - 1) * queryParamsLose.pageSize + scope.$index + 1}}</span>
  801. </template>
  802. </el-table-column>
  803. <el-table-column
  804. label="融信编号"
  805. align="center"
  806. prop="zfiNumner"
  807. width="180"
  808. :show-overflow-tooltip="true"
  809. v-if="uncheckList.zfiNumner && (this.companyType == '00' || this.companyType == '02')"
  810. />
  811. <el-table-column
  812. label="融资编号"
  813. align="center"
  814. prop="zfrNumber"
  815. width="180"
  816. :show-overflow-tooltip="true"
  817. v-if="uncheckList.zfrNumber"
  818. />
  819. <el-table-column
  820. label="融资方"
  821. align="center"
  822. prop="supplierScyName"
  823. width="180"
  824. :show-overflow-tooltip="true"
  825. v-if="uncheckList.supplierScyName && (this.companyType == '01'|| this.companyType == '00')"
  826. />
  827. <el-table-column
  828. label="开立方"
  829. align="center"
  830. prop="coreScyName"
  831. width="100"
  832. :show-overflow-tooltip="true"
  833. v-if="uncheckList.coreScyName"
  834. />
  835. <el-table-column
  836. label="融资金额"
  837. :formatter="moneyFormat"
  838. align="center"
  839. prop="zfrAmount"
  840. :show-overflow-tooltip="true"
  841. v-if="uncheckList.zfrAmount"
  842. />
  843. <el-table-column
  844. label="融资利率(%)"
  845. align="center"
  846. prop="zfrRate"
  847. width="100"
  848. :show-overflow-tooltip="true"
  849. v-if="uncheckList.zfrRate"
  850. />
  851. <el-table-column
  852. label="经办人"
  853. align="center"
  854. prop="nickName"
  855. width="100"
  856. :show-overflow-tooltip="true"
  857. v-if="uncheckList.nickName"
  858. />
  859. <el-table-column
  860. label="承诺还款时间"
  861. align="center"
  862. prop="zfrExpireDate"
  863. width="180"
  864. :show-overflow-tooltip="true"
  865. v-if="uncheckList.zfrExpireDate"
  866. />
  867. <el-table-column
  868. label="融资申请日期"
  869. align="center"
  870. prop="zfrApplyDate"
  871. width="180"
  872. :show-overflow-tooltip="true"
  873. v-if="uncheckList.zfrApplyDate"
  874. />
  875. <el-table-column
  876. label="实际放款金额"
  877. :formatter="moneyFormat"
  878. align="center"
  879. prop="zfrLoanAmount"
  880. width="180"
  881. :show-overflow-tooltip="true"
  882. v-if="uncheckList.zfrLoanAmount"
  883. />
  884. <el-table-column
  885. label="融资放款日期"
  886. align="center"
  887. prop="zfrLoanDate"
  888. width="180"
  889. :show-overflow-tooltip="true"
  890. v-if="uncheckList.zfrLoanDate"
  891. />
  892. <el-table-column
  893. label="内部审批"
  894. :formatter="approveFormat"
  895. align="center"
  896. prop="zfrApproveStt"
  897. :show-overflow-tooltip="true"
  898. v-if="uncheckList.zfrApproveStt && this.companyType == '02'"
  899. />
  900. <el-table-column
  901. label="融资状态"
  902. :formatter="statusFormat"
  903. align="center"
  904. prop="zfrStatus"
  905. :show-overflow-tooltip="true"
  906. v-if="uncheckList.zfrStatus"
  907. />
  908. <el-table-column
  909. label="操作"
  910. align="center"
  911. class-name="small-padding fixed-width"
  912. width="200"
  913. >
  914. <template slot-scope="scope">
  915. <el-button
  916. size="mini"
  917. type="text"
  918. icon="el-icon-edit"
  919. @click="handleDetail(scope.row)"
  920. v-hasPermi="['finance:record:query']"
  921. >详情</el-button>
  922. <el-button
  923. size="mini"
  924. type="text"
  925. icon="el-icon-delete"
  926. @click="handleExport(scope.row)"
  927. v-hasPermi="['finance:record:export']"
  928. >导出</el-button>
  929. <el-button
  930. size="mini"
  931. type="text"
  932. icon="el-icon-info"
  933. @click="handleFlowable(scope.row)"
  934. v-if="scope.row.zfrApproveStt == '00' || scope.row.zfrApproveStt == '02'"
  935. >查看流程</el-button>
  936. </template>
  937. </el-table-column>
  938. </el-table>
  939. <pagination
  940. v-show="totalLose > 0"
  941. :total="totalLose"
  942. :page.sync="queryParamsLose.pageNum"
  943. :limit.sync="queryParamsLose.pageSize"
  944. @pagination="getLoseList"
  945. />
  946. </el-tab-pane>
  947. <!-- 添加或修改融资记录对话框 -->
  948. <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
  949. <el-form ref="form" :model="form" :rules="rules" label-width="auto">
  950. <el-form-item label="实际放款金额" prop="zfrLoanAmount">
  951. <el-input v-model="form.zfrLoanAmount" @input.native="changeRate($event,form.zfrLoanAmount)" placeholder="实际放款金额">
  952. <template slot="append">元</template>
  953. </el-input>
  954. </el-form-item>
  955. <el-form-item label="上传附件">
  956. <el-upload
  957. ref="upload"
  958. class="upload-demo"
  959. action
  960. :class="{ showUoload: showBtnImg, uoloadSty: noneBtnImg }"
  961. :on-change="dealImgChange"
  962. accept=".jpg, .jpeg, .png"
  963. :http-request="httpRequest"
  964. :on-preview="handlePictureCardPreview"
  965. :on-remove="handleRemove"
  966. :before-upload="beforeUpload"
  967. multiple
  968. :limit="1"
  969. :on-exceed="handleExceed"
  970. list-type="picture-card"
  971. :file-list="fileList"
  972. :auto-upload="true"
  973. >
  974. <div slot="trigger" class="zap-contract-add__upload">
  975. <i class="el-icon-upload"></i>
  976. <div class="zap-upload__text">上传文件</div>
  977. </div>
  978. </el-upload>
  979. </el-form-item>
  980. <el-form-item label="融资id" prop="zfrId" label-width="90px" v-if="false">
  981. <el-input v-model="form.zfrId" style="width: 284px" />
  982. </el-form-item>
  983. <el-form-item label="融信id" prop="zfrFinanceId" label-width="90px" v-if="false">
  984. <el-input v-model="form.zfrFinanceId" style="width: 284px" />
  985. </el-form-item>
  986. </el-form>
  987. <el-row style="height: 109px;" type="flex" align="middle" justify="center">
  988. <el-button type="primary" plain="" @click="cancel">取 消</el-button>
  989. <el-button type="primary" @click="submitForm">确 定</el-button>
  990. <el-button type="danger" @click="submitRefuse(form.zfrId,form.zfrFinanceId)">拒绝放款</el-button>
  991. </el-row>
  992. </el-dialog>
  993. <el-dialog title="拒绝放款" :visible.sync="openRefuse" width="600px" append-to-body>
  994. <el-form ref="formRefuse" :model="formRefuse" :rules="rulesRefuse" label-width="auto">
  995. <el-form-item label="拒绝放款原因" prop="zfrReason">
  996. <el-input v-model="formRefuse.zfrReason" maxlength="50" show-word-limit type="textarea" placeholder="请输入审批意见" />
  997. </el-form-item>
  998. </el-form>
  999. <el-row style="height: 109px;" type="flex" align="middle" justify="center">
  1000. <el-button type="primary" plain="" @click="cancelRefuse">取 消</el-button>
  1001. <el-button type="primary" @click="submitFormRefuse">确 定</el-button>
  1002. </el-row>
  1003. </el-dialog>
  1004. <el-dialog :visible.sync="dialogVisible">
  1005. <img width="100%" :src="dialogImageUrl" alt />
  1006. </el-dialog>
  1007. <!--查看内部审批流程-->
  1008. <el-dialog title="流程进度" :visible.sync="hisTaskForm">
  1009. <div>
  1010. <el-steps direction="vertical" :active="histaskList[histaskList.length-1] && histaskList[histaskList.length-1].activityType == 'endEvent' ? histaskList.length : histaskList.length-1" finish-status="success" space = "60px">
  1011. <el-step :title="item.name" v-for="(item,index) in histaskList" :key="index">
  1012. <template slot="description">
  1013. <span v-if="item.activityType == 'userTask'">办理人: {{item.displayName}}</span> 节点名称: {{item.activityName}} 任务接收时间 {{parseTime(new Date(item.startTime), '{y}-{m}-{d} {h}:{i}:{s}')}} 任务办结时间 {{parseTime(new Date(item.endTime), '{y}-{m}-{d} {h}:{i}:{s}')}}
  1014. <div v-for="(comment,index) in item.commentList" class="text item" :key="index">
  1015. {{'审批意见: ' + comment.message }}
  1016. </div>
  1017. </template>
  1018. </el-step>
  1019. </el-steps>
  1020. </div>
  1021. <div slot="footer" class="dialog-footer">
  1022. <el-button @click="hisTaskForm = false">关 闭</el-button>
  1023. </div>
  1024. </el-dialog>
  1025. </el-tabs>
  1026. </div>
  1027. </el-row>
  1028. </div>
  1029. </template>
  1030. <script>
  1031. import {
  1032. listRecord,
  1033. getRecord,
  1034. delRecord,
  1035. addRecord,
  1036. updateRecord,
  1037. examineApprove
  1038. } from "@/api/service/financeRecord/record";
  1039. import { uploadFileNew } from "@/api/common/file";
  1040. import Cookies from "js-cookie";
  1041. import { getToken } from "@/utils/auth";
  1042. import { columnQuery } from "@/api/common/columnSetting";
  1043. import ColumnSetting from "../../../components/Table/columnSetting.vue";
  1044. import { getUserProfile } from "@/api/system/user";
  1045. import {approvalProcess} from "@/api/service/credit/approvalRelatedCredit";
  1046. export default {
  1047. name: "finaceRecord",
  1048. components: {
  1049. ColumnSetting
  1050. },
  1051. data() {
  1052. return {
  1053. //企业Id
  1054. companyId: "",
  1055. //企业类型
  1056. companyType: "",
  1057. //上传使用
  1058. dialogImageUrl: "",
  1059. dialogVisible: false,
  1060. //附件按钮
  1061. showBtnImg: true,
  1062. noneBtnImg: false,
  1063. limitCountImg: 1,
  1064. // 遮罩层
  1065. loading: true,
  1066. loadingIng: true,
  1067. loadingEnd: true,
  1068. loadingLose: true,
  1069. // 选中数组
  1070. ids: [],
  1071. // 非单个禁用
  1072. single: true,
  1073. // 非多个禁用
  1074. multiple: true,
  1075. // 显示搜索条件
  1076. showSearch: true,
  1077. // 总条数
  1078. total: 0,
  1079. totalIng: 0,
  1080. totalEnd: 0,
  1081. totalLose: 0,
  1082. // 全部融资记录表格数据
  1083. recordList: [],
  1084. // 融资中融资记录表格数据
  1085. recordIngList: [],
  1086. // 已放款融资记录表格数据
  1087. recordEndList: [],
  1088. // 融资失败融资记录表格数据
  1089. recordLoseList: [],
  1090. //附件地址
  1091. fileList: [],
  1092. //融资状态数据字典
  1093. statusOptions: [],
  1094. //内部审批状态
  1095. approveOptions: [],
  1096. //筛选条件数据字典
  1097. typesOptions: [],
  1098. queryOptions: [],
  1099. adminQueryOptions: [],
  1100. // 弹出层标题
  1101. title: "",
  1102. // 是否显示弹出层
  1103. open: false,
  1104. openRefuse: false,
  1105. // 查询参数
  1106. queryParams: {
  1107. pageNum: 1,
  1108. pageSize: 10,
  1109. zfrFinanceId: null,
  1110. zfrNumber: null,
  1111. zfrAmount: null,
  1112. zfrRate: null,
  1113. zfrHandler: null,
  1114. zfrRepaymentDate: [],
  1115. zfrApplyDate: null,
  1116. zfrLoanDate: null,
  1117. zfrApplyAmount: null,
  1118. zfrApplyType: null,
  1119. zfrStatus: null,
  1120. zfrApproveStt: null,
  1121. zfrTypes: "00",
  1122. zfrQuery: null,
  1123. zfrValue: null
  1124. },
  1125. queryParamsIng: {
  1126. pageNum: 1,
  1127. pageSize: 10,
  1128. zfrFinanceId: null,
  1129. zfrNumber: null,
  1130. zfrAmount: null,
  1131. zfrRate: null,
  1132. zfrHandler: null,
  1133. zfrRepaymentDate: [],
  1134. zfrApplyDate: null,
  1135. zfrLoanDate: null,
  1136. zfrApplyAmount: null,
  1137. zfrApplyType: null,
  1138. zfrStatus: null,
  1139. zfrApproveStt: null,
  1140. zfrTypes: "00",
  1141. zfrQuery: null,
  1142. zfrValue: null
  1143. },
  1144. queryParamsEnd: {
  1145. pageNum: 1,
  1146. pageSize: 10,
  1147. zfrFinanceId: null,
  1148. zfrNumber: null,
  1149. zfrAmount: null,
  1150. zfrRate: null,
  1151. zfrHandler: null,
  1152. zfrRepaymentDate: [],
  1153. zfrApplyDate: null,
  1154. zfrLoanDate: null,
  1155. zfrApplyAmount: null,
  1156. zfrApplyType: null,
  1157. zfrStatus: null,
  1158. zfrApproveStt: null,
  1159. zfrTypes: "00",
  1160. zfrQuery: null,
  1161. zfrValue: null
  1162. },
  1163. queryParamsLose: {
  1164. pageNum: 1,
  1165. pageSize: 10,
  1166. zfrFinanceId: null,
  1167. zfrNumber: null,
  1168. zfrAmount: null,
  1169. zfrRate: null,
  1170. zfrHandler: null,
  1171. zfrRepaymentDate: [],
  1172. zfrApplyDate: null,
  1173. zfrLoanDate: null,
  1174. zfrApplyAmount: null,
  1175. zfrApplyType: null,
  1176. zfrStatus: null,
  1177. zfrApproveStt: null,
  1178. zfrTypes: "00",
  1179. zfrQuery: null,
  1180. zfrValue: null
  1181. },
  1182. // 表单参数
  1183. form: {},
  1184. formRefuse:{},
  1185. //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用--全部
  1186. tableList: [
  1187. {
  1188. label: "zfiNumner",
  1189. value: "融信编号"
  1190. },
  1191. {
  1192. label: "zfrNumber",
  1193. value: "融资编号"
  1194. },
  1195. {
  1196. label: "supplierScyName",
  1197. value: "融资方"
  1198. },
  1199. {
  1200. label: "coreScyName",
  1201. value: "开立方"
  1202. },
  1203. {
  1204. label: "zfrAmount",
  1205. value: "融资金额"
  1206. },
  1207. {
  1208. label: "zfrRate",
  1209. value: "融资利率"
  1210. },
  1211. {
  1212. label: "nickName",
  1213. value: "经办人"
  1214. },
  1215. {
  1216. label: "zfrExpireDate",
  1217. value: "承诺还款时间"
  1218. },
  1219. {
  1220. label: "zfrApplyDate",
  1221. value: "融资申请日期"
  1222. },
  1223. {
  1224. label: "zfrLoanAmount",
  1225. value: "实际放款金额"
  1226. },
  1227. {
  1228. label: "zfrLoanDate",
  1229. value: "融资放款日期"
  1230. },
  1231. {
  1232. label: "zfrStatus",
  1233. value: "融资状态"
  1234. },
  1235. {
  1236. label: "zfrApproveStt",
  1237. value: "审批状态"
  1238. }
  1239. ],
  1240. checkList: [], //筛选列选中的数据列表--显示隐藏列用
  1241. uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
  1242. firstSet: false,
  1243. tableId: "/sc-service/financeRecord/list/all",
  1244. //融资中
  1245. tableListOne: [
  1246. {
  1247. label: "zfiNumner",
  1248. value: "融信编号"
  1249. },
  1250. {
  1251. label: "zfrNumber",
  1252. value: "融资编号"
  1253. },
  1254. {
  1255. label: "supplierScyName",
  1256. value: "融资方"
  1257. },
  1258. {
  1259. label: "coreScyName",
  1260. value: "开立方"
  1261. },
  1262. {
  1263. label: "zfrAmount",
  1264. value: "融资金额"
  1265. },
  1266. {
  1267. label: "zfrRate",
  1268. value: "融资利率"
  1269. },
  1270. {
  1271. label: "nickName",
  1272. value: "经办人"
  1273. },
  1274. {
  1275. label: "zfrExpireDate",
  1276. value: "承诺还款时间"
  1277. },
  1278. {
  1279. label: "zfrApplyDate",
  1280. value: "融资申请日期"
  1281. },
  1282. {
  1283. label: "zfrLoanAmount",
  1284. value: "实际放款金额"
  1285. },
  1286. {
  1287. label: "zfrLoanDate",
  1288. value: "融资放款日期"
  1289. },
  1290. {
  1291. label: "zfrStatus",
  1292. value: "融资状态"
  1293. },
  1294. {
  1295. label: "zfrApproveStt",
  1296. value: "审批状态"
  1297. }
  1298. ],
  1299. checkListOne: [], //筛选列选中的数据列表--显示隐藏列用
  1300. uncheckListOne: {}, //控制筛选列显示隐藏--显示隐藏列用
  1301. firstSetOne: false,
  1302. tableIdOne: "/sc-service/financeRecord/list/one",
  1303. //已放款
  1304. tableListTwo: [
  1305. {
  1306. label: "zfiNumner",
  1307. value: "融信编号"
  1308. },
  1309. {
  1310. label: "zfrNumber",
  1311. value: "融资编号"
  1312. },
  1313. {
  1314. label: "supplierScyName",
  1315. value: "融资方"
  1316. },
  1317. {
  1318. label: "coreScyName",
  1319. value: "开立方"
  1320. },
  1321. {
  1322. label: "zfrAmount",
  1323. value: "融资金额"
  1324. },
  1325. {
  1326. label: "zfrRate",
  1327. value: "融资利率"
  1328. },
  1329. {
  1330. label: "nickName",
  1331. value: "经办人"
  1332. },
  1333. {
  1334. label: "zfrExpireDate",
  1335. value: "承诺还款时间"
  1336. },
  1337. {
  1338. label: "zfrApplyDate",
  1339. value: "融资申请日期"
  1340. },
  1341. {
  1342. label: "zfrLoanAmount",
  1343. value: "实际放款金额"
  1344. },
  1345. {
  1346. label: "zfrLoanDate",
  1347. value: "融资放款日期"
  1348. },
  1349. {
  1350. label: "zfrStatus",
  1351. value: "融资状态"
  1352. },
  1353. {
  1354. label: "zfrApproveStt",
  1355. value: "审批状态"
  1356. }
  1357. ],
  1358. checkListTwo: [], //筛选列选中的数据列表--显示隐藏列用
  1359. uncheckListTwo: {}, //控制筛选列显示隐藏--显示隐藏列用
  1360. firstSetTwo: false,
  1361. tableIdTwo: "/sc-service/financeRecord/list/two",
  1362. //放款失败
  1363. tableListThree: [
  1364. {
  1365. label: "zfiNumner",
  1366. value: "融信编号"
  1367. },
  1368. {
  1369. label: "zfrNumber",
  1370. value: "融资编号"
  1371. },
  1372. {
  1373. label: "supplierScyName",
  1374. value: "融资方"
  1375. },
  1376. {
  1377. label: "coreScyName",
  1378. value: "开立方"
  1379. },
  1380. {
  1381. label: "zfrAmount",
  1382. value: "融资金额"
  1383. },
  1384. {
  1385. label: "zfrRate",
  1386. value: "融资利率"
  1387. },
  1388. {
  1389. label: "nickName",
  1390. value: "经办人"
  1391. },
  1392. {
  1393. label: "zfrExpireDate",
  1394. value: "承诺还款时间"
  1395. },
  1396. {
  1397. label: "zfrApplyDate",
  1398. value: "融资申请日期"
  1399. },
  1400. {
  1401. label: "zfrLoanAmount",
  1402. value: "实际放款金额"
  1403. },
  1404. {
  1405. label: "zfrLoanDate",
  1406. value: "融资放款日期"
  1407. },
  1408. {
  1409. label: "zfrStatus",
  1410. value: "融资状态"
  1411. },
  1412. {
  1413. label: "zfrApproveStt",
  1414. value: "审批状态"
  1415. }
  1416. ],
  1417. checkListThree: [], //筛选列选中的数据列表--显示隐藏列用
  1418. uncheckListThree: {}, //控制筛选列显示隐藏--显示隐藏列用
  1419. firstSetThree: false,
  1420. tableIdThree: "/sc-service/financeRecord/list/three",
  1421. // 表单校验
  1422. rules: {
  1423. zfrLoanAmount: [
  1424. {
  1425. required: true,
  1426. message: "放款金额不能为空",
  1427. trigger: ["blur", "change"],
  1428. },
  1429. {
  1430. pattern: /^(?:0|[1-9]\d{0,8})(?:\.\d{1,2})?$/,
  1431. message: "请输入正确的金额",
  1432. trigger: ["blur", "change"],
  1433. },
  1434. ]
  1435. },
  1436. rulesRefuse:{
  1437. zfrReason:[
  1438. {
  1439. required: true,
  1440. message: "拒绝放款原因不能为空",
  1441. trigger: ["blur", "change"],
  1442. }
  1443. ]
  1444. },
  1445. selfDom: this,
  1446. activeName: "first",
  1447. //审批
  1448. hisTaskForm:false,
  1449. histaskList:[]
  1450. };
  1451. },
  1452. created() {
  1453. this.getDicts("ser_zfr_status").then(response => {
  1454. this.statusOptions = response.data;
  1455. });
  1456. this.getDicts("zc_zfr_types").then(response => {
  1457. this.typesOptions = response.data;
  1458. });
  1459. this.getDicts("zc_zfr_query").then(response => {
  1460. this.queryOptions = response.data;
  1461. });
  1462. this.getDicts("ser_zfr_query").then(response => {
  1463. this.adminQueryOptions = response.data;
  1464. });
  1465. this.getDicts("zc_zfr_approve_stt").then(response => {
  1466. this.approveOptions = response.data;
  1467. });
  1468. this.getList().then(() => {
  1469. getUserProfile().then(response => {
  1470. if ("00" == response.data.companyType) {
  1471. this.queryParams.zfrQuery = "02";
  1472. } else if ("01" == response.data.companyType) {
  1473. this.queryParams.zfrQuery = "04";
  1474. } else if ("02" == response.data.companyType) {
  1475. this.queryParams.zfrQuery = "00";
  1476. }
  1477. });
  1478. });
  1479. this.getIngList().then(() => {
  1480. getUserProfile().then(response => {
  1481. if ("00" == response.data.companyType) {
  1482. this.queryParamsIng.zfrQuery = "02";
  1483. } else if ("01" == response.data.companyType) {
  1484. this.queryParamsIng.zfrQuery = "04";
  1485. } else if ("02" == response.data.companyType) {
  1486. this.queryParamsIng.zfrQuery = "00";
  1487. }
  1488. });
  1489. });
  1490. this.getEndList().then(() => {
  1491. getUserProfile().then(response => {
  1492. if ("00" == response.data.companyType) {
  1493. this.queryParamsEnd.zfrQuery = "02";
  1494. } else if ("01" == response.data.companyType) {
  1495. this.queryParamsEnd.zfrQuery = "04";
  1496. } else if ("02" == response.data.companyType) {
  1497. this.queryParamsEnd.zfrQuery = "00";
  1498. }
  1499. });
  1500. });
  1501. this.getLoseList().then(() => {
  1502. getUserProfile().then(response => {
  1503. if ("00" == response.data.companyType) {
  1504. this.queryParamsLose.zfrQuery = "02";
  1505. } else if ("01" == response.data.companyType) {
  1506. this.queryParamsLose.zfrQuery = "04";
  1507. } else if ("02" == response.data.companyType) {
  1508. this.queryParamsLose.zfrQuery = "00";
  1509. }
  1510. });
  1511. });
  1512. },
  1513. activated() {
  1514. this.getDicts("ser_zfr_status").then(response => {
  1515. this.statusOptions = response.data;
  1516. });
  1517. this.getDicts("zc_zfr_types").then(response => {
  1518. this.typesOptions = response.data;
  1519. });
  1520. this.getDicts("zc_zfr_query").then(response => {
  1521. this.queryOptions = response.data;
  1522. });
  1523. this.getDicts("ser_zfr_query").then(response => {
  1524. this.adminQueryOptions = response.data;
  1525. });
  1526. this.getDicts("zc_zfr_approve_stt").then(response => {
  1527. this.approveOptions = response.data;
  1528. });
  1529. this.getList().then(() => {
  1530. getUserProfile().then(response => {
  1531. if ("00" == response.data.companyType) {
  1532. this.queryParams.zfrQuery = "02";
  1533. } else if ("01" == response.data.companyType) {
  1534. this.queryParams.zfrQuery = "04";
  1535. } else if ("02" == response.data.companyType) {
  1536. this.queryParams.zfrQuery = "00";
  1537. }
  1538. });
  1539. });
  1540. this.getIngList().then(() => {
  1541. getUserProfile().then(response => {
  1542. if ("00" == response.data.companyType) {
  1543. this.queryParamsIng.zfrQuery = "02";
  1544. } else if ("01" == response.data.companyType) {
  1545. this.queryParamsIng.zfrQuery = "04";
  1546. } else if ("02" == response.data.companyType) {
  1547. this.queryParamsIng.zfrQuery = "00";
  1548. }
  1549. });
  1550. });
  1551. this.getEndList().then(() => {
  1552. getUserProfile().then(response => {
  1553. if ("00" == response.data.companyType) {
  1554. this.queryParamsEnd.zfrQuery = "02";
  1555. } else if ("01" == response.data.companyType) {
  1556. this.queryParamsEnd.zfrQuery = "04";
  1557. } else if ("02" == response.data.companyType) {
  1558. this.queryParamsEnd.zfrQuery = "00";
  1559. }
  1560. });
  1561. });
  1562. this.getLoseList().then(() => {
  1563. getUserProfile().then(response => {
  1564. if ("00" == response.data.companyType) {
  1565. this.queryParamsLose.zfrQuery = "02";
  1566. } else if ("01" == response.data.companyType) {
  1567. this.queryParamsLose.zfrQuery = "04";
  1568. } else if ("02" == response.data.companyType) {
  1569. this.queryParamsLose.zfrQuery = "00";
  1570. }
  1571. });
  1572. });
  1573. },
  1574. mounted() {
  1575. this.columnQuery();
  1576. },
  1577. methods: {
  1578. /** 查询全部融资记录列表 */
  1579. getList() {
  1580. this.loading = true;
  1581. return listRecord(this.queryParams)
  1582. .then(response => {
  1583. this.companyId = response.msg;
  1584. this.recordList = response.data.records;
  1585. if (response.data.records[0]) {
  1586. this.companyType = response.data.records[0].companyType;
  1587. }
  1588. this.total = response.data.total;
  1589. this.loading = false;
  1590. return Promise.resolve(response);
  1591. })
  1592. .catch(response => {
  1593. this.loading = false;
  1594. return Promise.reject("error");
  1595. });
  1596. },
  1597. /** 查询融资中融资记录列表 */
  1598. getIngList() {
  1599. this.loadingIng = true;
  1600. this.queryParamsIng.zfrStatus = "00";
  1601. return listRecord(this.queryParamsIng)
  1602. .then(response => {
  1603. this.recordIngList = response.data.records;
  1604. this.totalIng = response.data.total;
  1605. this.loadingIng = false;
  1606. return Promise.resolve(response);
  1607. })
  1608. .catch(response => {
  1609. this.loading = false;
  1610. return Promise.reject("error");
  1611. });
  1612. },
  1613. /** 查询已放款融资记录列表 */
  1614. getEndList() {
  1615. this.loadingEnd = true;
  1616. this.queryParamsEnd.zfrStatus = "01";
  1617. return listRecord(this.queryParamsEnd)
  1618. .then(response => {
  1619. this.recordEndList = response.data.records;
  1620. this.totalIng = response.data.total;
  1621. this.loadingEnd = false;
  1622. return Promise.resolve(response);
  1623. })
  1624. .catch(response => {
  1625. this.loading = false;
  1626. return Promise.reject("error");
  1627. });
  1628. },
  1629. /** 查询融资失败融资记录列表 */
  1630. getLoseList() {
  1631. this.loadingLose = true;
  1632. this.queryParamsLose.zfrStatus = "02";
  1633. return listRecord(this.queryParamsLose)
  1634. .then(response => {
  1635. this.recordLoseList = response.data.records;
  1636. this.totalEnd = response.data.total;
  1637. this.loadingLose = false;
  1638. return Promise.resolve(response);
  1639. })
  1640. .catch(response => {
  1641. this.loading = false;
  1642. return Promise.reject("error");
  1643. });
  1644. },
  1645. // 取消按钮
  1646. cancel() {
  1647. this.open = false;
  1648. this.reset();
  1649. },
  1650. cancelRefuse(){
  1651. this.openRefuse = false;
  1652. this.reset();
  1653. },
  1654. // 表单重置
  1655. reset() {
  1656. this.form = {
  1657. zfrId: null,
  1658. zfrFinanceId: null,
  1659. zfrNumber: null,
  1660. zfrAmount: null,
  1661. zfrRate: null,
  1662. zfrHandler: null,
  1663. zfrRepaymentDate: null,
  1664. zfrApplyDate: null,
  1665. zfrLoanDate: null,
  1666. zfrApplyAmount: null,
  1667. zfrApplyType: null,
  1668. zfrStatus: "00",
  1669. zfrApproveStt: null,
  1670. zfrProfitSpare1: null,
  1671. zfrProfitSpare2: null,
  1672. zfrProfitSpare3: null,
  1673. zfrProfitSpare4: null,
  1674. zfrProfitSpare5: null,
  1675. zfrProfitSpare6: null,
  1676. zfrProfitSpare7: null,
  1677. zfrProfitSpare8: null,
  1678. zfrProfitSpare9: null,
  1679. createBy: null,
  1680. createTime: null,
  1681. updateBy: null,
  1682. updateTime: null,
  1683. zfrLoanFile: null
  1684. };
  1685. this.resetForm("form");
  1686. this.fileList = [];
  1687. this.noneBtnImg = false;
  1688. this.formRefuse = {
  1689. zfrReason: null
  1690. };
  1691. this.resetForm("formRefuse");
  1692. },
  1693. /** 全部搜索按钮操作 */
  1694. handleQuery() {
  1695. this.queryParams.pageNum = 1;
  1696. this.getList();
  1697. },
  1698. /** 全部重置按钮操作 */
  1699. resetQuery() {
  1700. this.resetForm("queryForm");
  1701. this.handleQuery();
  1702. },
  1703. /** 融资中搜索按钮操作 */
  1704. handleQueryIng() {
  1705. this.queryParamsIng.pageNum = 1;
  1706. this.getIngList();
  1707. },
  1708. /**融资中重置按钮操作 */
  1709. resetQueryIng() {
  1710. this.resetForm("queryFormIng");
  1711. this.handleQueryIng();
  1712. },
  1713. /** 已放款搜索按钮操作 */
  1714. handleQueryEnd() {
  1715. this.queryParamsEnd.pageNum = 1;
  1716. this.getEndList();
  1717. },
  1718. /**已放款重置按钮操作 */
  1719. resetQueryEnd() {
  1720. this.resetForm("queryFormEnd");
  1721. this.handleQueryEnd();
  1722. },
  1723. /** 融资失败搜索按钮操作 */
  1724. handleQueryLose() {
  1725. this.queryParamsLose.pageNum = 1;
  1726. this.getLoseList();
  1727. },
  1728. /*融资失败重置按钮操作 */
  1729. resetQueryLose() {
  1730. this.resetForm("queryFormLose");
  1731. this.handleQueryLose();
  1732. },
  1733. //全部 多选框选中数据
  1734. handleSelectionChange(selection) {
  1735. this.ids = selection.map(item => item.zfrId);
  1736. this.single = selection.length !== 1;
  1737. this.multiple = !selection.length;
  1738. },
  1739. // 融资中多选框选中数据
  1740. handleSelectionChangeIng(selection) {
  1741. this.ids = selection.map(item => item.zfrId);
  1742. this.single = selection.length !== 1;
  1743. this.multiple = !selection.length;
  1744. },
  1745. /** 字典翻译 */
  1746. statusFormat(row, column) {
  1747. return this.selectDictLabel(this.statusOptions, row.zfrStatus);
  1748. },
  1749. approveFormat(row, column) {
  1750. return this.selectDictLabel(this.approveOptions, row.zfrApproveStt);
  1751. },
  1752. /** 新增按钮操作 */
  1753. handleAdd() {
  1754. this.resetForm("queryForm");
  1755. this.resetForm("queryFormIng");
  1756. this.resetForm("queryFormEnd");
  1757. this.resetForm("queryFormLose");
  1758. Cookies.set("/financeRecord/addFinanceRecord/", this.$route.fullPath);
  1759. this.$router.push("/financeRecord/addFinanceRecord/");
  1760. // this.reset();
  1761. // this.open = true;
  1762. // this.title = "添加融资记录";
  1763. },
  1764. /** 修改按钮操作 */
  1765. handleUpdate(row) {
  1766. this.reset();
  1767. const zfrId = row.zfrId || this.ids;
  1768. getRecord(zfrId).then(response => {
  1769. this.form = response.data;
  1770. this.open = true;
  1771. this.title = "修改融资记录";
  1772. });
  1773. },
  1774. handleLoan(row) {
  1775. this.reset();
  1776. this.form.zfrId = row.zfrId || this.ids;
  1777. this.form.zfrAmount = row.zfrAmount;
  1778. this.$set(this.form, "zfrLoanAmount", row.zfrAmount);
  1779. // this.form.zfrloanAmount = row.zfrAmount;
  1780. this.form.zfrFinanceId = row.zfrFinanceId;
  1781. this.open = true;
  1782. this.title = "放款登记";
  1783. },
  1784. handleDetail(row) {
  1785. this.reset();
  1786. const zfrId = row.zfrId || this.ids;
  1787. this.resetForm("queryForm");
  1788. this.resetForm("queryFormIng");
  1789. this.resetForm("queryFormEnd");
  1790. this.resetForm("queryFormLose");
  1791. Cookies.set(
  1792. "/financeRecord/detailFinanceRecord/" + zfrId,
  1793. this.$route.fullPath
  1794. );
  1795. this.$router.push("/financeRecord/detailFinanceRecord/" + zfrId);
  1796. },
  1797. //盖章
  1798. seal(row) {
  1799. const zfrId = row.zfrId || this.ids;
  1800. this.resetForm("queryForm");
  1801. this.resetForm("queryFormIng");
  1802. this.resetForm("queryFormEnd");
  1803. this.resetForm("queryFormLose");
  1804. Cookies.set(
  1805. "/financeRecord/recordSeal/" + zfrId + "/",
  1806. this.$route.fullPath
  1807. );
  1808. this.$router.push({
  1809. path: "/financeRecord/recordSeal/" + zfrId + "/"
  1810. });
  1811. },
  1812. /** 提交审批 */
  1813. handleApprove(row) {
  1814. this.$confirm("确认要提交审批吗?", {
  1815. confirmButtonText: "确定",
  1816. cancelButtonText: "取消",
  1817. type: "warning"
  1818. })
  1819. .then(function() {
  1820. return examineApprove(row);
  1821. })
  1822. .then(() => {
  1823. this.getList();
  1824. this.msgSuccess("提交成功");
  1825. })
  1826. .catch(function() {});
  1827. },
  1828. /**拒绝放款 */
  1829. submitRefuse(zfrId,zfrFinanceId) {
  1830. debugger
  1831. this.reset();
  1832. this.formRefuse.zfrId = zfrId;
  1833. this.formRefuse.zfrFinanceId = zfrFinanceId;
  1834. this.openRefuse = true;
  1835. },
  1836. /** 提交按钮 */
  1837. submitForm() {
  1838. this.$refs["form"].validate(valid => {
  1839. if (valid) {
  1840. const loading = this.$loading({
  1841. lock: true,
  1842. text: "Loading",
  1843. spinner: "el-icon-loading",
  1844. background: "rgba(0, 0, 0, 0.7)"
  1845. });
  1846. this.form.zfrLoanFile = this.fileList;
  1847. this.form.TYPE = '00';
  1848. updateRecord(this.form)
  1849. .then(response => {
  1850. loading.close();
  1851. this.msgSuccess("放款登记成功");
  1852. this.open = false;
  1853. this.getList();
  1854. this.getIngList();
  1855. this.getEndList();
  1856. this.getLoseList();
  1857. })
  1858. .catch(response => {
  1859. loading.close();
  1860. });
  1861. }
  1862. });
  1863. },
  1864. /** 拒绝放款提交按钮 */
  1865. submitFormRefuse() {
  1866. this.$refs["formRefuse"].validate(valid => {
  1867. if (valid) {
  1868. const loading = this.$loading({
  1869. lock: true,
  1870. text: "Loading",
  1871. spinner: "el-icon-loading",
  1872. background: "rgba(0, 0, 0, 0.7)"
  1873. });
  1874. this.formRefuse.TYPE = '01';
  1875. updateRecord(this.formRefuse)
  1876. .then(response => {
  1877. loading.close();
  1878. this.msgSuccess("拒绝放款成功");
  1879. this.openRefuse = false;
  1880. this.open = false;
  1881. this.getList();
  1882. this.getIngList();
  1883. this.getEndList();
  1884. this.getLoseList();
  1885. })
  1886. .catch(response => {
  1887. loading.close();
  1888. });
  1889. }
  1890. });
  1891. },
  1892. /** 上传图片 */
  1893. submitUpload() {
  1894. this.$refs.upload.submit();
  1895. },
  1896. beforeUpload(files) {
  1897. var testmsg = files.name.substring(files.name.lastIndexOf(".") + 1);
  1898. const extension = testmsg === "jpg";
  1899. const extension2 = testmsg === "jpeg";
  1900. const extension3 = testmsg === "png";
  1901. const extension4 = testmsg === "JPG";
  1902. const extension5 = testmsg === "JPEG";
  1903. const extension6 = testmsg === "PNG";
  1904. if (
  1905. !extension &&
  1906. !extension2 &&
  1907. !extension3 &&
  1908. !extension4 &&
  1909. !extension5 &&
  1910. !extension6
  1911. ) {
  1912. this.$message.warning(`请选择图片格式文件`);
  1913. }
  1914. return extension || extension2 || extension3;
  1915. },
  1916. //文件移除提示
  1917. handleRemove(file, fileList) {
  1918. console.log(file);
  1919. for (let i = 0; i < this.fileList.length; i++) {
  1920. if (file.uid == this.fileList[i].uid) {
  1921. this.fileList.splice(i, 1);
  1922. break;
  1923. }
  1924. }
  1925. this.noneBtnImg = fileList.length >= this.limitCountImg;
  1926. //return this.$confirm(`确定移除 ${ file.name }?`);
  1927. },
  1928. dealImgChange(file, fileList) {
  1929. this.noneBtnImg = fileList.length >= this.limitCountImg;
  1930. },
  1931. handleExceed(files, fileList) {
  1932. this.$message.warning(`当前限制选择 1 个文件`);
  1933. },
  1934. handlePictureCardPreview(file) {
  1935. this.dialogImageUrl = file.url;
  1936. this.dialogVisible = true;
  1937. },
  1938. //手动上传文件触发
  1939. httpRequest(param) {
  1940. let fileObj = param.file; // 相当于input里取得的files
  1941. let fd = new FormData(); // FormData 对象
  1942. fd.append("file", fileObj); // 文件对象
  1943. fd.append("fileType", "00"); //文件类型
  1944. const loading = this.$loading({
  1945. lock: true,
  1946. text: "Loading",
  1947. spinner: "el-icon-loading",
  1948. background: "rgba(0, 0, 0, 0.7)"
  1949. });
  1950. uploadFileNew(fd)
  1951. .then(response => {
  1952. if (response) {
  1953. // this.form.eeiImgUrl = response.url
  1954. this.fileList.push({
  1955. uid: response.fileId,
  1956. url: response.url + "/" + getToken()
  1957. });
  1958. console.log(response.url);
  1959. setTimeout(() => {
  1960. loading.close();
  1961. }, 2000);
  1962. }
  1963. })
  1964. .catch(response => {
  1965. let uid = fileObj.uid; // 关键作用代码,去除文件列表失败文件
  1966. let idx = this.$refs.upload.uploadFiles.findIndex(
  1967. (item) => item.uid === uid
  1968. ); // 关键作用代码,去除文件列表失败文件(uploadFiles为el-upload中的ref值)
  1969. this.$refs.upload.uploadFiles.splice(idx, 1); // 关键作用代码,去除文件列表失败文件
  1970. // this.showBtnImg = true;
  1971. this.noneBtnImg = false;
  1972. loading.close();
  1973. });
  1974. },
  1975. /** 删除按钮操作 */
  1976. handleDelete(row) {
  1977. const zfrIds = row.zfrId || this.ids;
  1978. this.$confirm(
  1979. '是否确认删除融资记录编号为"' + zfrIds + '"的数据项?',
  1980. "警告",
  1981. {
  1982. confirmButtonText: "确定",
  1983. cancelButtonText: "取消",
  1984. type: "warning"
  1985. }
  1986. )
  1987. .then(function() {
  1988. return delRecord(zfrIds);
  1989. })
  1990. .then(() => {
  1991. this.getList();
  1992. this.msgSuccess("删除成功");
  1993. });
  1994. },
  1995. changeRate(e, input) {
  1996. e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
  1997. this.input = e.target.value
  1998. this.form.zfrLoanAmount = this.input
  1999. },
  2000. /* 金额格式化 */
  2001. moneyFormat(row, column, cellValue) {
  2002. if (cellValue == null || cellValue == undefined || cellValue == "") {
  2003. cellValue = "0.00";
  2004. }
  2005. cellValue += "";
  2006. if (!cellValue.includes(".")) {
  2007. cellValue += ".00";
  2008. }
  2009. return cellValue
  2010. .replace(/(\d)(?=(\d{3})+\.)/g, function($0, $1) {
  2011. return $1 + ",";
  2012. })
  2013. .replace(/\.$/, "");
  2014. },
  2015. //获取当前客户是否之前设置过列展示隐藏
  2016. columnQuery() {
  2017. //获取页面路径
  2018. var psfPagePath = window.location.pathname;
  2019. //用请求后台的url作为唯一标识
  2020. var psfTableName = this.tableId;
  2021. var columnForm = {};
  2022. columnForm.psfPagePath = psfPagePath;
  2023. columnForm.psfTableName = psfTableName;
  2024. columnQuery(columnForm).then(response => {
  2025. if (response.data && response.data.psfShowData) {
  2026. this.checkList = response.data.psfShowData;
  2027. }
  2028. this.filter();
  2029. });
  2030. },
  2031. //控制隐藏显示的函数
  2032. filter(checkList) {
  2033. if (this.activeName == "first") {
  2034. if (!!checkList) {
  2035. this.checkList = checkList;
  2036. }
  2037. this.columnfilter(
  2038. this.firstSet,
  2039. this.checkList,
  2040. this.tableList,
  2041. this.uncheckList
  2042. );
  2043. } else if (this.activeName == "second") {
  2044. if (!!checkList) {
  2045. this.checkListOne = checkList;
  2046. }
  2047. this.columnfilter(
  2048. this.firstSetOne,
  2049. this.checkListOne,
  2050. this.tableListOne,
  2051. this.uncheckListOne
  2052. );
  2053. } else if (this.activeName == "third") {
  2054. if (!!checkList) {
  2055. this.checkListTwo = checkList;
  2056. }
  2057. this.columnfilter(
  2058. this.firstSetTwo,
  2059. this.checkListTwo,
  2060. this.tableListTwo,
  2061. this.uncheckListTwo
  2062. );
  2063. } else if (this.activeName == "fourth") {
  2064. if (!!checkList) {
  2065. this.checkListThree = checkList;
  2066. }
  2067. this.columnfilter(
  2068. this.firstSetThree,
  2069. this.checkListThree,
  2070. this.tableListThree,
  2071. this.uncheckListThree
  2072. );
  2073. }
  2074. },
  2075. //获取当前客户是否之前设置过列展示隐藏
  2076. columnQueryOne() {
  2077. //获取页面路径
  2078. var psfPagePath = window.location.pathname;
  2079. //用请求后台的url作为唯一标识
  2080. var psfTableName = this.tableIdOne;
  2081. var columnForm = {};
  2082. columnForm.psfPagePath = psfPagePath;
  2083. columnForm.psfTableName = psfTableName;
  2084. columnQuery(columnForm).then(response => {
  2085. if (response.data && response.data.psfShowData) {
  2086. this.checkListOne = response.data.psfShowData;
  2087. }
  2088. this.filter();
  2089. });
  2090. },
  2091. //获取当前客户是否之前设置过列展示隐藏
  2092. columnQueryTwo() {
  2093. //获取页面路径
  2094. var psfPagePath = window.location.pathname;
  2095. //用请求后台的url作为唯一标识
  2096. var psfTableName = this.tableIdTwo;
  2097. var columnForm = {};
  2098. columnForm.psfPagePath = psfPagePath;
  2099. columnForm.psfTableName = psfTableName;
  2100. columnQuery(columnForm).then(response => {
  2101. if (response.data && response.data.psfShowData) {
  2102. this.checkListTwo = response.data.psfShowData;
  2103. }
  2104. this.filter();
  2105. });
  2106. },
  2107. //获取当前客户是否之前设置过列展示隐藏
  2108. columnQueryThree() {
  2109. //获取页面路径
  2110. var psfPagePath = window.location.pathname;
  2111. //用请求后台的url作为唯一标识
  2112. var psfTableName = this.tableIdThree;
  2113. var columnForm = {};
  2114. columnForm.psfPagePath = psfPagePath;
  2115. columnForm.psfTableName = psfTableName;
  2116. columnQuery(columnForm).then(response => {
  2117. if (response.data && response.data.psfShowData) {
  2118. this.checkListThree = response.data.psfShowData;
  2119. }
  2120. this.filter();
  2121. });
  2122. },
  2123. /** 导出按钮操作 */
  2124. handleExport(row) {
  2125. const zfrFinanceId = row.zfrFinanceId || this.ids;
  2126. this.download(
  2127. "sc-service/financeRecord/export/" + zfrFinanceId,
  2128. {},
  2129. `融资管理附件${this.parseTime(new Date(), "{y}{m}{d}{h}{m}{s}")}.zip`
  2130. );
  2131. },
  2132. columnfilter(firstSet, checkList, tableList, uncheckList) {
  2133. if (this.activeName == "first") {
  2134. firstSet = this.firstSet;
  2135. } else if (this.activeName == "second") {
  2136. firstSet = this.firstSetOne;
  2137. } else if (this.activeName == "third") {
  2138. firstSet = this.firstSetTwo;
  2139. } else if (this.activeName == "fourth") {
  2140. firstSet = this.firstSetThree;
  2141. }
  2142. if (firstSet && checkList.length == 0) {
  2143. this.$message.warning("配置显示列不能为空!");
  2144. return;
  2145. }
  2146. if (this.activeName == "first") {
  2147. this.firstSet = true;
  2148. } else if (this.activeName == "second") {
  2149. this.firstSetOne = true;
  2150. } else if (this.activeName == "third") {
  2151. this.firstSetTwo = true;
  2152. } else if (this.activeName == "fourth") {
  2153. this.firstSetThree = true;
  2154. }
  2155. //初始化数据
  2156. if (checkList.length == 0) {
  2157. for (let index in tableList) {
  2158. let table = tableList[index];
  2159. checkList.push(table.label);
  2160. }
  2161. }
  2162. for (let index in tableList) {
  2163. let table = tableList[index];
  2164. uncheckList[table.label] = true;
  2165. }
  2166. //数据准备
  2167. for (let item in uncheckList) {
  2168. uncheckList[item] = false;
  2169. }
  2170. //数据处理
  2171. for (let index in checkList) {
  2172. let name = checkList[index];
  2173. if (name in uncheckList) {
  2174. uncheckList[name] = true;
  2175. }
  2176. }
  2177. this.$forceUpdate();
  2178. },
  2179. handleClick(tab, event) {
  2180. if (this.activeName == "first") {
  2181. this.columnQuery();
  2182. } else if (this.activeName == "second") {
  2183. this.columnQueryOne();
  2184. } else if (this.activeName == "third") {
  2185. this.columnQueryTwo();
  2186. } else if (this.activeName == "fourth") {
  2187. this.columnQueryThree();
  2188. }
  2189. },
  2190. //查看流程
  2191. handleFlowable(row){
  2192. const zfrId = row.zfrId
  2193. this.hisTaskForm = true;
  2194. let form = {}
  2195. form.zfiId = zfrId
  2196. console.log(form)
  2197. approvalProcess(form).then((response) => {
  2198. this.histaskList = response.data;
  2199. })
  2200. },
  2201. }
  2202. };
  2203. </script>
  2204. <style>
  2205. .showUoload .el-upload--picture-card {
  2206. width: 110px;
  2207. height: 110px;
  2208. line-height: 110px;
  2209. }
  2210. .uoloadSty .el-upload--picture-card {
  2211. display: none;
  2212. }
  2213. </style><style lang="scss" scoped>
  2214. ::v-deep .el-tabs__item {
  2215. width: 105px;
  2216. height: 55px;
  2217. padding: 0;
  2218. line-height: 55px;
  2219. text-align: center;
  2220. font-size: 16px;
  2221. }
  2222. .zap-credit__content {
  2223. position: relative;
  2224. padding: 0 13px 25px;
  2225. background-color: #ffffff;
  2226. }
  2227. .zap-credit__tabs {
  2228. position: relative;
  2229. }
  2230. .zap-credit__buttons {
  2231. position: absolute;
  2232. top: 0;
  2233. right: 13px;
  2234. display: flex;
  2235. align-items: center;
  2236. height: 55px;
  2237. z-index: 99;
  2238. }
  2239. .zap-contract-add__upload {
  2240. display: flex;
  2241. flex-direction: column;
  2242. justify-content: center;
  2243. align-items: center;
  2244. width: 148px;
  2245. height: 148px;
  2246. border: dashed 1px #e0e0e0;
  2247. background-color: #f4f5f6;
  2248. }
  2249. ::v-deep .el-upload--picture-card {
  2250. border: none;
  2251. }
  2252. ::v-deep .el-icon-upload {
  2253. font-size: 32px;
  2254. color: #02c464;
  2255. }
  2256. .zap-upload__text {
  2257. line-height: 1;
  2258. margin-top: 12px;
  2259. font-size: 12px;
  2260. color: #333333;
  2261. }
  2262. .zap-contract-add__tip {
  2263. width: 140px;
  2264. margin-top: 15px;
  2265. line-height: 19px;
  2266. font-size: 12px;
  2267. color: #999999;
  2268. }
  2269. </style>