|
@@ -1,13 +1,14 @@
|
|
|
<template>
|
|
|
- <el-tabs type="border-card">
|
|
|
+ <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
|
|
|
<!-- 全部table页 -->
|
|
|
- <el-tab-pane label="全部">
|
|
|
+ <el-tab-pane label="全部" name = "first">
|
|
|
<el-card class="fiche">
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
|
|
|
<span style="margin-bottom: 10px;color: #333333;font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif;">所选条件:</span>
|
|
|
<div style="float: right; margin-right: 1%">
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" style="float: ">重置</el-button>
|
|
|
+ <column-setting :checkList="checkList" :tableList="tableList" :selfDom="selfDom" :tableId="tableId" style="margin-left:5px"></column-setting>
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px" />
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
@@ -60,16 +61,17 @@
|
|
|
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="开立方" align="center" prop="coreScyName" />
|
|
|
- <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" />
|
|
|
- <el-table-column label="融资利率" align="center" prop="zfrRate" />
|
|
|
- <el-table-column label="经办人" align="center" prop="nickName" />
|
|
|
- <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus"/>
|
|
|
+ <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
|
|
|
+ <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
|
|
|
+ <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
|
|
|
+ <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
|
|
|
+ <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
|
|
|
+ <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
|
|
|
+ <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
|
|
|
+ <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
|
|
|
+ <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
|
|
|
+ <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
|
|
|
+ <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -127,13 +129,14 @@
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<!-- 融资中table页 -->
|
|
|
- <el-tab-pane label="融资中">
|
|
|
+ <el-tab-pane label="融资中" name = "second">
|
|
|
<el-card class="fiche">
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
|
|
|
<span style="margin-bottom: 10px;color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif;">所选条件:</span>
|
|
|
<div style="float: right; margin-right: 1%">
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryIng" >搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQueryIng" style="float: ">重置</el-button>
|
|
|
+ <column-setting :checkList="checkListOne" :tableList="tableListOne" :selfDom="selfDom" :tableId="tableIdOne" style="margin-left:5px"></column-setting>
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px" />
|
|
|
<el-form
|
|
@@ -180,16 +183,17 @@
|
|
|
<span>{{(queryParamsIng.pageNum - 1) * queryParamsIng.pageSize +scope.$index + 1}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="开立方" align="center" prop="coreScyName" />
|
|
|
- <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" />
|
|
|
- <el-table-column label="融资利率" align="center" prop="zfrRate" />
|
|
|
- <el-table-column label="经办人" align="center" prop="nickName" />
|
|
|
- <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus"/>
|
|
|
+ <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
|
|
|
+ <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
|
|
|
+ <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
|
|
|
+ <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
|
|
|
+ <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
|
|
|
+ <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
|
|
|
+ <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
|
|
|
+ <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
|
|
|
+ <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
|
|
|
+ <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
|
|
|
+ <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -239,13 +243,14 @@
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<!-- 已放款table页 -->
|
|
|
- <el-tab-pane label="已放款">
|
|
|
+ <el-tab-pane label="已放款" name = "third">
|
|
|
<el-card class="fiche">
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
|
|
|
<span style="margin-bottom: 10px; color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;">所选条件:</span>
|
|
|
<div style="float: right; margin-right: 1%">
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryEnd" >搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQueryEnd" style="float: " >重置</el-button>
|
|
|
+ <column-setting :checkList="checkListTwo" :tableList="tableListTwo" :selfDom="selfDom" :tableId="tableIdTwo" style="margin-left:5px"></column-setting>
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px" />
|
|
|
<el-form
|
|
@@ -298,16 +303,17 @@
|
|
|
<span>{{ (queryParamsEnd.pageNum - 1) * queryParamsEnd.pageSize + scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="开立方" align="center" prop="coreScyName" />
|
|
|
- <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" />
|
|
|
- <el-table-column label="融资利率" align="center" prop="zfrRate" />
|
|
|
- <el-table-column label="经办人" align="center" prop="nickName" />
|
|
|
- <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus"/>
|
|
|
+ <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
|
|
|
+ <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
|
|
|
+ <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
|
|
|
+ <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
|
|
|
+ <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
|
|
|
+ <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
|
|
|
+ <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
|
|
|
+ <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
|
|
|
+ <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
|
|
|
+ <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
|
|
|
+ <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -348,13 +354,14 @@
|
|
|
/>
|
|
|
</el-tab-pane>
|
|
|
<!-- 融资失败table页 -->
|
|
|
- <el-tab-pane label="融资失败">
|
|
|
+ <el-tab-pane label="融资失败" name = "fourth">
|
|
|
<el-card class="fiche">
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
|
|
|
<span style="margin-bottom: 10px; color: #333333; font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif;">所选条件:</span>
|
|
|
<div style="float: right; margin-right: 1%">
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryLose" >搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQueryLose" style="float: " >重置</el-button>
|
|
|
+ <column-setting :checkList="checkListThree" :tableList="tableListThree" :selfDom="selfDom" :tableId="tableIdThree" style="margin-left:5px"></column-setting>
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px" />
|
|
|
<el-form
|
|
@@ -401,16 +408,17 @@
|
|
|
<span>{{ (queryParamsLose.pageNum - 1) * queryParamsLose.pageSize + scope.$index + 1}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="开立方" align="center" prop="coreScyName" />
|
|
|
- <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" />
|
|
|
- <el-table-column label="融资利率" align="center" prop="zfrRate" />
|
|
|
- <el-table-column label="经办人" align="center" prop="nickName" />
|
|
|
- <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus"/>
|
|
|
+ <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
|
|
|
+ <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
|
|
|
+ <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
|
|
|
+ <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
|
|
|
+ <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
|
|
|
+ <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
|
|
|
+ <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
|
|
|
+ <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
|
|
|
+ <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
|
|
|
+ <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
|
|
|
+ <el-table-column label="融资状态" :formatter="statusFormat" align="center" prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -453,16 +461,10 @@
|
|
|
<!-- 添加或修改融资记录对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item
|
|
|
- label="实际放款金额"
|
|
|
- prop="zfrLoanAmount"
|
|
|
- label-width="100px"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="form.zfrLoanAmount"
|
|
|
- placeholder="实际放款金额"
|
|
|
- style="width: 284px"
|
|
|
- />
|
|
|
+ <el-form-item label="实际放款金额" prop="zfrLoanAmount" label-width="100px" >
|
|
|
+ <el-input v-model="form.zfrLoanAmount" placeholder="实际放款金额" style="width: 284px">
|
|
|
+ <template slot="append">万元</template>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="上传附件">
|
|
|
<el-upload
|
|
@@ -494,20 +496,10 @@
|
|
|
>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="融资id"
|
|
|
- prop="zfrId"
|
|
|
- label-width="90px"
|
|
|
- v-if="false"
|
|
|
- >
|
|
|
+ <el-form-item label="融资id" prop="zfrId" label-width="90px" v-if="false">
|
|
|
<el-input v-model="form.zfrId" style="width: 284px" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- label="融信id"
|
|
|
- prop="zfrFinanceId"
|
|
|
- label-width="90px"
|
|
|
- v-if="false"
|
|
|
- >
|
|
|
+ <el-form-item label="融信id" prop="zfrFinanceId" label-width="90px" v-if="false">
|
|
|
<el-input v-model="form.zfrFinanceId" style="width: 284px" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -534,9 +526,11 @@ import {
|
|
|
import { uploadFileNew } from "@/api/common/file";
|
|
|
import Cookies from "js-cookie";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
+import { columnQuery } from "@/api/common/columnSetting";
|
|
|
+import ColumnSetting from "../../../components/Table/columnSetting.vue";
|
|
|
export default {
|
|
|
name: "finaceRecord",
|
|
|
- components: {},
|
|
|
+ components: {ColumnSetting},
|
|
|
data() {
|
|
|
return {
|
|
|
//上传使用
|
|
@@ -662,12 +656,86 @@ export default {
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
+ //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用--全部
|
|
|
+ tableList: [
|
|
|
+ {label: "zfiNumner", value: "融信编号"},
|
|
|
+ {label: "zfrNumber", value: "融资编号"},
|
|
|
+ {label: 'coreScyName', value: '开立方'},
|
|
|
+ {label: 'zfrAmount', value: '融资金额'},
|
|
|
+ {label: "zfrRate", value: "融资利率"},
|
|
|
+ {label: "nickName", value: "经办人"},
|
|
|
+ {label: "zfrExpireDate", value: "承诺还款时间"},
|
|
|
+ {label: "zfrApplyDate", value: "融资申请日期"},
|
|
|
+ {label: 'zfrLoanAmount', value: '实际放款金额'},
|
|
|
+ {label: "zfrLoanDate", value: "融资放款日期"},
|
|
|
+ {label: "zfrStatus", value: "融资状态"},
|
|
|
+ ],
|
|
|
+ checkList: [], //筛选列选中的数据列表--显示隐藏列用
|
|
|
+ uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
|
|
|
+ firstSet : false,
|
|
|
+ tableId: "/sc-service/financeRecord/list/all",
|
|
|
+ //融资中
|
|
|
+ tableListOne: [
|
|
|
+ {label: "zfiNumner", value: "融信编号"},
|
|
|
+ {label: "zfrNumber", value: "融资编号"},
|
|
|
+ {label: 'coreScyName', value: '开立方'},
|
|
|
+ {label: 'zfrAmount', value: '融资金额'},
|
|
|
+ {label: "zfrRate", value: "融资利率"},
|
|
|
+ {label: "nickName", value: "经办人"},
|
|
|
+ {label: "zfrExpireDate", value: "承诺还款时间"},
|
|
|
+ {label: "zfrApplyDate", value: "融资申请日期"},
|
|
|
+ {label: 'zfrLoanAmount', value: '实际放款金额'},
|
|
|
+ {label: "zfrLoanDate", value: "融资放款日期"},
|
|
|
+ {label: "zfrStatus", value: "融资状态"},
|
|
|
+ ],
|
|
|
+ checkListOne: [], //筛选列选中的数据列表--显示隐藏列用
|
|
|
+ uncheckListOne: {}, //控制筛选列显示隐藏--显示隐藏列用
|
|
|
+ firstSetOne: false,
|
|
|
+ tableIdOne: "/sc-service/financeRecord/list/one",
|
|
|
+ //已放款
|
|
|
+ tableListTwo: [
|
|
|
+ {label: "zfiNumner", value: "融信编号"},
|
|
|
+ {label: "zfrNumber", value: "融资编号"},
|
|
|
+ {label: 'coreScyName', value: '开立方'},
|
|
|
+ {label: 'zfrAmount', value: '融资金额'},
|
|
|
+ {label: "zfrRate", value: "融资利率"},
|
|
|
+ {label: "nickName", value: "经办人"},
|
|
|
+ {label: "zfrExpireDate", value: "承诺还款时间"},
|
|
|
+ {label: "zfrApplyDate", value: "融资申请日期"},
|
|
|
+ {label: 'zfrLoanAmount', value: '实际放款金额'},
|
|
|
+ {label: "zfrLoanDate", value: "融资放款日期"},
|
|
|
+ {label: "zfrStatus", value: "融资状态"},
|
|
|
+ ],
|
|
|
+ checkListTwo: [], //筛选列选中的数据列表--显示隐藏列用
|
|
|
+ uncheckListTwo: {}, //控制筛选列显示隐藏--显示隐藏列用
|
|
|
+ firstSetTwo: false,
|
|
|
+ tableIdTwo: "/sc-service/financeRecord/list/two",
|
|
|
+ //放款失败
|
|
|
+ tableListThree: [
|
|
|
+ {label: "zfiNumner", value: "融信编号"},
|
|
|
+ {label: "zfrNumber", value: "融资编号"},
|
|
|
+ {label: 'coreScyName', value: '开立方'},
|
|
|
+ {label: 'zfrAmount', value: '融资金额'},
|
|
|
+ {label: "zfrRate", value: "融资利率"},
|
|
|
+ {label: "nickName", value: "经办人"},
|
|
|
+ {label: "zfrExpireDate", value: "承诺还款时间"},
|
|
|
+ {label: "zfrApplyDate", value: "融资申请日期"},
|
|
|
+ {label: 'zfrLoanAmount', value: '实际放款金额'},
|
|
|
+ {label: "zfrLoanDate", value: "融资放款日期"},
|
|
|
+ {label: "zfrStatus", value: "融资状态"},
|
|
|
+ ],
|
|
|
+ checkListThree: [], //筛选列选中的数据列表--显示隐藏列用
|
|
|
+ uncheckListThree: {}, //控制筛选列显示隐藏--显示隐藏列用
|
|
|
+ firstSetThree: false,
|
|
|
+ tableIdThree: "/sc-service/financeRecord/list/three",
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
zfrloanAmount: [
|
|
|
{ required: true, message: "放款金额不能为空", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
+ selfDom : this,
|
|
|
+ activeName : "first"
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -694,6 +762,9 @@ export default {
|
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.columnQuery();
|
|
|
+ },
|
|
|
methods: {
|
|
|
/** 查询全部融资记录列表 */
|
|
|
getList() {
|
|
@@ -1001,6 +1072,98 @@ export default {
|
|
|
.replace(/\.$/, "");
|
|
|
}
|
|
|
},
|
|
|
+ //获取当前客户是否之前设置过列展示隐藏
|
|
|
+ columnQuery() {
|
|
|
+ //获取页面路径
|
|
|
+ var psfPagePath = window.location.pathname;
|
|
|
+ //用请求后台的url作为唯一标识
|
|
|
+ var psfTableName = this.tableId;
|
|
|
+ var columnForm = {};
|
|
|
+ columnForm.psfPagePath = psfPagePath;
|
|
|
+ columnForm.psfTableName = psfTableName;
|
|
|
+ columnQuery(columnForm).then(response => {
|
|
|
+ if (response.data && response.data.psfShowData) {
|
|
|
+ this.checkList = response.data.psfShowData;
|
|
|
+ }
|
|
|
+ this.filter();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //控制隐藏显示的函数
|
|
|
+ filter(checkList) {
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ if (!!checkList) {
|
|
|
+ this.checkList = checkList;
|
|
|
+ }
|
|
|
+ this.columnfilter(this.firstSet, this.checkList, this.tableList, this.uncheckList);
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ if (!!checkList) {
|
|
|
+ this.checkListOne = checkList;
|
|
|
+ }
|
|
|
+ this.columnfilter(this.firstSetOne, this.checkListOne, this.tableListOne, this.uncheckListOne);
|
|
|
+ } else if (this.activeName == "third") {
|
|
|
+ if (!!checkList) {
|
|
|
+ this.checkListTwo = checkList;
|
|
|
+ }
|
|
|
+ this.columnfilter(this.firstSetTwo, this.checkListTwo, this.tableListTwo, this.uncheckListTwo);
|
|
|
+ } else if (this.activeName == "fourth") {
|
|
|
+ if (!!checkList) {
|
|
|
+ this.checkListThree = checkList;
|
|
|
+ }
|
|
|
+ this.columnfilter(this.firstSetThree, this.checkListThree, this.tableListThree, this.uncheckListThree);
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ //获取当前客户是否之前设置过列展示隐藏
|
|
|
+ columnQueryOne() {
|
|
|
+ //获取页面路径
|
|
|
+ var psfPagePath = window.location.pathname;
|
|
|
+ //用请求后台的url作为唯一标识
|
|
|
+ var psfTableName = this.tableIdOne;
|
|
|
+ var columnForm = {};
|
|
|
+ columnForm.psfPagePath = psfPagePath;
|
|
|
+ columnForm.psfTableName = psfTableName;
|
|
|
+ columnQuery(columnForm).then(response => {
|
|
|
+ if (response.data && response.data.psfShowData) {
|
|
|
+ this.checkListOne = response.data.psfShowData;
|
|
|
+ }
|
|
|
+ this.filter();
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ //获取当前客户是否之前设置过列展示隐藏
|
|
|
+ columnQueryTwo() {
|
|
|
+ //获取页面路径
|
|
|
+ var psfPagePath = window.location.pathname;
|
|
|
+ //用请求后台的url作为唯一标识
|
|
|
+ var psfTableName = this.tableIdTwo;
|
|
|
+ var columnForm = {};
|
|
|
+ columnForm.psfPagePath = psfPagePath;
|
|
|
+ columnForm.psfTableName = psfTableName;
|
|
|
+ columnQuery(columnForm).then(response => {
|
|
|
+ if (response.data && response.data.psfShowData) {
|
|
|
+ this.checkListTwo = response.data.psfShowData;
|
|
|
+ }
|
|
|
+ this.filter();
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ //获取当前客户是否之前设置过列展示隐藏
|
|
|
+ columnQueryThree() {
|
|
|
+ //获取页面路径
|
|
|
+ var psfPagePath = window.location.pathname;
|
|
|
+ //用请求后台的url作为唯一标识
|
|
|
+ var psfTableName = this.tableIdThree;
|
|
|
+ var columnForm = {};
|
|
|
+ columnForm.psfPagePath = psfPagePath;
|
|
|
+ columnForm.psfTableName = psfTableName;
|
|
|
+ columnQuery(columnForm).then(response => {
|
|
|
+ if (response.data && response.data.psfShowData) {
|
|
|
+ this.checkListThree = response.data.psfShowData;
|
|
|
+ }
|
|
|
+ this.filter();
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport(row) {
|
|
|
const zfrFinanceId = row.zfrFinanceId || this.ids;
|
|
@@ -1010,6 +1173,66 @@ export default {
|
|
|
`融资管理附件${this.parseTime(new Date(),'{y}{m}{d}{h}{m}{s}')}.zip`
|
|
|
);
|
|
|
},
|
|
|
+
|
|
|
+ columnfilter(firstSet, checkList, tableList, uncheckList){
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ firstSet = this.firstSet;
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ firstSet = this.firstSetOne;
|
|
|
+ } else if (this.activeName == "third") {
|
|
|
+ firstSet = this.firstSetTwo;
|
|
|
+ } else if (this.activeName == "fourth") {
|
|
|
+ firstSet = this.firstSetThree;
|
|
|
+ }
|
|
|
+ if (firstSet && checkList.length == 0) {
|
|
|
+ this.$message.warning("配置显示列不能为空!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ this.firstSet = true;
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ this.firstSetOne = true;
|
|
|
+ } else if (this.activeName == "third") {
|
|
|
+ this.firstSetTwo = true;
|
|
|
+ } else if (this.activeName == "fourth") {
|
|
|
+ this.firstSetThree = true;
|
|
|
+ }
|
|
|
+ //初始化数据
|
|
|
+ if (checkList.length == 0) {
|
|
|
+ for (let index in tableList) {
|
|
|
+ let table = tableList[index];
|
|
|
+ checkList.push(table.label);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let index in tableList) {
|
|
|
+ let table = tableList[index];
|
|
|
+ uncheckList[table.label] = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ //数据准备
|
|
|
+ for (let item in uncheckList) {
|
|
|
+ uncheckList[item] = false;
|
|
|
+ }
|
|
|
+ //数据处理
|
|
|
+ for (let index in checkList) {
|
|
|
+ let name = checkList[index];
|
|
|
+ if (name in uncheckList) {
|
|
|
+ uncheckList[name] = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+ handleClick (tab, event) {
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ this.columnQuery();
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ this.columnQueryOne();
|
|
|
+ } else if (this.activeName == "third") {
|
|
|
+ this.columnQueryTwo();
|
|
|
+ } else if (this.activeName == "fourth") {
|
|
|
+ this.columnQueryThree();
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|