financeRecord.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222
  1. <template>
  2. <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
  3. <!-- 全部table页 -->
  4. <el-tab-pane label="全部" name = "first">
  5. <el-card class="fiche">
  6. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
  7. <span style="margin-bottom: 10px;color: #333333;font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif;">所选条件:</span>
  8. <div style="float: right; margin-right: 1%">
  9. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  10. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" style="float: ">重置</el-button>
  11. <column-setting :checkList="checkList" :tableList="tableList" :selfDom="selfDom" :tableId="tableId" style="margin-left:5px"></column-setting>
  12. </div>
  13. <hr style="margin-top: 16px" />
  14. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  15. <el-form-item prop="zfrTypes">
  16. <el-select v-model="queryParams.zfrTypes" clearable size="small">
  17. <el-option
  18. v-for="dict in typesOptions"
  19. :key="dict.dictValue"
  20. :label="dict.dictLabel"
  21. :value="dict.dictValue"
  22. />
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item prop="zfrQuery">
  26. <el-select v-model="queryParams.zfrQuery" clearable size="small">
  27. <el-option
  28. v-for="dict in queryOptions"
  29. :key="dict.dictValue"
  30. :label="dict.dictLabel"
  31. :value="dict.dictValue"
  32. />
  33. </el-select>
  34. </el-form-item>
  35. <el-form-item prop="zfrValue" v-if="this.queryParams.zfrQuery">
  36. <el-input
  37. v-model="queryParams.zfrValue"
  38. clearable
  39. size="small"
  40. maxlength="25"
  41. style="width: 190px"
  42. />
  43. </el-form-item>
  44. </el-form>
  45. </el-card>
  46. <el-row :gutter="10" class="mb8">
  47. <el-col :span="1.5">
  48. <el-button
  49. type="primary"
  50. icon="el-icon-plus"
  51. size="mini"
  52. @click="handleAdd"
  53. v-hasPermi="['finance:record:add']"
  54. >申请融资</el-button
  55. >
  56. </el-col>
  57. </el-row>
  58. <el-table v-loading="loading" :data="recordList" @selection-change="handleSelectionChange" stripe border>
  59. <el-table-column label="序号" type="index" width="50" align="center">
  60. <template slot-scope="scope">
  61. <span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
  65. <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
  66. <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
  67. <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
  68. <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
  69. <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
  70. <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
  71. <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
  72. <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
  73. <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
  74. <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
  75. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
  76. <template slot-scope="scope">
  77. <el-button
  78. size="mini"
  79. type="text"
  80. icon="el-icon-edit"
  81. @click="handleDetail(scope.row)"
  82. v-hasPermi="['finance:record:query']"
  83. >详情</el-button
  84. >
  85. <el-button
  86. size="mini"
  87. type="text"
  88. icon="el-icon-delete"
  89. @click="handleLoan(scope.row)"
  90. v-hasPermi="['finance:record:edit']"
  91. v-if="scope.row.zfrStatus == '00'"
  92. >放款登记</el-button
  93. >
  94. <el-button
  95. size="mini"
  96. type="text"
  97. icon="el-icon-delete"
  98. @click="handleExport(scope.row)"
  99. v-hasPermi="['finance:record:export']"
  100. >导出</el-button
  101. >
  102. <!-- <el-button
  103. size="mini"
  104. type="text"
  105. icon="el-icon-edit"
  106. @click="handleApprove(scope.row)"
  107. v-hasPermi="['finance:record:approve']"
  108. v-if="scope.row.zfrApproveStt == '03' && scope.row.zfrStatus != '01'"
  109. >提交审批</el-button
  110. > -->
  111. <el-button
  112. size="mini"
  113. type="text"
  114. icon="el-icon-edit"
  115. @click="seal(scope.row)"
  116. v-hasPermi="['finance:record:seal']"
  117. v-if="scope.row.zfrApproveStt == '01'"
  118. >盖章</el-button>
  119. </template>
  120. </el-table-column>
  121. </el-table>
  122. <pagination
  123. v-show="total > 0"
  124. :total="total"
  125. :page.sync="queryParams.pageNum"
  126. :limit.sync="queryParams.pageSize"
  127. @pagination="getList"
  128. />
  129. </el-tab-pane>
  130. <!-- 融资中table页 -->
  131. <el-tab-pane label="融资中" name = "second">
  132. <el-card class="fiche">
  133. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
  134. <span style="margin-bottom: 10px;color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif;">所选条件:</span>
  135. <div style="float: right; margin-right: 1%">
  136. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryIng" >搜索</el-button>
  137. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryIng" style="float: ">重置</el-button>
  138. <column-setting :checkList="checkListOne" :tableList="tableListOne" :selfDom="selfDom" :tableId="tableIdOne" style="margin-left:5px"></column-setting>
  139. </div>
  140. <hr style="margin-top: 16px" />
  141. <el-form
  142. :model="queryParamsIng"
  143. ref="queryFormIng"
  144. :inline="true"
  145. v-show="showSearch"
  146. label-width="68px"
  147. >
  148. <el-form-item prop="zfrTypes">
  149. <el-select v-model="queryParams.zfrTypes" clearable size="small">
  150. <el-option
  151. v-for="dict in typesOptions"
  152. :key="dict.dictValue"
  153. :label="dict.dictLabel"
  154. :value="dict.dictValue"
  155. />
  156. </el-select>
  157. </el-form-item>
  158. <el-form-item prop="zfrQuery">
  159. <el-select v-model="queryParams.zfrQuery" clearable size="small">
  160. <el-option
  161. v-for="dict in queryOptions"
  162. :key="dict.dictValue"
  163. :label="dict.dictLabel"
  164. :value="dict.dictValue"
  165. />
  166. </el-select>
  167. </el-form-item>
  168. <el-form-item prop="zfrValue" v-if="this.queryParams.zfrQuery">
  169. <el-input
  170. v-model="queryParams.zfrValue"
  171. clearable
  172. size="small"
  173. maxlength="25"
  174. style="width: 190px"
  175. />
  176. </el-form-item>
  177. </el-form>
  178. </el-card>
  179. <el-table v-loading="loadingIng" :data="recordIngList" @selection-change="handleSelectionChangeIng" stripe border>
  180. <el-table-column label="序号" type="index" width="50" align="center">
  181. <template slot-scope="scope">
  182. <span>{{(queryParamsIng.pageNum - 1) * queryParamsIng.pageSize +scope.$index + 1}}</span>
  183. </template>
  184. </el-table-column>
  185. <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
  186. <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
  187. <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
  188. <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
  189. <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
  190. <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
  191. <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
  192. <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
  193. <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
  194. <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
  195. <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
  196. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
  197. <template slot-scope="scope">
  198. <el-button
  199. size="mini"
  200. type="text"
  201. icon="el-icon-edit"
  202. @click="handleDetail(scope.row)"
  203. v-hasPermi="['finance:record:query']"
  204. >详情</el-button
  205. >
  206. <el-button
  207. size="mini"
  208. type="text"
  209. icon="el-icon-delete"
  210. @click="handleLoan(scope.row)"
  211. v-hasPermi="['finance:record:edit']"
  212. >放款登记</el-button
  213. >
  214. <el-button
  215. size="mini"
  216. type="text"
  217. icon="el-icon-delete"
  218. @click="handleExport(scope.row)"
  219. v-hasPermi="['finance:record:export']"
  220. >导出</el-button
  221. >
  222. </template>
  223. </el-table-column>
  224. </el-table>
  225. <pagination
  226. v-show="totalIng > 0"
  227. :total="totalIng"
  228. :page.sync="queryParamsIng.pageNum"
  229. :limit.sync="queryParamsIng.pageSize"
  230. @pagination="getIngList"
  231. />
  232. </el-tab-pane>
  233. <!-- 已放款table页 -->
  234. <el-tab-pane label="已放款" name = "third">
  235. <el-card class="fiche">
  236. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
  237. <span style="margin-bottom: 10px; color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;">所选条件:</span>
  238. <div style="float: right; margin-right: 1%">
  239. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryEnd" >搜索</el-button>
  240. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryEnd" style="float: " >重置</el-button>
  241. <column-setting :checkList="checkListTwo" :tableList="tableListTwo" :selfDom="selfDom" :tableId="tableIdTwo" style="margin-left:5px"></column-setting>
  242. </div>
  243. <hr style="margin-top: 16px" />
  244. <el-form
  245. :model="queryParamsEnd"
  246. ref="queryFormEnd"
  247. :inline="true"
  248. v-show="showSearch"
  249. label-width="68px"
  250. >
  251. <el-form-item prop="zfrTypes">
  252. <el-select v-model="queryParams.zfrTypes" clearable size="small">
  253. <el-option
  254. v-for="dict in typesOptions"
  255. :key="dict.dictValue"
  256. :label="dict.dictLabel"
  257. :value="dict.dictValue"
  258. />
  259. </el-select>
  260. </el-form-item>
  261. <el-form-item prop="zfrQuery">
  262. <el-select v-model="queryParams.zfrQuery" clearable size="small">
  263. <el-option
  264. v-for="dict in queryOptions"
  265. :key="dict.dictValue"
  266. :label="dict.dictLabel"
  267. :value="dict.dictValue"
  268. />
  269. </el-select>
  270. </el-form-item>
  271. <el-form-item prop="zfrValue" v-if="this.queryParams.zfrQuery">
  272. <el-input
  273. v-model="queryParams.zfrValue"
  274. clearable
  275. size="small"
  276. maxlength="25"
  277. style="width: 190px"
  278. />
  279. </el-form-item>
  280. </el-form>
  281. </el-card>
  282. <el-table
  283. v-loading="loadingEnd"
  284. :data="recordEndList"
  285. @selection-change="handleSelectionChange"
  286. stripe
  287. border
  288. >
  289. <el-table-column label="序号" type="index" width="50" align="center">
  290. <template slot-scope="scope">
  291. <span>{{ (queryParamsEnd.pageNum - 1) * queryParamsEnd.pageSize + scope.$index + 1 }}</span>
  292. </template>
  293. </el-table-column>
  294. <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
  295. <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
  296. <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
  297. <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
  298. <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
  299. <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
  300. <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
  301. <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
  302. <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
  303. <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
  304. <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
  305. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
  306. <template slot-scope="scope">
  307. <el-button
  308. size="mini"
  309. type="text"
  310. icon="el-icon-edit"
  311. @click="handleDetail(scope.row)"
  312. v-hasPermi="['finance:record:query']"
  313. >详情</el-button
  314. >
  315. <el-button
  316. size="mini"
  317. type="text"
  318. icon="el-icon-delete"
  319. @click="handleExport(scope.row)"
  320. v-hasPermi="['finance:record:export']"
  321. >导出</el-button
  322. >
  323. </template>
  324. </el-table-column>
  325. </el-table>
  326. <pagination
  327. v-show="totalEnd > 0"
  328. :total="totalEnd"
  329. :page.sync="queryParamsEnd.pageNum"
  330. :limit.sync="queryParamsEnd.pageSize"
  331. @pagination="getEndList"
  332. />
  333. </el-tab-pane>
  334. <!-- 融资失败table页 -->
  335. <el-tab-pane label="融资失败" name = "fourth">
  336. <el-card class="fiche">
  337. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
  338. <span style="margin-bottom: 10px; color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;">所选条件:</span>
  339. <div style="float: right; margin-right: 1%">
  340. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryLose" >搜索</el-button>
  341. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryLose" style="float: " >重置</el-button>
  342. <column-setting :checkList="checkListThree" :tableList="tableListThree" :selfDom="selfDom" :tableId="tableIdThree" style="margin-left:5px"></column-setting>
  343. </div>
  344. <hr style="margin-top: 16px" />
  345. <el-form
  346. :model="queryParamsLose"
  347. ref="queryFormLose"
  348. :inline="true"
  349. v-show="showSearch"
  350. label-width="68px"
  351. >
  352. <el-form-item prop="zfrTypes">
  353. <el-select v-model="queryParams.zfrTypes" clearable size="small">
  354. <el-option
  355. v-for="dict in typesOptions"
  356. :key="dict.dictValue"
  357. :label="dict.dictLabel"
  358. :value="dict.dictValue"
  359. />
  360. </el-select>
  361. </el-form-item>
  362. <el-form-item prop="zfrQuery">
  363. <el-select v-model="queryParams.zfrQuery" clearable size="small">
  364. <el-option
  365. v-for="dict in queryOptions"
  366. :key="dict.dictValue"
  367. :label="dict.dictLabel"
  368. :value="dict.dictValue"
  369. />
  370. </el-select>
  371. </el-form-item>
  372. <el-form-item prop="zfrValue" v-if="this.queryParams.zfrQuery">
  373. <el-input
  374. v-model="queryParams.zfrValue"
  375. clearable
  376. size="small"
  377. maxlength="25"
  378. style="width: 190px"
  379. />
  380. </el-form-item>
  381. </el-form>
  382. </el-card>
  383. <el-table v-loading="loadingLose" :data="recordLoseList" @selection-change="handleSelectionChange" stripe border>
  384. <el-table-column label="序号" type="index" width="50" align="center">
  385. <template slot-scope="scope">
  386. <span>{{ (queryParamsLose.pageNum - 1) * queryParamsLose.pageSize + scope.$index + 1}}</span>
  387. </template>
  388. </el-table-column>
  389. <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
  390. <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
  391. <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
  392. <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
  393. <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
  394. <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
  395. <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
  396. <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
  397. <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
  398. <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
  399. <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
  400. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
  401. <template slot-scope="scope">
  402. <el-button
  403. size="mini"
  404. type="text"
  405. icon="el-icon-edit"
  406. @click="handleDetail(scope.row)"
  407. v-hasPermi="['finance:record:query']"
  408. >详情</el-button
  409. >
  410. <el-button
  411. size="mini"
  412. type="text"
  413. icon="el-icon-delete"
  414. @click="handleExport(scope.row)"
  415. v-hasPermi="['finance:record:export']"
  416. >导出</el-button
  417. >
  418. </template>
  419. </el-table-column>
  420. </el-table>
  421. <pagination
  422. v-show="totalLose > 0"
  423. :total="totalLose"
  424. :page.sync="queryParamsLose.pageNum"
  425. :limit.sync="queryParamsLose.pageSize"
  426. @pagination="getLoseList"
  427. />
  428. </el-tab-pane>
  429. <!-- 添加或修改融资记录对话框 -->
  430. <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
  431. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  432. <el-form-item label="实际放款金额" prop="zfrLoanAmount" label-width="100px" >
  433. <el-input v-model="form.zfrLoanAmount" placeholder="实际放款金额" style="width: 284px">
  434. <template slot="append">元</template>
  435. </el-input>
  436. </el-form-item>
  437. <el-form-item label="上传附件">
  438. <el-upload
  439. ref="upload"
  440. class="upload-demo"
  441. action=""
  442. :class="{ showUoload: showBtnImg, uoloadSty: noneBtnImg }"
  443. :on-change="dealImgChange"
  444. accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
  445. :http-request="httpRequest"
  446. :on-preview="handlePictureCardPreview"
  447. :on-remove="handleRemove"
  448. multiple
  449. :limit="1"
  450. :on-exceed="handleExceed"
  451. list-type="picture-card"
  452. :file-list="fileList"
  453. :auto-upload="false"
  454. >
  455. <el-button slot="trigger" size="small" type="primary"
  456. >点击选择</el-button
  457. >
  458. <el-button
  459. style="margin-left: 10px"
  460. size="small"
  461. type="success"
  462. @click="submitUpload"
  463. >上传到服务器</el-button
  464. >
  465. </el-upload>
  466. </el-form-item>
  467. <el-form-item label="融资id" prop="zfrId" label-width="90px" v-if="false">
  468. <el-input v-model="form.zfrId" style="width: 284px" />
  469. </el-form-item>
  470. <el-form-item label="融信id" prop="zfrFinanceId" label-width="90px" v-if="false">
  471. <el-input v-model="form.zfrFinanceId" style="width: 284px" />
  472. </el-form-item>
  473. </el-form>
  474. <div slot="footer" class="dialog-footer">
  475. <el-button type="primary" @click="submitForm">确 定</el-button>
  476. <el-button @click="cancel">取 消</el-button>
  477. </div>
  478. </el-dialog>
  479. <el-dialog :visible.sync="dialogVisible">
  480. <img width="100%" :src="dialogImageUrl" alt="" />
  481. </el-dialog>
  482. </el-tabs>
  483. </template>
  484. <script>
  485. import {
  486. listRecord,
  487. getRecord,
  488. delRecord,
  489. addRecord,
  490. updateRecord,
  491. examineApprove,
  492. } from "@/api/service/financeRecord/record";
  493. import { uploadFileNew } from "@/api/common/file";
  494. import Cookies from "js-cookie";
  495. import { getToken } from "@/utils/auth";
  496. import { columnQuery } from "@/api/common/columnSetting";
  497. import ColumnSetting from "../../../components/Table/columnSetting.vue";
  498. export default {
  499. name: "finaceRecord",
  500. components: {ColumnSetting},
  501. data() {
  502. return {
  503. //上传使用
  504. dialogImageUrl: "",
  505. dialogVisible: false,
  506. //附件按钮
  507. showBtnImg: true,
  508. noneBtnImg: false,
  509. limitCountImg: 1,
  510. // 遮罩层
  511. loading: true,
  512. loadingIng: true,
  513. loadingEnd: true,
  514. loadingLose: true,
  515. // 选中数组
  516. ids: [],
  517. // 非单个禁用
  518. single: true,
  519. // 非多个禁用
  520. multiple: true,
  521. // 显示搜索条件
  522. showSearch: true,
  523. // 总条数
  524. total: 0,
  525. totalIng: 0,
  526. totalEnd: 0,
  527. totalLose: 0,
  528. // 全部融资记录表格数据
  529. recordList: [],
  530. // 融资中融资记录表格数据
  531. recordIngList: [],
  532. // 已放款融资记录表格数据
  533. recordEndList: [],
  534. // 融资失败融资记录表格数据
  535. recordLoseList: [],
  536. //附件地址
  537. fileList: [],
  538. //融资状态数据字典
  539. statusOptions: [],
  540. //筛选条件数据字典
  541. typesOptions: [],
  542. queryOptions: [],
  543. // 弹出层标题
  544. title: "",
  545. // 是否显示弹出层
  546. open: false,
  547. // 查询参数
  548. queryParams: {
  549. pageNum: 1,
  550. pageSize: 10,
  551. zfrFinanceId: null,
  552. zfrNumber: null,
  553. zfrAmount: null,
  554. zfrRate: null,
  555. zfrHandler: null,
  556. zfrRepaymentDate: null,
  557. zfrApplyDate: null,
  558. zfrLoanDate: null,
  559. zfrApplyAmount: null,
  560. zfrApplyType: null,
  561. zfrStatus: null,
  562. zfrApproveStt: null,
  563. zfrTypes: null,
  564. zfrQuery: null,
  565. zfrValue: null,
  566. },
  567. queryParamsIng: {
  568. pageNum: 1,
  569. pageSize: 10,
  570. zfrFinanceId: null,
  571. zfrNumber: null,
  572. zfrAmount: null,
  573. zfrRate: null,
  574. zfrHandler: null,
  575. zfrRepaymentDate: null,
  576. zfrApplyDate: null,
  577. zfrLoanDate: null,
  578. zfrApplyAmount: null,
  579. zfrApplyType: null,
  580. zfrStatus: null,
  581. zfrApproveStt: null,
  582. zfrTypes: null,
  583. zfrQuery: null,
  584. zfrValue: null,
  585. },
  586. queryParamsEnd: {
  587. pageNum: 1,
  588. pageSize: 10,
  589. zfrFinanceId: null,
  590. zfrNumber: null,
  591. zfrAmount: null,
  592. zfrRate: null,
  593. zfrHandler: null,
  594. zfrRepaymentDate: null,
  595. zfrApplyDate: null,
  596. zfrLoanDate: null,
  597. zfrApplyAmount: null,
  598. zfrApplyType: null,
  599. zfrStatus: null,
  600. zfrApproveStt: null,
  601. zfrTypes: null,
  602. zfrQuery: null,
  603. zfrValue: null,
  604. },
  605. queryParamsLose: {
  606. pageNum: 1,
  607. pageSize: 10,
  608. zfrFinanceId: null,
  609. zfrNumber: null,
  610. zfrAmount: null,
  611. zfrRate: null,
  612. zfrHandler: null,
  613. zfrRepaymentDate: null,
  614. zfrApplyDate: null,
  615. zfrLoanDate: null,
  616. zfrApplyAmount: null,
  617. zfrApplyType: null,
  618. zfrStatus: null,
  619. zfrApproveStt: null,
  620. zfrTypes: null,
  621. zfrQuery: null,
  622. zfrValue: null,
  623. },
  624. // 表单参数
  625. form: {},
  626. //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用--全部
  627. tableList: [
  628. {label: "zfiNumner", value: "融信编号"},
  629. {label: "zfrNumber", value: "融资编号"},
  630. {label: 'coreScyName', value: '开立方'},
  631. {label: 'zfrAmount', value: '融资金额'},
  632. {label: "zfrRate", value: "融资利率"},
  633. {label: "nickName", value: "经办人"},
  634. {label: "zfrExpireDate", value: "承诺还款时间"},
  635. {label: "zfrApplyDate", value: "融资申请日期"},
  636. {label: 'zfrLoanAmount', value: '实际放款金额'},
  637. {label: "zfrLoanDate", value: "融资放款日期"},
  638. {label: "zfrStatus", value: "融资状态"},
  639. ],
  640. checkList: [], //筛选列选中的数据列表--显示隐藏列用
  641. uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
  642. firstSet : false,
  643. tableId: "/sc-service/financeRecord/list/all",
  644. //融资中
  645. tableListOne: [
  646. {label: "zfiNumner", value: "融信编号"},
  647. {label: "zfrNumber", value: "融资编号"},
  648. {label: 'coreScyName', value: '开立方'},
  649. {label: 'zfrAmount', value: '融资金额'},
  650. {label: "zfrRate", value: "融资利率"},
  651. {label: "nickName", value: "经办人"},
  652. {label: "zfrExpireDate", value: "承诺还款时间"},
  653. {label: "zfrApplyDate", value: "融资申请日期"},
  654. {label: 'zfrLoanAmount', value: '实际放款金额'},
  655. {label: "zfrLoanDate", value: "融资放款日期"},
  656. {label: "zfrStatus", value: "融资状态"},
  657. ],
  658. checkListOne: [], //筛选列选中的数据列表--显示隐藏列用
  659. uncheckListOne: {}, //控制筛选列显示隐藏--显示隐藏列用
  660. firstSetOne: false,
  661. tableIdOne: "/sc-service/financeRecord/list/one",
  662. //已放款
  663. tableListTwo: [
  664. {label: "zfiNumner", value: "融信编号"},
  665. {label: "zfrNumber", value: "融资编号"},
  666. {label: 'coreScyName', value: '开立方'},
  667. {label: 'zfrAmount', value: '融资金额'},
  668. {label: "zfrRate", value: "融资利率"},
  669. {label: "nickName", value: "经办人"},
  670. {label: "zfrExpireDate", value: "承诺还款时间"},
  671. {label: "zfrApplyDate", value: "融资申请日期"},
  672. {label: 'zfrLoanAmount', value: '实际放款金额'},
  673. {label: "zfrLoanDate", value: "融资放款日期"},
  674. {label: "zfrStatus", value: "融资状态"},
  675. ],
  676. checkListTwo: [], //筛选列选中的数据列表--显示隐藏列用
  677. uncheckListTwo: {}, //控制筛选列显示隐藏--显示隐藏列用
  678. firstSetTwo: false,
  679. tableIdTwo: "/sc-service/financeRecord/list/two",
  680. //放款失败
  681. tableListThree: [
  682. {label: "zfiNumner", value: "融信编号"},
  683. {label: "zfrNumber", value: "融资编号"},
  684. {label: 'coreScyName', value: '开立方'},
  685. {label: 'zfrAmount', value: '融资金额'},
  686. {label: "zfrRate", value: "融资利率"},
  687. {label: "nickName", value: "经办人"},
  688. {label: "zfrExpireDate", value: "承诺还款时间"},
  689. {label: "zfrApplyDate", value: "融资申请日期"},
  690. {label: 'zfrLoanAmount', value: '实际放款金额'},
  691. {label: "zfrLoanDate", value: "融资放款日期"},
  692. {label: "zfrStatus", value: "融资状态"},
  693. ],
  694. checkListThree: [], //筛选列选中的数据列表--显示隐藏列用
  695. uncheckListThree: {}, //控制筛选列显示隐藏--显示隐藏列用
  696. firstSetThree: false,
  697. tableIdThree: "/sc-service/financeRecord/list/three",
  698. // 表单校验
  699. rules: {
  700. zfrloanAmount: [
  701. { required: true, message: "放款金额不能为空", trigger: "blur" },
  702. ],
  703. },
  704. selfDom : this,
  705. activeName : "first"
  706. };
  707. },
  708. created() {
  709. this.getList();
  710. this.getIngList();
  711. this.getEndList();
  712. this.getLoseList();
  713. this.getDicts("ser_zfr_status").then((response) => {
  714. this.statusOptions = response.data;
  715. });
  716. this.getDicts("zc_zfr_types").then((response) => {
  717. this.typesOptions = response.data;
  718. });
  719. this.getDicts("zc_zfr_query").then((response) => {
  720. this.queryOptions = response.data;
  721. });
  722. },
  723. activated() {
  724. this.getList();
  725. this.getIngList();
  726. this.getEndList();
  727. this.getLoseList();
  728. this.getDicts("ser_zfr_status").then((response) => {
  729. this.statusOptions = response.data;
  730. });
  731. },
  732. mounted() {
  733. this.columnQuery();
  734. },
  735. methods: {
  736. /** 查询全部融资记录列表 */
  737. getList() {
  738. this.loading = true;
  739. listRecord(this.queryParams).then((response) => {
  740. this.recordList = response.data.records;
  741. console.log(this.recordList);
  742. this.total = response.data.total;
  743. this.loading = false;
  744. });
  745. },
  746. /** 查询融资中融资记录列表 */
  747. getIngList() {
  748. this.loadingIng = true;
  749. this.queryParamsIng.zfrStatus = "00";
  750. listRecord(this.queryParamsIng).then((response) => {
  751. this.recordIngList = response.data.records;
  752. this.totalIng = response.data.total;
  753. this.loadingIng = false;
  754. });
  755. },
  756. /** 查询已放款融资记录列表 */
  757. getEndList() {
  758. this.loadingEnd = true;
  759. this.queryParamsEnd.zfrStatus = "01";
  760. listRecord(this.queryParamsEnd).then((response) => {
  761. this.recordEndList = response.data.records;
  762. this.totalIng = response.data.total;
  763. this.loadingEnd = false;
  764. });
  765. },
  766. /** 查询融资失败融资记录列表 */
  767. getLoseList() {
  768. this.loadingLose = true;
  769. this.queryParamsLose.zfrStatus = "02";
  770. listRecord(this.queryParamsLose).then((response) => {
  771. this.recordLoseList = response.data.records;
  772. this.totalEnd = response.data.total;
  773. this.loadingLose = false;
  774. });
  775. },
  776. // 取消按钮
  777. cancel() {
  778. this.open = false;
  779. this.reset();
  780. },
  781. // 表单重置
  782. reset() {
  783. this.form = {
  784. zfrId: null,
  785. zfrFinanceId: null,
  786. zfrNumber: null,
  787. zfrAmount: null,
  788. zfrRate: null,
  789. zfrHandler: null,
  790. zfrRepaymentDate: null,
  791. zfrApplyDate: null,
  792. zfrLoanDate: null,
  793. zfrApplyAmount: null,
  794. zfrApplyType: null,
  795. zfrStatus: "00",
  796. zfrApproveStt: null,
  797. zfrProfitSpare1: null,
  798. zfrProfitSpare2: null,
  799. zfrProfitSpare3: null,
  800. zfrProfitSpare4: null,
  801. zfrProfitSpare5: null,
  802. zfrProfitSpare6: null,
  803. zfrProfitSpare7: null,
  804. zfrProfitSpare8: null,
  805. zfrProfitSpare9: null,
  806. createBy: null,
  807. createTime: null,
  808. updateBy: null,
  809. updateTime: null,
  810. zfrLoanFile: null,
  811. };
  812. this.resetForm("form");
  813. this.fileList = [];
  814. this.noneBtnImg = false;
  815. },
  816. /** 全部搜索按钮操作 */
  817. handleQuery() {
  818. this.queryParams.pageNum = 1;
  819. this.getList();
  820. },
  821. /** 全部重置按钮操作 */
  822. resetQuery() {
  823. this.resetForm("queryForm");
  824. this.handleQuery();
  825. },
  826. /** 融资中搜索按钮操作 */
  827. handleQueryIng() {
  828. this.queryParamsIng.pageNum = 1;
  829. this.getIngList();
  830. },
  831. /**融资中重置按钮操作 */
  832. resetQueryIng() {
  833. this.resetForm("queryFormIng");
  834. this.handleQueryIng();
  835. },
  836. /** 已放款搜索按钮操作 */
  837. handleQueryEnd() {
  838. this.queryParamsEnd.pageNum = 1;
  839. this.getEndList();
  840. },
  841. /**已放款重置按钮操作 */
  842. resetQueryEnd() {
  843. this.resetForm("queryFormEnd");
  844. this.handleQueryEnd();
  845. },
  846. /** 融资失败搜索按钮操作 */
  847. handleQueryLose() {
  848. this.queryParamsLose.pageNum = 1;
  849. this.getLoseList();
  850. },
  851. /*融资失败重置按钮操作 */
  852. resetQueryLose() {
  853. this.resetForm("queryFormLose");
  854. this.handleQueryLose();
  855. },
  856. //全部 多选框选中数据
  857. handleSelectionChange(selection) {
  858. this.ids = selection.map((item) => item.zfrId);
  859. this.single = selection.length !== 1;
  860. this.multiple = !selection.length;
  861. },
  862. // 融资中多选框选中数据
  863. handleSelectionChangeIng(selection) {
  864. this.ids = selection.map((item) => item.zfrId);
  865. this.single = selection.length !== 1;
  866. this.multiple = !selection.length;
  867. },
  868. /** 字典翻译 */
  869. statusFormat(row, column) {
  870. return this.selectDictLabel(this.statusOptions, row.zfrStatus);
  871. },
  872. /** 新增按钮操作 */
  873. handleAdd() {
  874. Cookies.set("/financeRecord/addFinanceRecord/", this.$route.fullPath);
  875. this.$router.push("/financeRecord/addFinanceRecord/");
  876. // this.reset();
  877. // this.open = true;
  878. // this.title = "添加融资记录";
  879. },
  880. /** 修改按钮操作 */
  881. handleUpdate(row) {
  882. this.reset();
  883. const zfrId = row.zfrId || this.ids;
  884. getRecord(zfrId).then((response) => {
  885. this.form = response.data;
  886. this.open = true;
  887. this.title = "修改融资记录";
  888. });
  889. },
  890. handleLoan(row) {
  891. this.reset();
  892. this.form.zfrId = row.zfrId || this.ids;
  893. this.form.zfrAmount = row.zfrAmount;
  894. this.$set(this.form, "zfrLoanAmount", row.zfrAmount);
  895. // this.form.zfrloanAmount = row.zfrAmount;
  896. this.form.zfrFinanceId = row.zfrFinanceId;
  897. this.open = true;
  898. this.title = "放款登记";
  899. },
  900. handleDetail(row) {
  901. this.reset();
  902. const zfrId = row.zfrId || this.ids;
  903. Cookies.set(
  904. "/financeRecord/detailFinanceRecord/" + zfrId,
  905. this.$route.fullPath
  906. );
  907. this.$router.push("/financeRecord/detailFinanceRecord/" + zfrId);
  908. },
  909. //盖章
  910. seal(row){
  911. const zfrId = row.zfrId || this.ids
  912. Cookies.set("/financeRecord/recordSeal/"+zfrId + "/", this.$route.fullPath)
  913. this.$router.push({ path: "/financeRecord/recordSeal/"+zfrId + "/" });
  914. },
  915. /** 提交审批 */
  916. handleApprove(row) {
  917. this.$confirm("确认要提交审批吗?", {
  918. confirmButtonText: "确定",
  919. cancelButtonText: "取消",
  920. type: "warning",
  921. })
  922. .then(function () {
  923. return examineApprove(row);
  924. })
  925. .then(() => {
  926. this.getList();
  927. this.msgSuccess("提交成功");
  928. })
  929. .catch(function () {});
  930. },
  931. /** 提交按钮 */
  932. submitForm() {
  933. this.$refs["form"].validate((valid) => {
  934. if (valid) {
  935. if (this.form.zfrId != null) {
  936. this.form.zfrLoanFile = this.fileList;
  937. updateRecord(this.form).then((response) => {
  938. this.msgSuccess("修改成功");
  939. this.open = false;
  940. this.getList();
  941. });
  942. } else {
  943. addRecord(this.form).then((response) => {
  944. this.msgSuccess("新增成功");
  945. this.open = false;
  946. this.getList();
  947. });
  948. }
  949. }
  950. });
  951. },
  952. /** 上传图片 */
  953. submitUpload() {
  954. this.$refs.upload.submit();
  955. },
  956. //文件移除提示
  957. handleRemove(file, fileList) {
  958. console.log(file);
  959. for (let i = 0; i < this.fileList.length; i++) {
  960. if (file.uid == this.fileList[i].uid) {
  961. this.fileList.splice(i, 1);
  962. break;
  963. }
  964. }
  965. this.noneBtnImg = fileList.length >= this.limitCountImg;
  966. //return this.$confirm(`确定移除 ${ file.name }?`);
  967. },
  968. dealImgChange(file, fileList) {
  969. this.noneBtnImg = fileList.length >= this.limitCountImg;
  970. },
  971. handleExceed(files, fileList) {
  972. this.$message.warning(`当前限制选择 1 个文件`);
  973. },
  974. handlePictureCardPreview(file) {
  975. this.dialogImageUrl = file.url;
  976. this.dialogVisible = true;
  977. },
  978. //手动上传文件触发
  979. httpRequest(param) {
  980. let fileObj = param.file; // 相当于input里取得的files
  981. let fd = new FormData(); // FormData 对象
  982. fd.append("file", fileObj); // 文件对象
  983. fd.append("fileType", "00"); //文件类型
  984. const loading = this.$loading({
  985. lock: true,
  986. text: "Loading",
  987. spinner: "el-icon-loading",
  988. background: "rgba(0, 0, 0, 0.7)",
  989. });
  990. uploadFileNew(fd)
  991. .then((response) => {
  992. if (response) {
  993. // this.form.eeiImgUrl = response.url
  994. this.fileList.push({
  995. uid: response.fileId,
  996. url: response.url + "/" + getToken(),
  997. });
  998. console.log(response.url);
  999. setTimeout(() => {
  1000. loading.close();
  1001. }, 2000);
  1002. }
  1003. })
  1004. .catch((response) => {
  1005. loading.close();
  1006. });
  1007. },
  1008. /** 删除按钮操作 */
  1009. handleDelete(row) {
  1010. const zfrIds = row.zfrId || this.ids;
  1011. this.$confirm(
  1012. '是否确认删除融资记录编号为"' + zfrIds + '"的数据项?',
  1013. "警告",
  1014. {
  1015. confirmButtonText: "确定",
  1016. cancelButtonText: "取消",
  1017. type: "warning",
  1018. }
  1019. )
  1020. .then(function () {
  1021. return delRecord(zfrIds);
  1022. })
  1023. .then(() => {
  1024. this.getList();
  1025. this.msgSuccess("删除成功");
  1026. });
  1027. },
  1028. /* 金额格式化 */
  1029. moneyFormat(row, column, cellValue) {
  1030. if(cellValue){
  1031. cellValue += "";
  1032. if (!cellValue.includes(".")) cellValue += ".";
  1033. return cellValue
  1034. .replace(/(\d)(?=(\d{3})+\.)/g, function($0, $1) {
  1035. return $1 + ",";
  1036. })
  1037. .replace(/\.$/, "");
  1038. }
  1039. },
  1040. //获取当前客户是否之前设置过列展示隐藏
  1041. columnQuery() {
  1042. //获取页面路径
  1043. var psfPagePath = window.location.pathname;
  1044. //用请求后台的url作为唯一标识
  1045. var psfTableName = this.tableId;
  1046. var columnForm = {};
  1047. columnForm.psfPagePath = psfPagePath;
  1048. columnForm.psfTableName = psfTableName;
  1049. columnQuery(columnForm).then(response => {
  1050. if (response.data && response.data.psfShowData) {
  1051. this.checkList = response.data.psfShowData;
  1052. }
  1053. this.filter();
  1054. });
  1055. },
  1056. //控制隐藏显示的函数
  1057. filter(checkList) {
  1058. if (this.activeName == "first") {
  1059. if (!!checkList) {
  1060. this.checkList = checkList;
  1061. }
  1062. this.columnfilter(this.firstSet, this.checkList, this.tableList, this.uncheckList);
  1063. } else if (this.activeName == "second") {
  1064. if (!!checkList) {
  1065. this.checkListOne = checkList;
  1066. }
  1067. this.columnfilter(this.firstSetOne, this.checkListOne, this.tableListOne, this.uncheckListOne);
  1068. } else if (this.activeName == "third") {
  1069. if (!!checkList) {
  1070. this.checkListTwo = checkList;
  1071. }
  1072. this.columnfilter(this.firstSetTwo, this.checkListTwo, this.tableListTwo, this.uncheckListTwo);
  1073. } else if (this.activeName == "fourth") {
  1074. if (!!checkList) {
  1075. this.checkListThree = checkList;
  1076. }
  1077. this.columnfilter(this.firstSetThree, this.checkListThree, this.tableListThree, this.uncheckListThree);
  1078. }
  1079. },
  1080. //获取当前客户是否之前设置过列展示隐藏
  1081. columnQueryOne() {
  1082. //获取页面路径
  1083. var psfPagePath = window.location.pathname;
  1084. //用请求后台的url作为唯一标识
  1085. var psfTableName = this.tableIdOne;
  1086. var columnForm = {};
  1087. columnForm.psfPagePath = psfPagePath;
  1088. columnForm.psfTableName = psfTableName;
  1089. columnQuery(columnForm).then(response => {
  1090. if (response.data && response.data.psfShowData) {
  1091. this.checkListOne = response.data.psfShowData;
  1092. }
  1093. this.filter();
  1094. });
  1095. },
  1096. //获取当前客户是否之前设置过列展示隐藏
  1097. columnQueryTwo() {
  1098. //获取页面路径
  1099. var psfPagePath = window.location.pathname;
  1100. //用请求后台的url作为唯一标识
  1101. var psfTableName = this.tableIdTwo;
  1102. var columnForm = {};
  1103. columnForm.psfPagePath = psfPagePath;
  1104. columnForm.psfTableName = psfTableName;
  1105. columnQuery(columnForm).then(response => {
  1106. if (response.data && response.data.psfShowData) {
  1107. this.checkListTwo = response.data.psfShowData;
  1108. }
  1109. this.filter();
  1110. });
  1111. },
  1112. //获取当前客户是否之前设置过列展示隐藏
  1113. columnQueryThree() {
  1114. //获取页面路径
  1115. var psfPagePath = window.location.pathname;
  1116. //用请求后台的url作为唯一标识
  1117. var psfTableName = this.tableIdThree;
  1118. var columnForm = {};
  1119. columnForm.psfPagePath = psfPagePath;
  1120. columnForm.psfTableName = psfTableName;
  1121. columnQuery(columnForm).then(response => {
  1122. if (response.data && response.data.psfShowData) {
  1123. this.checkListThree = response.data.psfShowData;
  1124. }
  1125. this.filter();
  1126. });
  1127. },
  1128. /** 导出按钮操作 */
  1129. handleExport(row) {
  1130. const zfrFinanceId = row.zfrFinanceId || this.ids;
  1131. this.download(
  1132. "sc-service_pxh/financeRecord/export/" + zfrFinanceId,
  1133. {},
  1134. `融资管理附件${this.parseTime(new Date(),'{y}{m}{d}{h}{m}{s}')}.zip`
  1135. );
  1136. },
  1137. columnfilter(firstSet, checkList, tableList, uncheckList){
  1138. if (this.activeName == "first") {
  1139. firstSet = this.firstSet;
  1140. } else if (this.activeName == "second") {
  1141. firstSet = this.firstSetOne;
  1142. } else if (this.activeName == "third") {
  1143. firstSet = this.firstSetTwo;
  1144. } else if (this.activeName == "fourth") {
  1145. firstSet = this.firstSetThree;
  1146. }
  1147. if (firstSet && checkList.length == 0) {
  1148. this.$message.warning("配置显示列不能为空!");
  1149. return;
  1150. }
  1151. if (this.activeName == "first") {
  1152. this.firstSet = true;
  1153. } else if (this.activeName == "second") {
  1154. this.firstSetOne = true;
  1155. } else if (this.activeName == "third") {
  1156. this.firstSetTwo = true;
  1157. } else if (this.activeName == "fourth") {
  1158. this.firstSetThree = true;
  1159. }
  1160. //初始化数据
  1161. if (checkList.length == 0) {
  1162. for (let index in tableList) {
  1163. let table = tableList[index];
  1164. checkList.push(table.label);
  1165. }
  1166. }
  1167. for (let index in tableList) {
  1168. let table = tableList[index];
  1169. uncheckList[table.label] = true;
  1170. }
  1171. //数据准备
  1172. for (let item in uncheckList) {
  1173. uncheckList[item] = false;
  1174. }
  1175. //数据处理
  1176. for (let index in checkList) {
  1177. let name = checkList[index];
  1178. if (name in uncheckList) {
  1179. uncheckList[name] = true;
  1180. }
  1181. }
  1182. this.$forceUpdate();
  1183. },
  1184. handleClick (tab, event) {
  1185. if (this.activeName == "first") {
  1186. this.columnQuery();
  1187. } else if (this.activeName == "second") {
  1188. this.columnQueryOne();
  1189. } else if (this.activeName == "third") {
  1190. this.columnQueryTwo();
  1191. } else if (this.activeName == "fourth") {
  1192. this.columnQueryThree();
  1193. }
  1194. }
  1195. },
  1196. };
  1197. </script>
  1198. <style>
  1199. .showUoload .el-upload--picture-card{
  1200. width:110px;
  1201. height:110px;
  1202. line-height:110px;
  1203. }
  1204. .uoloadSty .el-upload--picture-card{
  1205. display:none;
  1206. }
  1207. </style>