repayment.vue 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  1. <template>
  2. <div class="app-container zap-main">
  3. <search-bar
  4. v-if="activeIndex === '0'"
  5. :checkList="checkList"
  6. :tableList="tableList"
  7. :selfDom="selfDom"
  8. :tableId="tableId"
  9. @query="handleQuery"
  10. @reset="resetQuery"
  11. >
  12. <el-form :model="queryParams" ref="queryForm" v-show="showSearch" label-width="80px">
  13. <el-row type="flex" style="flex-wrap:wrap;">
  14. <el-form-item class="zap-flex-1" label="类型" prop="type" size="medium">
  15. <el-select
  16. class="zap-form-input--samll"
  17. v-model="queryParams.type"
  18. placeholder="请选择查询字段"
  19. clearable
  20. >
  21. <el-option
  22. v-for="dict in typeOptions"
  23. :key="dict.dictValue"
  24. :label="dict.dictLabel"
  25. :value="dict.dictValue"
  26. />
  27. </el-select>
  28. </el-form-item>
  29. <el-form-item class="zap-flex-1 ml24" prop="value" size="medium" label-width="0">
  30. <el-input
  31. class="zap-form-input--default"
  32. v-model="queryParams.value"
  33. placeholder="请输入关键字模糊查询"
  34. clearable
  35. maxlength="30"
  36. @keyup.enter.native="handleQuery"
  37. />
  38. </el-form-item>
  39. <el-form-item class="zap-flex-1" label="到期日期" prop="repaymentDate" size="medium">
  40. <el-date-picker
  41. class="zap-form-input--medium"
  42. clearable
  43. unlink-panels
  44. v-model="queryParams.repaymentDate"
  45. value-format="yyyy-MM-dd"
  46. format="yyyy-MM-dd"
  47. type="daterange"
  48. range-separator="-"
  49. start-placeholder="开始日期"
  50. end-placeholder="结束日期"
  51. ></el-date-picker>
  52. </el-form-item>
  53. </el-row>
  54. </el-form>
  55. <el-form
  56. :model="amountQueryParams"
  57. ref="amountQueryForm"
  58. :inline="true"
  59. v-show="showSearch"
  60. label-width="auto"
  61. >
  62. <el-row type="flex" align="middle">
  63. <div class="zap-repaid">
  64. <div class="zap-repaid__select" prop="day">
  65. <el-select v-model="amountQueryParams.day" size="mini" @change="change">
  66. <el-option
  67. v-for="dict in dayOptions"
  68. :key="dict.dictValue"
  69. :label="dict.dictLabel"
  70. :value="dict.dictValue"
  71. />
  72. </el-select>
  73. <span class="zap-repaid__label">待还款</span>
  74. </div>
  75. <div class="zap-repaid__amount">¥{{amount}}</div>
  76. </div>
  77. <div class="zap-total">
  78. <div class="zap-total__label">总待还款</div>
  79. <div class="zap-total__amount">¥{{sumAmount}}</div>
  80. </div>
  81. </el-row>
  82. </el-form>
  83. </search-bar>
  84. <search-bar
  85. v-if="activeIndex === '1'"
  86. :checkList="checkList"
  87. :tableList="tableList"
  88. :selfDom="selfDom"
  89. :tableId="tableId"
  90. @query="secondQuery"
  91. @reset="resetSecondQuery"
  92. >
  93. <el-form
  94. :model="unRepayment"
  95. ref="queryForm1"
  96. :inline="true"
  97. v-show="showSearch"
  98. label-width="auto"
  99. >
  100. <el-form-item label="类型" prop="type" size="large">
  101. <el-select v-model="unRepayment.type" placeholder="请选择查询字段" clearable>
  102. <el-option
  103. v-for="dict in typeOptions"
  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="value" size="large">
  111. <el-input
  112. v-model="unRepayment.value"
  113. placeholder="请输入关键字模糊查询"
  114. clearable
  115. maxlength="30"
  116. @keyup.enter.native="secondQuery"
  117. />
  118. </el-form-item>
  119. <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
  120. <el-date-picker
  121. clearable
  122. unlink-panels
  123. v-model="unRepayment.repaymentDate"
  124. value-format="yyyy-MM-dd"
  125. format="yyyy-MM-dd"
  126. type="daterange"
  127. range-separator="-"
  128. start-placeholder="开始日期"
  129. end-placeholder="结束日期"
  130. ></el-date-picker>
  131. </el-form-item>
  132. </el-form>
  133. </search-bar>
  134. <search-bar
  135. v-if="activeIndex === '2'"
  136. :checkList="checkList"
  137. :tableList="tableList"
  138. :selfDom="selfDom"
  139. :tableId="tableId"
  140. @query="thirdQuery"
  141. @reset="resetThirdQuery"
  142. >
  143. <el-form
  144. :model="repayment"
  145. ref="queryForm2"
  146. :inline="true"
  147. v-show="showSearch"
  148. label-width="auto"
  149. >
  150. <el-form-item label="类型" prop="type" size="large">
  151. <el-select v-model="repayment.type" placeholder="请选择查询字段" clearable prop="type">
  152. <el-option
  153. v-for="dict in typeOptions"
  154. :key="dict.dictValue"
  155. :label="dict.dictLabel"
  156. :value="dict.dictValue"
  157. />
  158. </el-select>
  159. </el-form-item>
  160. <el-form-item prop="value" size="large">
  161. <el-input
  162. v-model="repayment.value"
  163. prop="value"
  164. placeholder="请输入关键字模糊查询"
  165. clearable
  166. maxlength="30"
  167. @keyup.enter.native="thirdQuery"
  168. />
  169. </el-form-item>
  170. <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
  171. <el-date-picker
  172. clearable
  173. unlink-panels
  174. v-model="repayment.repaymentDate"
  175. value-format="yyyy-MM-dd"
  176. format="yyyy-MM-dd"
  177. type="daterange"
  178. range-separator="-"
  179. start-placeholder="开始日期"
  180. end-placeholder="结束日期"
  181. ></el-date-picker>
  182. </el-form-item>
  183. </el-form>
  184. </search-bar>
  185. <search-bar
  186. v-if="activeIndex === '3'"
  187. :checkList="checkList"
  188. :tableList="tableList"
  189. :selfDom="selfDom"
  190. :tableId="tableId"
  191. @query="fouthQuery"
  192. @reset="resetFouthQuery"
  193. >
  194. <el-form
  195. :model="overdue"
  196. ref="queryForm3"
  197. :inline="true"
  198. v-show="showSearch"
  199. label-width="auto"
  200. >
  201. <el-form-item label="类型" prop="type" size="large">
  202. <el-select v-model=" overdue.type" placeholder="请选择查询字段" clearable prop="type">
  203. <el-option
  204. v-for="dict in typeOptions"
  205. :key="dict.dictValue"
  206. :label="dict.dictLabel"
  207. :value="dict.dictValue"
  208. />
  209. </el-select>
  210. </el-form-item>
  211. <el-form-item prop="value" size="large">
  212. <el-input
  213. v-model=" overdue.value"
  214. prop="value"
  215. placeholder="请输入关键字模糊查询"
  216. clearable
  217. maxlength="30"
  218. @keyup.enter.native="fouthQuery"
  219. />
  220. </el-form-item>
  221. <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
  222. <el-date-picker
  223. clearable
  224. unlink-panels
  225. v-model=" overdue.repaymentDate"
  226. value-format="yyyy-MM-dd"
  227. format="yyyy-MM-dd"
  228. type="daterange"
  229. range-separator="-"
  230. start-placeholder="开始日期"
  231. end-placeholder="结束日期"
  232. ></el-date-picker>
  233. </el-form-item>
  234. </el-form>
  235. </search-bar>
  236. <el-tabs class="zap-bg zap-margin-top" v-model="activeIndex">
  237. <el-tab-pane label="全部">
  238. <div class="zap-form">
  239. <div>
  240. <el-button
  241. type="primary"
  242. icon="el-icon-export"
  243. @click="handleExport"
  244. v-hasPermi="['service:repayment:export']"
  245. >导出待还款数据</el-button>
  246. </div>
  247. <el-table
  248. v-loading="loading"
  249. :data="allRepaymentList"
  250. @selection-change="handleSelectionChange"
  251. stripe
  252. border
  253. >
  254. <el-table-column label="序号" type="index" width="50" align="center">
  255. <template slot-scope="scope">
  256. <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
  257. </template>
  258. </el-table-column>
  259. <el-table-column
  260. label="融资编号"
  261. align="center"
  262. prop="zfrNumber"
  263. :show-overflow-tooltip="true"
  264. v-if="uncheckList.zfrNumber"
  265. />
  266. <el-table-column
  267. label="融信编号"
  268. align="center"
  269. prop="zfiNumber"
  270. :show-overflow-tooltip="true"
  271. v-if="uncheckList.zfiNumber"
  272. />
  273. <el-table-column
  274. label="最终还款方"
  275. align="center"
  276. prop="core"
  277. :show-overflow-tooltip="true"
  278. v-if="uncheckList.core"
  279. />
  280. <el-table-column
  281. label="融资方"
  282. align="center"
  283. prop="supplier"
  284. :show-overflow-tooltip="true"
  285. v-if="uncheckList.supplier"
  286. />
  287. <el-table-column
  288. label="资金方"
  289. align="center"
  290. prop="scyName"
  291. :show-overflow-tooltip="true"
  292. v-if="uncheckList.scyName"
  293. />
  294. <el-table-column
  295. label="还款金额(元)"
  296. align="center"
  297. prop="zfrLoanAmount"
  298. :formatter="moneyFormat"
  299. :show-overflow-tooltip="true"
  300. v-if="uncheckList.zfrLoanAmount"
  301. />
  302. <el-table-column
  303. label="还款银行账户"
  304. align="center"
  305. prop="zfpcrAccount"
  306. :show-overflow-tooltip="true"
  307. v-if="uncheckList.zfpcrAccount"
  308. />
  309. <el-table-column
  310. label="实际还款日期"
  311. align="center"
  312. prop="zfrPayDate"
  313. :show-overflow-tooltip="true"
  314. v-if="uncheckList.zfrPayDate"
  315. />
  316. <el-table-column
  317. label="承诺还款日期"
  318. align="center"
  319. prop="zfrRepaymentDate"
  320. :show-overflow-tooltip="true"
  321. v-if="uncheckList.zfrRepaymentDate"
  322. />
  323. <el-table-column
  324. label="还款状态"
  325. align="center"
  326. prop="zfrApplyStatus"
  327. :formatter="applyStatusFormat"
  328. :show-overflow-tooltip="true"
  329. v-if="uncheckList.zfrApplyStatus"
  330. />
  331. <el-table-column
  332. label="操作"
  333. align="center"
  334. class-name="small-padding fixed-width"
  335. fixed="right"
  336. width="200px"
  337. >
  338. <template slot-scope="scope">
  339. <el-button
  340. class="zap-button-plain"
  341. size="mini"
  342. type="text"
  343. @click="handleInfo(scope.row)"
  344. v-hasPermi="['service:repayment:query']"
  345. >详情</el-button>
  346. <el-button
  347. class="zap-button-warning"
  348. size="mini"
  349. type="text"
  350. @click="handleDown(scope.row)"
  351. v-hasPermi="['service:repayment:down']"
  352. >下载</el-button>
  353. <el-button
  354. class="zap-button-primary"
  355. size="mini"
  356. type="text"
  357. @click="handleUp(scope.row)"
  358. v-hasPermi="['service:repayment:edit']"
  359. v-if="scope.row.zfrApplyStatus != '01' && (company.scyType == '00'||
  360. company.scyType == '03')"
  361. >还款登记</el-button>
  362. </template>
  363. </el-table-column>
  364. </el-table>
  365. <statistical-data>
  366. <span class="label">
  367. 总合计:
  368. <span class="value">¥{{allAmount}}</span>
  369. </span>
  370. <span class="label">待还款:¥{{dhkAmount}}</span>
  371. <span class="label">已还款:¥{{yhkAmount}}</span>
  372. <span class="label">已逾期:¥{{yyqAmount}}</span>
  373. </statistical-data>
  374. <pagination
  375. v-show="total>0"
  376. :total="total"
  377. :page.sync="queryParams.pageNum"
  378. :limit.sync="queryParams.pageSize"
  379. @pagination="getList"
  380. />
  381. </div>
  382. </el-tab-pane>
  383. <el-tab-pane label="待还款">
  384. <div class="zap-content">
  385. <el-button
  386. type="primary"
  387. icon="el-icon-export"
  388. @click="handleExport"
  389. v-hasPermi="['service:repayment:export']"
  390. >导出待还款数据</el-button>
  391. </div>
  392. <el-table
  393. v-loading="loading"
  394. :data="unRepaymentList"
  395. @selection-change="handleSelectionChange"
  396. border
  397. stripe
  398. >
  399. <el-table-column label="序号" type="index" width="50" align="center">
  400. <template slot-scope="scope">
  401. <span>{{(unRepayment.pageNum - 1) * unRepayment.pageSize + scope.$index + 1}}</span>
  402. </template>
  403. </el-table-column>
  404. <el-table-column
  405. label="融资编号"
  406. align="center"
  407. prop="zfrNumber"
  408. :show-overflow-tooltip="true"
  409. v-if="uncheckList.zfrNumber"
  410. />
  411. <el-table-column
  412. label="融信编号"
  413. align="center"
  414. prop="zfiNumber"
  415. :show-overflow-tooltip="true"
  416. v-if="uncheckList.zfiNumber"
  417. />
  418. <el-table-column
  419. label="最终还款方"
  420. align="center"
  421. prop="core"
  422. :show-overflow-tooltip="true"
  423. v-if="uncheckList.core"
  424. />
  425. <el-table-column
  426. label="融资方"
  427. align="center"
  428. prop="supplier"
  429. :show-overflow-tooltip="true"
  430. v-if="uncheckList.supplier"
  431. />
  432. <el-table-column
  433. label="资金方"
  434. align="center"
  435. prop="scyName"
  436. :show-overflow-tooltip="true"
  437. v-if="uncheckList.scyName"
  438. />
  439. <el-table-column
  440. label="还款金额(元)"
  441. align="center"
  442. prop="zfrLoanAmount"
  443. :show-overflow-tooltip="true"
  444. v-if="uncheckList.zfrLoanAmount"
  445. />
  446. <el-table-column
  447. label="还款银行账户"
  448. align="center"
  449. prop="zfpcrAccount"
  450. :show-overflow-tooltip="true"
  451. v-if="uncheckList.zfpcrAccount"
  452. />
  453. <el-table-column
  454. label="实际还款日期"
  455. align="center"
  456. prop="zfrPayDate"
  457. :show-overflow-tooltip="true"
  458. v-if="uncheckList.zfrPayDate"
  459. />
  460. <el-table-column
  461. label="承诺还款日期"
  462. align="center"
  463. prop="zfrRepaymentDate"
  464. :show-overflow-tooltip="true"
  465. v-if="uncheckList.zfrRepaymentDate"
  466. />
  467. <el-table-column
  468. label="还款状态"
  469. align="center"
  470. prop="zfrApplyStatus"
  471. :formatter="applyStatusFormat"
  472. :show-overflow-tooltip="true"
  473. v-if="uncheckList.zfrApplyStatus"
  474. />
  475. <el-table-column
  476. label="操作"
  477. align="center"
  478. class-name="small-padding fixed-width"
  479. fixed="right"
  480. >
  481. <template slot-scope="scope">
  482. <el-button
  483. class="zap-button-plain"
  484. size="mini"
  485. type="text"
  486. @click="handleInfo(scope.row)"
  487. v-hasPermi="['service:repayment:query']"
  488. >详情</el-button>
  489. <el-button
  490. class="zap-button-warning"
  491. size="mini"
  492. type="text"
  493. @click="handleDown(scope.row)"
  494. v-hasPermi="['service:repayment:down']"
  495. >下载</el-button>
  496. <el-button
  497. class="zap-button-primary"
  498. size="mini"
  499. type="text"
  500. @click="handleUp(scope.row)"
  501. v-hasPermi="['service:repayment:edit']"
  502. v-if="scope.row.zfrApplyStatus != '01'&&(company.scyType == '00'||
  503. company.scyType == '03')"
  504. >还款登记</el-button>
  505. </template>
  506. </el-table-column>
  507. </el-table>
  508. <statistical-data>
  509. <span class="label">
  510. 总合计:
  511. <span class="value">¥{{allAmount}}</span>
  512. </span>
  513. <span class="label">待还款:¥{{dhkAmount}}</span>
  514. </statistical-data>
  515. <pagination
  516. v-show="total>0"
  517. :total="total1"
  518. :page.sync="unRepayment.pageNum"
  519. :limit.sync="unRepayment.pageSize"
  520. @pagination="getList"
  521. />
  522. </el-tab-pane>
  523. <el-tab-pane label="已还款">
  524. <div class="zap-content">
  525. <el-button
  526. type="primary"
  527. icon="el-icon-export"
  528. @click="handleExport"
  529. v-hasPermi="['service:repayment:export']"
  530. >导出待还款数据</el-button>
  531. </div>
  532. <el-table
  533. v-loading="loading"
  534. :data="repaymentList"
  535. @selection-change="handleSelectionChange"
  536. border
  537. stripe
  538. >
  539. <el-table-column label="序号" type="index" width="50" align="center">
  540. <template slot-scope="scope">
  541. <span>{{(repayment.pageNum - 1) * repayment.pageSize + scope.$index + 1}}</span>
  542. </template>
  543. </el-table-column>
  544. <el-table-column
  545. label="融资编号"
  546. align="center"
  547. prop="zfrNumber"
  548. :show-overflow-tooltip="true"
  549. v-if="uncheckList.zfrNumber"
  550. />
  551. <el-table-column
  552. label="融信编号"
  553. align="center"
  554. prop="zfiNumber"
  555. :show-overflow-tooltip="true"
  556. v-if="uncheckList.zfiNumber"
  557. />
  558. <el-table-column
  559. label="最终还款方"
  560. align="center"
  561. prop="core"
  562. :show-overflow-tooltip="true"
  563. v-if="uncheckList.core"
  564. />
  565. <el-table-column
  566. label="融资方"
  567. align="center"
  568. prop="supplier"
  569. :show-overflow-tooltip="true"
  570. v-if="uncheckList.supplier"
  571. />
  572. <el-table-column
  573. label="资金方"
  574. align="center"
  575. prop="scyName"
  576. :show-overflow-tooltip="true"
  577. v-if="uncheckList.scyName"
  578. />
  579. <el-table-column
  580. label="还款金额(元)"
  581. align="center"
  582. prop="zfrLoanAmount"
  583. :show-overflow-tooltip="true"
  584. v-if="uncheckList.zfrLoanAmount"
  585. />
  586. <el-table-column
  587. label="还款银行账户"
  588. align="center"
  589. prop="zfpcrAccount"
  590. :show-overflow-tooltip="true"
  591. v-if="uncheckList.zfpcrAccount"
  592. />
  593. <el-table-column
  594. label="实际还款日期"
  595. align="center"
  596. prop="zfrPayDate"
  597. :show-overflow-tooltip="true"
  598. v-if="uncheckList.zfrPayDate"
  599. />
  600. <el-table-column
  601. label="承诺还款日期"
  602. align="center"
  603. prop="zfrRepaymentDate"
  604. :show-overflow-tooltip="true"
  605. v-if="uncheckList.zfrRepaymentDate"
  606. />
  607. <el-table-column
  608. label="还款状态"
  609. align="center"
  610. prop="zfrApplyStatus"
  611. :formatter="applyStatusFormat"
  612. :show-overflow-tooltip="true"
  613. v-if="uncheckList.zfrApplyStatus"
  614. />
  615. <el-table-column
  616. label="操作"
  617. align="center"
  618. class-name="small-padding fixed-width"
  619. fixed="right"
  620. >
  621. <template slot-scope="scope">
  622. <el-button
  623. class="zap-button-plain"
  624. size="mini"
  625. type="text"
  626. @click="handleInfo(scope.row)"
  627. v-hasPermi="['service:repayment:query']"
  628. >详情</el-button>
  629. <el-button
  630. class="zap-button-warning"
  631. size="mini"
  632. type="text"
  633. @click="handleDown(scope.row)"
  634. v-hasPermi="['service:repayment:down']"
  635. >下载</el-button>
  636. </template>
  637. </el-table-column>
  638. </el-table>
  639. <statistical-data>
  640. <span class="label">
  641. 总合计:
  642. <span class="value">¥{{allAmount}}</span>
  643. </span>
  644. <span class="label">已还款:¥{{yhkAmount}}</span>
  645. </statistical-data>
  646. <pagination
  647. v-show="total>0"
  648. :total="total2"
  649. :page.sync="repayment.pageNum"
  650. :limit.sync="repayment.pageSize"
  651. @pagination="getList"
  652. />
  653. </el-tab-pane>
  654. <el-tab-pane label="已逾期">
  655. <div class="zap-content">
  656. <el-button
  657. type="primary"
  658. icon="el-icon-export"
  659. @click="handleExport"
  660. v-hasPermi="['service:repayment:export']"
  661. >导出待还款数据</el-button>
  662. </div>
  663. <el-table
  664. v-loading="loading"
  665. :data="overdueList"
  666. @selection-change="handleSelectionChange"
  667. border
  668. stripe
  669. >
  670. <el-table-column label="序号" type="index" width="50" align="center">
  671. <template slot-scope="scope">
  672. <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
  673. </template>
  674. </el-table-column>
  675. <el-table-column
  676. label="融资编号"
  677. align="center"
  678. prop="zfrNumber"
  679. :show-overflow-tooltip="true"
  680. v-if="uncheckList.zfrNumber"
  681. />
  682. <el-table-column
  683. label="融信编号"
  684. align="center"
  685. prop="zfiNumber"
  686. :show-overflow-tooltip="true"
  687. v-if="uncheckList.zfiNumber"
  688. />
  689. <el-table-column
  690. label="最终还款方"
  691. align="center"
  692. prop="core"
  693. :show-overflow-tooltip="true"
  694. v-if="uncheckList.core"
  695. />
  696. <el-table-column
  697. label="融资方"
  698. align="center"
  699. prop="supplier"
  700. :show-overflow-tooltip="true"
  701. v-if="uncheckList.supplier"
  702. />
  703. <el-table-column
  704. label="资金方"
  705. align="center"
  706. prop="scyName"
  707. :show-overflow-tooltip="true"
  708. v-if="uncheckList.scyName"
  709. />
  710. <el-table-column
  711. label="还款金额(元)"
  712. align="center"
  713. prop="zfrLoanAmount"
  714. :show-overflow-tooltip="true"
  715. v-if="uncheckList.zfrLoanAmount"
  716. />
  717. <el-table-column
  718. label="还款银行账户"
  719. align="center"
  720. prop="zfpcrAccount"
  721. :show-overflow-tooltip="true"
  722. v-if="uncheckList.zfpcrAccount"
  723. />
  724. <el-table-column
  725. label="实际还款日期"
  726. align="center"
  727. prop="zfrPayDate"
  728. :show-overflow-tooltip="true"
  729. v-if="uncheckList.zfrPayDate"
  730. />
  731. <el-table-column
  732. label="承诺还款日期"
  733. align="center"
  734. prop="zfrRepaymentDate"
  735. :show-overflow-tooltip="true"
  736. v-if="uncheckList.zfrRepaymentDate"
  737. />
  738. <el-table-column
  739. label="还款状态"
  740. align="center"
  741. prop="zfrApplyStatus"
  742. :formatter="applyStatusFormat"
  743. :show-overflow-tooltip="true"
  744. v-if="uncheckList.zfrApplyStatus"
  745. />
  746. <el-table-column
  747. label="操作"
  748. align="center"
  749. class-name="small-padding fixed-width"
  750. fixed="right"
  751. >
  752. <template slot-scope="scope">
  753. <el-button
  754. class="zap-button-plain"
  755. size="mini"
  756. type="text"
  757. @click="handleInfo(scope.row)"
  758. v-hasPermi="['service:repayment:query']"
  759. >详情</el-button>
  760. <el-button
  761. class="zap-button-warning"
  762. size="mini"
  763. type="text"
  764. @click="handleDown(scope.row)"
  765. v-hasPermi="['service:repayment:down']"
  766. >下载</el-button>
  767. <el-button
  768. class="zap-button-primary"
  769. size="mini"
  770. type="text"
  771. @click="handleUp(scope.row)"
  772. v-hasPermi="['service:repayment:edit']"
  773. v-if="scope.row.zfrApplyStatus != '01'&&(company.scyType == '00'||
  774. company.scyType == '03')"
  775. >还款登记</el-button>
  776. </template>
  777. </el-table-column>
  778. </el-table>
  779. <statistical-data>
  780. <span class="label">
  781. 总合计:
  782. <span class="value">¥{{allAmount}}</span>
  783. </span>
  784. <span class="label">已逾期:¥{{yyqAmount}}</span>
  785. </statistical-data>
  786. <pagination
  787. v-show="total>0"
  788. :total="total3"
  789. :page.sync="overdue.pageNum"
  790. :limit.sync="overdue.pageSize"
  791. @pagination="getList"
  792. />
  793. </el-tab-pane>
  794. <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
  795. <el-form ref="form" :model="form" :rules="rules" label-width="80px" class="zap-form">
  796. <el-form-item label="上传附件">
  797. <el-upload
  798. ref="upload"
  799. class="upload-demo"
  800. action
  801. :class="{showUoload:showBtnImg,uoloadSty:noneBtnImg}"
  802. :on-change="dealImgChange"
  803. accept=".jpg, .jpeg, .png"
  804. :http-request="httpRequest"
  805. :on-preview="handlePictureCardPreview"
  806. :on-remove="handleRemove"
  807. :before-upload="beforeAvatarUpload"
  808. multiple
  809. :limit="1"
  810. :on-exceed="handleExceed"
  811. list-type="picture-card"
  812. :file-list="fileList"
  813. :auto-upload="true"
  814. >
  815. <div slot="trigger" class="zap-contract-add__upload">
  816. <i class="el-icon-upload"></i>
  817. <div class="zap-upload__text">上传文件</div>
  818. </div>
  819. </el-upload>
  820. </el-form-item>
  821. <el-form-item label="融资id" prop="zfrId" label-width="90px" v-if="false">
  822. <el-input v-model="form.zfrId" style="width:284px" />
  823. </el-form-item>
  824. <!-- <el-form-item label="融信id" prop="zfrFinanceId" label-width="90px" v-if="false">
  825. <el-input v-model="form.zfrFinanceId" style="width:284px"/>
  826. </el-form-item>-->
  827. </el-form>
  828. <el-row style="height: 109px;" type="flex" align="middle" justify="center">
  829. <el-button type="primary" plain @click="cancel">取 消</el-button>
  830. <el-button type="primary" @click="submitForm">确 定</el-button>
  831. </el-row>
  832. </el-dialog>
  833. <el-dialog :visible.sync="dialogVisible">
  834. <img width="100%" :src="dialogImageUrl" alt />
  835. </el-dialog>
  836. </el-tabs>
  837. </div>
  838. </template>
  839. <script>
  840. import {
  841. listRepayment,
  842. RepaymentRegistration,
  843. repaymentAmount,
  844. listAmount
  845. } from "@/api/service/repayment/repayment";
  846. import ColumnSetting from "../../../components/Table/columnSetting.vue";
  847. import { columnQuery, columnfilter } from "@/api/common/columnSetting";
  848. import { getOwnCompany } from "@/api/common/company";
  849. import Cookies from "js-cookie";
  850. import { uploadFileNew } from "@/api/common/file";
  851. import { getToken } from "@/utils/auth";
  852. import SearchBar from "@/components/SearchBar/index.vue";
  853. export default {
  854. name: "repayment",
  855. components: {
  856. ColumnSetting,
  857. SearchBar
  858. },
  859. data() {
  860. return {
  861. allAmount: "0.00",
  862. dhkAmount: "0.00",
  863. yhkAmount: "0.00",
  864. yyqAmount: "0.00",
  865. activeIndex: "",
  866. //总代还款金额
  867. sumAmount: 0.0,
  868. //带还款金额
  869. amount: 0.0,
  870. dayOptions: [],
  871. // 遮罩层
  872. loading: true,
  873. // 选中数组
  874. ids: [],
  875. // 非单个禁用
  876. single: true,
  877. // 非多个禁用
  878. multiple: true,
  879. // 显示搜索条件
  880. showSearch: true,
  881. // 总条数
  882. total: 0,
  883. total1: 0,
  884. total2: 0,
  885. total3: 0,
  886. //附件按钮
  887. showBtnImg: true,
  888. noneBtnImg: false,
  889. limitCountImg: 1,
  890. //上传使用
  891. dialogImageUrl: "",
  892. dialogVisible: false,
  893. //附件地址
  894. fileList: [],
  895. // 弹出层标题
  896. title: "",
  897. // 全部还款列表
  898. allRepaymentList: [],
  899. //待还款列表
  900. unRepaymentList: [],
  901. //已还款列表
  902. repaymentList: [],
  903. //已逾期列表
  904. overdueList: [],
  905. typeOptions: [],
  906. // 是否显示弹出层
  907. open: false,
  908. // 查询参数
  909. queryParams: {
  910. pageNum: 1,
  911. pageSize: 10,
  912. type: null,
  913. value: null,
  914. repaymentDate: [],
  915. status: null
  916. },
  917. unRepayment: {
  918. pageNum: 1,
  919. pageSize: 10,
  920. type: null,
  921. value: null,
  922. repaymentDate: [],
  923. status: null
  924. },
  925. repayment: {
  926. pageNum: 1,
  927. pageSize: 10,
  928. type: null,
  929. value: null,
  930. repaymentDate: [],
  931. status: null
  932. },
  933. overdue: {
  934. pageNum: 1,
  935. pageSize: 10,
  936. type: null,
  937. value: null,
  938. repaymentDate: [],
  939. status: null
  940. },
  941. amountQueryParams: {
  942. day: "00"
  943. },
  944. // 表单参数
  945. form: {},
  946. amountQueryForm: {
  947. day: "00"
  948. },
  949. // 表单校验
  950. rules: {
  951. // pptName:[
  952. // { required: true, message: "项目类型不能为空", trigger: "blur" },
  953. // ]
  954. },
  955. tableList: [
  956. {
  957. label: "zfrNumber",
  958. value: "融资编号"
  959. },
  960. {
  961. label: "zfiNumber",
  962. value: "融信编号"
  963. },
  964. {
  965. label: "core",
  966. value: "最终还款方"
  967. },
  968. {
  969. label: "supplier",
  970. value: "融资方"
  971. },
  972. {
  973. label: "scyName",
  974. value: "资金方"
  975. },
  976. {
  977. label: "zfrLoanAmount",
  978. value: "还款金额(元)"
  979. },
  980. {
  981. label: "zfpcrAccount",
  982. value: "还款银行账户"
  983. },
  984. {
  985. label: "zfrPayDate",
  986. value: "实际还款日期"
  987. },
  988. {
  989. label: "zfrRepaymentDate",
  990. value: "承诺还款日期"
  991. },
  992. {
  993. label: "zfrApplyStatus",
  994. value: "还款状态"
  995. }
  996. ],
  997. checkList: [], //筛选列选中的数据列表--显示隐藏列用
  998. uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
  999. selfDom: this,
  1000. tableId: "/service/repayment/list"
  1001. };
  1002. },
  1003. created() {
  1004. //this.getRepaymentAmount();
  1005. this.getDicts("zc_zfr_apply_status").then(response => {
  1006. this.applyStatusOptions = response.data;
  1007. });
  1008. this.getDicts("zc_zfr_type").then(response => {
  1009. this.typeOptions = response.data;
  1010. });
  1011. this.getDicts("zc_repanyment_day").then(response => {
  1012. this.dayOptions = response.data;
  1013. });
  1014. this.amountQueryParams.day = null;
  1015. repaymentAmount(this.amountQueryParams).then(response => {
  1016. this.sumAmount = response.data;
  1017. this.amount = response.data;
  1018. });
  1019. this.getList().then(() => {
  1020. this.queryParams.type = "00";
  1021. });
  1022. this.getUnpayList().then(() => {
  1023. this.unRepayment.type = "00";
  1024. });
  1025. this.getRepayList().then(() => {
  1026. this.repayment.type = "00";
  1027. });
  1028. this.getOverdueList().then(() => {
  1029. this.overdue.type = "00";
  1030. });
  1031. },
  1032. activated() {
  1033. this.getList();
  1034. },
  1035. mounted() {
  1036. this.columnQuery();
  1037. },
  1038. methods: {
  1039. //列表格式化金额
  1040. moneyFormat(row, column, cellValue) {
  1041. if (cellValue == null || cellValue == undefined || cellValue == "") {
  1042. cellValue = "0.00";
  1043. }
  1044. cellValue += "";
  1045. if (!cellValue.includes(".")) {
  1046. cellValue += ".00";
  1047. }
  1048. return cellValue
  1049. .replace(/(\d)(?=(\d{3})+\.)/g, function($0, $1) {
  1050. return $1 + ",";
  1051. })
  1052. .replace(/\.$/, "");
  1053. },
  1054. /** 查询所有还款列表 */
  1055. getList() {
  1056. this.loading = true;
  1057. listAmount().then(response => {
  1058. debugger;
  1059. this.allAmount = response.data.allAmount;
  1060. this.dhkAmount = response.data.dhkAmount;
  1061. this.yhkAmount = response.data.yhkAmount;
  1062. this.yyqAmount = response.data.yyqAmount;
  1063. });
  1064. return getOwnCompany().then(response => {
  1065. this.company = response.data;
  1066. return listRepayment(this.queryParams)
  1067. .then(response => {
  1068. this.allRepaymentList = response.data.records;
  1069. this.total = response.data.total;
  1070. this.loading = false;
  1071. return Promise.resolve(response);
  1072. })
  1073. .catch(response => {
  1074. this.loading = false;
  1075. return Promise.reject("error");
  1076. });
  1077. });
  1078. },
  1079. /** 查询未还款列表 */
  1080. getUnpayList() {
  1081. this.loading = true;
  1082. this.unRepayment.status = "00";
  1083. listAmount().then(response => {
  1084. debugger;
  1085. this.allAmount = response.data.allAmount;
  1086. this.dhkAmount = response.data.dhkAmount;
  1087. this.yhkAmount = response.data.yhkAmount;
  1088. this.yyqAmount = response.data.yyqAmount;
  1089. });
  1090. return getOwnCompany().then(response => {
  1091. this.company = response.data;
  1092. return listRepayment(this.unRepayment)
  1093. .then(response => {
  1094. this.unRepaymentList = response.data.records;
  1095. this.total1 = response.data.total;
  1096. this.loading = false;
  1097. return Promise.resolve(response);
  1098. })
  1099. .catch(response => {
  1100. this.loading = false;
  1101. return Promise.reject("error");
  1102. });
  1103. });
  1104. },
  1105. /** 查询已还款列表 */
  1106. getRepayList() {
  1107. this.loading = true;
  1108. this.repayment.status = "01";
  1109. listAmount().then(response => {
  1110. debugger;
  1111. this.allAmount = response.data.allAmount;
  1112. this.dhkAmount = response.data.dhkAmount;
  1113. this.yhkAmount = response.data.yhkAmount;
  1114. this.yyqAmount = response.data.yyqAmount;
  1115. });
  1116. return getOwnCompany().then(response => {
  1117. this.company = response.data;
  1118. return listRepayment(this.repayment)
  1119. .then(response => {
  1120. this.repaymentList = response.data.records;
  1121. this.total2 = response.data.total;
  1122. this.loading = false;
  1123. return Promise.resolve(response);
  1124. })
  1125. .catch(response => {
  1126. this.loading = false;
  1127. return Promise.reject("error");
  1128. });
  1129. });
  1130. },
  1131. /** 查询已逾期列表 */
  1132. getOverdueList() {
  1133. this.loading = true;
  1134. this.overdue.status = "02";
  1135. listAmount().then(response => {
  1136. debugger;
  1137. this.allAmount = response.data.allAmount;
  1138. this.dhkAmount = response.data.dhkAmount;
  1139. this.yhkAmount = response.data.yhkAmount;
  1140. this.yyqAmount = response.data.yyqAmount;
  1141. });
  1142. return getOwnCompany().then(response => {
  1143. console.log(response, "企业数据");
  1144. this.company = response.data;
  1145. return listRepayment(this.overdue)
  1146. .then(response => {
  1147. this.overdueList = response.data.records;
  1148. this.total3 = response.data.total;
  1149. this.loading = false;
  1150. return Promise.resolve(response);
  1151. })
  1152. .catch(response => {
  1153. this.loading = false;
  1154. return Promise.reject("error");
  1155. });
  1156. });
  1157. },
  1158. /** 查询带还款金额 */
  1159. getRepaymentAmount() {
  1160. repaymentAmount(this.amountQueryParams).then(response => {
  1161. this.amount = response.data;
  1162. });
  1163. },
  1164. // 取消按钮
  1165. cancel() {
  1166. this.open = false;
  1167. this.reset();
  1168. },
  1169. // 表单重置
  1170. reset() {
  1171. this.form = {};
  1172. this.fileList = [];
  1173. this.resetForm("form");
  1174. },
  1175. /** 搜索按钮操作 */
  1176. handleQuery() {
  1177. this.queryParams.pageNum = 1;
  1178. this.getList();
  1179. },
  1180. secondQuery() {
  1181. this.unRepayment.pageNum = 1;
  1182. this.getUnpayList();
  1183. },
  1184. thirdQuery() {
  1185. this.repayment.pageNum = 1;
  1186. this.getRepayList();
  1187. },
  1188. fouthQuery() {
  1189. this.overdue.pageNum = 1;
  1190. this.getOverdueList();
  1191. },
  1192. /** 重置按钮操作 */
  1193. resetQuery() {
  1194. this.resetForm("queryForm");
  1195. this.handleQuery();
  1196. },
  1197. resetSecondQuery() {
  1198. this.resetForm("queryForm1");
  1199. this.secondQuery();
  1200. },
  1201. resetThirdQuery() {
  1202. this.resetForm("queryForm2");
  1203. this.thirdQuery();
  1204. },
  1205. resetFouthQuery() {
  1206. this.resetForm("queryForm3");
  1207. this.fouthQuery();
  1208. },
  1209. change(val) {
  1210. this.amountQueryParams.day = val;
  1211. repaymentAmount(this.amountQueryParams).then(response => {
  1212. this.amount = response.data;
  1213. });
  1214. },
  1215. // 多选框选中数据
  1216. handleSelectionChange(selection) {
  1217. /* this.ids = selection.map(item => item.ptcId)
  1218. this.single = selection.length!==1
  1219. this.multiple = !selection.length */
  1220. },
  1221. /** 详情按钮操作 */
  1222. handleInfo(row) {
  1223. const zfrId = row.zfrId;
  1224. this.resetForm("queryForm");
  1225. this.resetForm("queryForm1");
  1226. this.resetForm("queryForm2");
  1227. this.resetForm("queryForm3");
  1228. Cookies.set(
  1229. "/repayment/detailRepayment/" + zfrId + "/",
  1230. this.$route.fullPath
  1231. );
  1232. this.$router.push({
  1233. path: "/repayment/detailRepayment/" + zfrId + "/"
  1234. });
  1235. },
  1236. /** 下载按钮操作 */
  1237. handleDown(row) {
  1238. var zfrId = row.zfrId;
  1239. const loading = this.$loading({
  1240. lock: true,
  1241. text: "Loading",
  1242. spinner: "el-icon-loading",
  1243. background: "rgba(0, 0, 0, 0.7)"
  1244. });
  1245. this.download(
  1246. "sc-service/repayment/export/" + encodeURI(zfrId),
  1247. {},
  1248. `还款明细.doc`
  1249. );
  1250. setTimeout(() => {
  1251. loading.close();
  1252. this.create = false;
  1253. this.end = true;
  1254. this.active = 1;
  1255. }, 3000);
  1256. },
  1257. //上传附件
  1258. handleUp(row) {
  1259. this.reset();
  1260. this.form.zfrId = row.zfrId || this.ids;
  1261. this.showBtnImg = true;
  1262. this.noneBtnImg = this.fileList.length >= this.limitCountImg;
  1263. this.open = true;
  1264. this.title = "还款登记";
  1265. this.handleQuery();
  1266. },
  1267. //上传前校验
  1268. beforeAvatarUpload(file) {
  1269. const isJPG = file.type === "image/jpeg" || file.type === "image/png";
  1270. const isLt2M = file.size / 1024 / 1024 < 2;
  1271. if (!isJPG) {
  1272. this.$message.error("上传图片只能是 JPG/PNG 格式");
  1273. }
  1274. if (!isLt2M) {
  1275. this.$message.error("上传图片大小不能超过 2MB");
  1276. }
  1277. return isJPG && isLt2M;
  1278. },
  1279. //还款状态字典反显
  1280. applyStatusFormat(row, column) {
  1281. return this.selectDictLabel(this.applyStatusOptions, row.zfrApplyStatus);
  1282. },
  1283. //获取当前客户是否之前设置过列展示隐藏
  1284. columnQuery() {
  1285. //获取页面路径
  1286. var psfPagePath = window.location.pathname; //用请求后台的url作为唯一标识
  1287. var psfTableName = this.tableId;
  1288. var columnForm = {};
  1289. columnForm.psfPagePath = psfPagePath;
  1290. columnForm.psfTableName = psfTableName;
  1291. columnQuery(columnForm).then(response => {
  1292. if (response.data && response.data.psfShowData) {
  1293. this.checkList = response.data.psfShowData;
  1294. }
  1295. this.filter();
  1296. });
  1297. }, //控制隐藏显示的函数
  1298. filter(checkList) {
  1299. if (!!checkList) {
  1300. this.checkList = checkList;
  1301. }
  1302. columnfilter(this.selfDom);
  1303. },
  1304. /** 上传图片 */
  1305. submitUpload() {
  1306. this.$refs.upload.submit();
  1307. },
  1308. //文件移除提示
  1309. handleRemove(file, fileList) {
  1310. console.log(file);
  1311. for (let i = 0; i < this.fileList.length; i++) {
  1312. if (file.uid == this.fileList[i].uid) {
  1313. this.fileList.splice(i, 1);
  1314. break;
  1315. }
  1316. }
  1317. this.noneBtnImg = fileList.length >= this.limitCountImg;
  1318. //return this.$confirm(`确定移除 ${ file.name }?`);
  1319. },
  1320. dealImgChange(file, fileList) {
  1321. this.noneBtnImg = fileList.length >= this.limitCountImg;
  1322. },
  1323. handleExceed(files, fileList) {
  1324. this.$message.warning(`当前限制选择 1 个文件`);
  1325. },
  1326. handlePictureCardPreview(file) {
  1327. this.dialogImageUrl = file.url;
  1328. this.dialogVisible = true;
  1329. },
  1330. //手动上传文件触发
  1331. httpRequest(param) {
  1332. let fileObj = param.file; // 相当于input里取得的files
  1333. let fd = new FormData(); // FormData 对象
  1334. fd.append("file", fileObj); // 文件对象
  1335. fd.append("fileType", "00"); //文件类型
  1336. const loading = this.$loading({
  1337. lock: true,
  1338. text: "Loading",
  1339. spinner: "el-icon-loading",
  1340. background: "rgba(0, 0, 0, 0.7)"
  1341. });
  1342. uploadFileNew(fd)
  1343. .then(response => {
  1344. if (response) {
  1345. // this.form.eeiImgUrl = response.url
  1346. this.fileList.push({
  1347. uid: response.fileId,
  1348. url: response.url + "/" + getToken()
  1349. });
  1350. console.log(response.url);
  1351. setTimeout(() => {
  1352. loading.close();
  1353. }, 2000);
  1354. }
  1355. })
  1356. .catch(response => {
  1357. loading.close();
  1358. });
  1359. },
  1360. /** 提交按钮 */
  1361. submitForm() {
  1362. this.$refs["form"].validate(valid => {
  1363. if (valid) {
  1364. if (this.form.zfrId != null) {
  1365. this.form.zfrApplyFile = this.fileList;
  1366. RepaymentRegistration(this.form).then(response => {
  1367. this.msgSuccess("登记成功");
  1368. this.open = false;
  1369. this.getList();
  1370. });
  1371. }
  1372. }
  1373. });
  1374. },
  1375. /** 导出按钮操作 */
  1376. handleExport() {
  1377. const loading = this.$loading({
  1378. lock: true,
  1379. text: "Loading",
  1380. spinner: "el-icon-loading",
  1381. background: "rgba(0, 0, 0, 0.7)"
  1382. });
  1383. this.download(
  1384. "sc-service/repayment/export",
  1385. {
  1386. ...this.queryParams
  1387. },
  1388. `待还款列表.xls`
  1389. );
  1390. setTimeout(() => {
  1391. loading.close();
  1392. this.create = false;
  1393. this.end = true;
  1394. this.active = 1;
  1395. }, 3000);
  1396. }
  1397. }
  1398. };
  1399. </script>
  1400. <style>
  1401. .uoloadSty .el-upload--picture-card {
  1402. display: none;
  1403. }
  1404. </style>
  1405. <style lang="scss" scoped>
  1406. ::v-deep .el-textarea__inner {
  1407. width: 100%;
  1408. height: 106px;
  1409. background-image: linear-gradient(#f4f5f6, #f4f5f6),
  1410. linear-gradient(#71befe, #71befe);
  1411. background-blend-mode: normal, normal;
  1412. border: solid 1px #ebebeb;
  1413. }
  1414. ::v-deep .el-textarea .el-input__count {
  1415. background-color: transparent;
  1416. }
  1417. ::v-deep .el-upload--picture-card {
  1418. border: none;
  1419. }
  1420. .zap-contract-add__upload {
  1421. display: flex;
  1422. flex-direction: column;
  1423. justify-content: center;
  1424. align-items: center;
  1425. width: 148px;
  1426. height: 148px;
  1427. border: dashed 1px #e0e0e0;
  1428. background-color: #f4f5f6;
  1429. }
  1430. .el-icon-upload {
  1431. font-size: 32px;
  1432. color: #02c464;
  1433. }
  1434. .zap-upload__text {
  1435. line-height: 1;
  1436. margin-top: 12px;
  1437. font-size: 12px;
  1438. color: #333333;
  1439. }
  1440. .zap-repaid {
  1441. position: relative;
  1442. padding-right: 70px;
  1443. padding-top: 10px;
  1444. padding-left: 42px;
  1445. padding-bottom: 24px;
  1446. &::after {
  1447. content: "";
  1448. display: block;
  1449. position: absolute;
  1450. top: 10px;
  1451. right: 0;
  1452. width: 1px;
  1453. height: calc(100% - 44px);
  1454. border-right: 1px solid #ebebeb;
  1455. }
  1456. .el-form-item {
  1457. margin-bottom: 0;
  1458. }
  1459. }
  1460. .zap-repaid__label {
  1461. margin-left: 16px;
  1462. font-size: 14px;
  1463. color: #333333;
  1464. }
  1465. .zap-repaid__amount {
  1466. margin-top: 24px;
  1467. font-size: 28px;
  1468. font-weight: 500;
  1469. color: #ff2f2f;
  1470. }
  1471. .zap-total {
  1472. padding-top: 10px;
  1473. padding-left: 70px;
  1474. padding-bottom: 24px;
  1475. }
  1476. .zap-total__label {
  1477. height: 28px;
  1478. line-height: 28px;
  1479. font-size: 14px;
  1480. color: #333333;
  1481. }
  1482. .zap-total__amount {
  1483. margin-top: 24px;
  1484. font-size: 28px;
  1485. font-weight: 500;
  1486. color: #4280f2;
  1487. }
  1488. .zap-title {
  1489. }
  1490. ::v-deep .zap-repaid__select .el-form-item--medium .el-form-item__content {
  1491. line-height: 32px;
  1492. }
  1493. .zap-repaid__select {
  1494. ::v-deep .el-select,
  1495. ::v-deep .el-input__inner {
  1496. width: 105px;
  1497. color: #ff2f2f;
  1498. border-color: #ff2f2f;
  1499. background-color: #fff6f6;
  1500. border-radius: 16px;
  1501. }
  1502. ::v-deep .el-select .el-input.is-focus .el-input__inner {
  1503. border-color: #ff2f2f;
  1504. }
  1505. ::v-deep .el-input__icon,
  1506. ::v-deep ::placeholder {
  1507. color: #ff2f2f;
  1508. }
  1509. }
  1510. </style>