|
@@ -11,7 +11,7 @@
|
|
</div>
|
|
</div>
|
|
<hr style="margin-top: 16px;">
|
|
<hr style="margin-top: 16px;">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
|
|
- <el-form-item prop="rzScyName" label="资金方名称" v-if="this.companyType != '02'" size="large">
|
|
|
|
|
|
+ <!-- <el-form-item prop="rzScyName" label="资金方名称" v-if="companyType != '02'" size="large">
|
|
<el-input v-model="queryParams.rzScyName" placeholder="请输入资金方名称" clearable maxlength="25" />
|
|
<el-input v-model="queryParams.rzScyName" placeholder="请输入资金方名称" clearable maxlength="25" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="zfpName" label="融资产品" size="large">
|
|
<el-form-item prop="zfpName" label="融资产品" size="large">
|
|
@@ -22,15 +22,36 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="AmountB" size="large">
|
|
<el-form-item prop="AmountB" size="large">
|
|
<el-input v-model="queryParams.AmountB" placeholder="请输授信额度" clearable maxlength="20" />
|
|
<el-input v-model="queryParams.AmountB" placeholder="请输授信额度" clearable maxlength="20" />
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ <el-form-item label="授信类型" prop="zfpType" v-if="companyType != '02'" size="large">
|
|
|
|
+ <el-select v-model="queryParams.zfpType" placeholder="请选择类型" clearable>
|
|
|
|
+ <el-option v-for="dict in queryTypeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="类型" prop="zfpcrQuery" size="large">
|
|
|
|
+ <el-select v-model="queryParams.zfpcrQuery" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in queryTypesOptions"
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
+ v-if="dict.dictValue == '02' && companyType == '00'"
|
|
|
|
+ />
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="dict in queryTypesOptions"
|
|
|
|
+ :key="dict.dictValue"
|
|
|
|
+ :label="dict.dictLabel"
|
|
|
|
+ :value="dict.dictValue"
|
|
|
|
+ v-if="dict.dictValue != '02'"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item prop="zfpcrValue" v-if="this.queryParams.zfpcrQuery" size="large">
|
|
|
|
+ <el-input v-model="queryParams.zfpcrValue" placeholder="请输入关键字模糊查询" clearable maxlength="25"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="授信状态" prop="zfpcrStatus" size="large">
|
|
<el-form-item label="授信状态" prop="zfpcrStatus" size="large">
|
|
<el-select v-model="queryParams.zfpcrStatus" placeholder="请选择状态" clearable>
|
|
<el-select v-model="queryParams.zfpcrStatus" placeholder="请选择状态" clearable>
|
|
- <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="授信类型" prop="zfpType" v-if="this.companyType != '02'" size="large">
|
|
|
|
- <el-select v-model="queryParams.zfpType" placeholder="请选择类型" clearable>
|
|
|
|
- <el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
|
|
|
+ <el-option v-for="dict in queryStatusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="生效日期" prop="startTime" size="large">
|
|
<el-form-item label="生效日期" prop="startTime" size="large">
|
|
@@ -48,7 +69,7 @@
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-hasPermi="['credit:line:add']">新增</el-button>
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-hasPermi="['credit:line:add']">新增</el-button>
|
|
</div>
|
|
</div>
|
|
<!-- 供应商查看列表 -->
|
|
<!-- 供应商查看列表 -->
|
|
- <el-table class="zap-table" v-loading="loading" :data="creditLineList" @selection-change="handleSelectionChange" :row-key="rowKey" stripe :cell-style="changeCellStyle" v-if="this.companyType == '02'">
|
|
|
|
|
|
+ <el-table class="zap-table" v-loading="loading" :data="creditLineList" @selection-change="handleSelectionChange" :row-key="rowKey" stripe :cell-style="changeCellStyle" v-if="companyType == '02'">
|
|
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
|
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -66,25 +87,25 @@
|
|
<el-table-column label="授信状态" :formatter="statuFormat" align="center" prop="zfsqStatus" show-overflow-tooltip />
|
|
<el-table-column label="授信状态" :formatter="statuFormat" align="center" prop="zfsqStatus" show-overflow-tooltip />
|
|
</el-table>
|
|
</el-table>
|
|
<!-- -->
|
|
<!-- -->
|
|
- <el-table class="zap-table" v-loading="loading" :data="creditLineList" @selection-change="handleSelectionChange" :row-key="rowKey" stripe :cell-style="changeCellStyle" v-if="this.companyType != '02'">
|
|
|
|
|
|
+ <el-table class="zap-table" v-loading="loading" :data="creditLineList" @selection-change="handleSelectionChange" :row-key="rowKey" stripe :cell-style="changeCellStyle" v-if="companyType != '02'">
|
|
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
|
<!-- <el-table-column type="selection" width="50" align="center" :reserve-selection="true" /> -->
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
<span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="资金方" align="center" prop="rzScyName" show-overflow-tooltip v-if="uncheckList.rzScyName && this.companyType != '03'" />
|
|
|
|
|
|
+ <el-table-column label="资金方" align="center" prop="rzScyName" show-overflow-tooltip v-if="uncheckList.rzScyName && companyType != '03'" />
|
|
<el-table-column label="授信类型" :formatter="typeFormat" align="center" prop="zfpType" show-overflow-tooltip v-if="uncheckList.zfpType" />
|
|
<el-table-column label="授信类型" :formatter="typeFormat" align="center" prop="zfpType" show-overflow-tooltip v-if="uncheckList.zfpType" />
|
|
<el-table-column label="融资产品" align="center" prop="zfpName" v-if="uncheckList.zfpName" show-overflow-tooltip />
|
|
<el-table-column label="融资产品" align="center" prop="zfpName" v-if="uncheckList.zfpName" show-overflow-tooltip />
|
|
- <el-table-column label="企业名称" align="center" prop="scyName" v-if="uncheckList.scyName && this.companyType != '01'" show-overflow-tooltip />
|
|
|
|
- <el-table-column label="企业代码" align="center" prop="scySocialCode" v-if="uncheckList.scySocialCode && this.companyType == '00'" show-overflow-tooltip />
|
|
|
|
|
|
+ <el-table-column label="企业名称" align="center" prop="scyName" v-if="uncheckList.scyName && companyType != '01'" show-overflow-tooltip />
|
|
|
|
+ <el-table-column label="企业代码" align="center" prop="scySocialCode" v-if="uncheckList.scySocialCode && companyType == '00'" show-overflow-tooltip />
|
|
<el-table-column label="授信额度" :formatter="moneyFormat" align="center" prop="zfpcrAmount" show-overflow-tooltip v-if="uncheckList.zfpcrAmount" width="120" />
|
|
<el-table-column label="授信额度" :formatter="moneyFormat" align="center" prop="zfpcrAmount" show-overflow-tooltip v-if="uncheckList.zfpcrAmount" width="120" />
|
|
<el-table-column label="利率(%)" align="center" prop="zfpcrRate" v-if="uncheckList.zfpcrRate" width="120" />
|
|
<el-table-column label="利率(%)" align="center" prop="zfpcrRate" v-if="uncheckList.zfpcrRate" width="120" />
|
|
<!-- <el-table-column label="已分割额度" :formatter="moneyFormat" align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/> -->
|
|
<!-- <el-table-column label="已分割额度" :formatter="moneyFormat" align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/> -->
|
|
<el-table-column label="已使用额度" :formatter="moneyFormat" align="center" prop="zfiAmount" v-if="uncheckList.zfiAmount" width="120" />
|
|
<el-table-column label="已使用额度" :formatter="moneyFormat" align="center" prop="zfiAmount" v-if="uncheckList.zfiAmount" width="120" />
|
|
<el-table-column label="已分配额度" :formatter="moneyFormat" align="center" prop="supplierAmount" v-if="uncheckList.supplierAmount" width="120" />
|
|
<el-table-column label="已分配额度" :formatter="moneyFormat" align="center" prop="supplierAmount" v-if="uncheckList.supplierAmount" width="120" />
|
|
- <el-table-column label="可用额度" :formatter="moneyFormat" align="center" prop="usableAmount" v-if="uncheckList.usableAmount && (this.companyType != '02')" width="120" />
|
|
|
|
- <el-table-column label="生效日期" align="center" prop="zfpcrStartDate" v-if="uncheckList.zfpcrStartDate && (this.companyType != '01'|| this.companyType != '03')" show-overflow-tooltip />
|
|
|
|
|
|
+ <el-table-column label="可用额度" :formatter="moneyFormat" align="center" prop="usableAmount" v-if="uncheckList.usableAmount && (companyType != '02')" width="120" />
|
|
|
|
+ <el-table-column label="生效日期" align="center" prop="zfpcrStartDate" v-if="uncheckList.zfpcrStartDate && (companyType != '01'|| companyType != '03')" show-overflow-tooltip />
|
|
<el-table-column label="到期日期" align="center" prop="zfpcrEndDate" v-if="uncheckList.zfpcrEndDate" show-overflow-tooltip />
|
|
<el-table-column label="到期日期" align="center" prop="zfpcrEndDate" v-if="uncheckList.zfpcrEndDate" show-overflow-tooltip />
|
|
<el-table-column label="授信状态" :formatter="statusFormat" align="center" prop="zfpcrStatus" v-if="uncheckList.zfpcrStatus" show-overflow-tooltip />
|
|
<el-table-column label="授信状态" :formatter="statusFormat" align="center" prop="zfpcrStatus" v-if="uncheckList.zfpcrStatus" show-overflow-tooltip />
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250">
|
|
@@ -112,15 +133,10 @@ import {
|
|
changeStatus
|
|
changeStatus
|
|
} from "@/api/service/creditLine/creditLine";
|
|
} from "@/api/service/creditLine/creditLine";
|
|
import Cookies from 'js-cookie'
|
|
import Cookies from 'js-cookie'
|
|
-import {
|
|
|
|
- columnQuery,
|
|
|
|
- columnfilter
|
|
|
|
-} from "@/api/common/columnSetting";
|
|
|
|
|
|
+import { columnQuery, columnfilter} from "@/api/common/columnSetting";
|
|
import ColumnSetting from "../../../components/Table/columnSetting.vue";
|
|
import ColumnSetting from "../../../components/Table/columnSetting.vue";
|
|
-import {
|
|
|
|
- getPreMonthDay,
|
|
|
|
- getCurrentDateStr
|
|
|
|
-} from "@/api/common/getDateUtils";
|
|
|
|
|
|
+import { getPreMonthDay, getCurrentDateStr} from "@/api/common/getDateUtils";
|
|
|
|
+import { getUserProfile } from "@/api/system/user";
|
|
export default {
|
|
export default {
|
|
name: "CreditLine",
|
|
name: "CreditLine",
|
|
components: {
|
|
components: {
|
|
@@ -129,7 +145,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//企业类型
|
|
//企业类型
|
|
- companyType: '',
|
|
|
|
|
|
+ companyType: null,
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
//弹窗是否禁用
|
|
//弹窗是否禁用
|
|
@@ -154,6 +170,13 @@ export default {
|
|
statuOptions: [],
|
|
statuOptions: [],
|
|
//授信类型(融资产品类型)
|
|
//授信类型(融资产品类型)
|
|
typeOptions: [],
|
|
typeOptions: [],
|
|
|
|
+ //筛选条件字典
|
|
|
|
+ //授信类型
|
|
|
|
+ queryTypeOptions: [],
|
|
|
|
+ //授信状态
|
|
|
|
+ queryStatusOptions: [],
|
|
|
|
+ //类型
|
|
|
|
+ queryTypesOptions: [],
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
title: "",
|
|
title: "",
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
@@ -177,7 +200,7 @@ export default {
|
|
zfpcrAccount: null,
|
|
zfpcrAccount: null,
|
|
zfpcrLoanType: null,
|
|
zfpcrLoanType: null,
|
|
zfpcrBookkeepingType: null,
|
|
zfpcrBookkeepingType: null,
|
|
- zfpcrStatus: null,
|
|
|
|
|
|
+ zfpcrStatus: '02',
|
|
zfpcrProfitSpare1: null,
|
|
zfpcrProfitSpare1: null,
|
|
zfpcrProfitSpare2: null,
|
|
zfpcrProfitSpare2: null,
|
|
zfpcrProfitSpare3: null,
|
|
zfpcrProfitSpare3: null,
|
|
@@ -192,8 +215,10 @@ export default {
|
|
AmountB: null,
|
|
AmountB: null,
|
|
startTime: [],
|
|
startTime: [],
|
|
endTime: [],
|
|
endTime: [],
|
|
- zfpType: null,
|
|
|
|
- zfpName: null
|
|
|
|
|
|
+ zfpType: '2',
|
|
|
|
+ zfpName: null,
|
|
|
|
+ zfpcrQuery: null,
|
|
|
|
+ zfpcrValue: null,
|
|
},
|
|
},
|
|
options: [],
|
|
options: [],
|
|
// 表单参数
|
|
// 表单参数
|
|
@@ -308,7 +333,7 @@ export default {
|
|
created() {
|
|
created() {
|
|
// this.$set(this.queryParams, 'startTime',[this.parseTime(getPreMonthDay(getCurrentDateStr(),3), '{y}-{m}-{d}'), this.parseTime(getCurrentDateStr(), '{y}-{m}-{d}')]);
|
|
// this.$set(this.queryParams, 'startTime',[this.parseTime(getPreMonthDay(getCurrentDateStr(),3), '{y}-{m}-{d}'), this.parseTime(getCurrentDateStr(), '{y}-{m}-{d}')]);
|
|
// this.$set(this.queryParams, 'endTime',[this.parseTime(getPreMonthDay(getCurrentDateStr(),3), '{y}-{m}-{d}'), this.parseTime(getCurrentDateStr(), '{y}-{m}-{d}')]);
|
|
// this.$set(this.queryParams, 'endTime',[this.parseTime(getPreMonthDay(getCurrentDateStr(),3), '{y}-{m}-{d}'), this.parseTime(getCurrentDateStr(), '{y}-{m}-{d}')]);
|
|
- this.getList();
|
|
|
|
|
|
+
|
|
// this.getContractList();
|
|
// this.getContractList();
|
|
this.getDicts("zc_zfpcr_status").then(response => {
|
|
this.getDicts("zc_zfpcr_status").then(response => {
|
|
this.statusOptions = response.data;
|
|
this.statusOptions = response.data;
|
|
@@ -316,9 +341,17 @@ export default {
|
|
this.getDicts("zc_zfp_type").then(response => {
|
|
this.getDicts("zc_zfp_type").then(response => {
|
|
this.typeOptions = response.data;
|
|
this.typeOptions = response.data;
|
|
});
|
|
});
|
|
|
|
+ this.getDicts("zc_zfp_queryType").then(response => {
|
|
|
|
+ this.queryTypeOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getDicts("zc_zfpcr_queryStatus").then(response => {
|
|
|
|
+ this.queryStatusOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getList().then(() => {
|
|
|
|
+ this.queryParams.zfpcrQuery = "00";
|
|
|
|
+ });
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
- this.getList();
|
|
|
|
// this.getContractList();
|
|
// this.getContractList();
|
|
this.getDicts("zc_zfpcr_status").then(response => {
|
|
this.getDicts("zc_zfpcr_status").then(response => {
|
|
this.statusOptions = response.data;
|
|
this.statusOptions = response.data;
|
|
@@ -329,6 +362,18 @@ export default {
|
|
this.getDicts("zc_zfp_type").then(response => {
|
|
this.getDicts("zc_zfp_type").then(response => {
|
|
this.typeOptions = response.data;
|
|
this.typeOptions = response.data;
|
|
});
|
|
});
|
|
|
|
+ this.getDicts("zc_zfp_queryType").then(response => {
|
|
|
|
+ this.queryTypeOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getDicts("zc_zfpcr_queryStatus").then(response => {
|
|
|
|
+ this.queryStatusOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getDicts("zc_zfpcr_queryType").then(response => {
|
|
|
|
+ this.queryTypesOptions = response.data;
|
|
|
|
+ });
|
|
|
|
+ this.getList().then(() => {
|
|
|
|
+ this.queryParams.zfpcrQuery = "00";
|
|
|
|
+ });
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.columnQuery();
|
|
this.columnQuery();
|
|
@@ -337,14 +382,19 @@ export default {
|
|
/** 查询授信信息列表 */
|
|
/** 查询授信信息列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- listCreditLine(this.queryParams).then(response => {
|
|
|
|
|
|
+ return listCreditLine(this.queryParams).then(response => {
|
|
debugger
|
|
debugger
|
|
this.creditLineList = response.data.records;
|
|
this.creditLineList = response.data.records;
|
|
if (response.data.records[0]) {
|
|
if (response.data.records[0]) {
|
|
this.companyType = response.data.records[0].companyType
|
|
this.companyType = response.data.records[0].companyType
|
|
|
|
+ console.log(this.companyType,"企业类型")
|
|
}
|
|
}
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
- this.loading = false
|
|
|
|
|
|
+ this.loading = false;
|
|
|
|
+ return Promise.resolve(response);
|
|
|
|
+ }).catch(response => {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ return Promise.reject("error");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|