|
@@ -12,7 +12,24 @@
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParams" ref="queryForm" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
<el-row>
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParams.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParams.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParams.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParams.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParams.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParams.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -107,7 +124,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</el-row>
|
|
@@ -122,7 +139,24 @@
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParamsOpening" ref="queryFormOpening" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParamsOpening.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParamsOpening.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParamsOpening.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParamsOpening.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParamsOpening.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParamsOpening.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -217,7 +251,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQueryOpening"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<!-- <el-form-item label="状态" prop="zfiStatus">
|
|
|
<el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
|
|
|
<el-option
|
|
@@ -241,7 +275,24 @@
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParamsSign" ref="queryFormSign" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParamsSign.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParamsSign.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParamsSign.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParamsSign.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParamsSign.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParamsSign.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -336,7 +387,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQuerySign"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
<el-row v-else-if="activeIndex === '3'" class="zap-table-search">
|
|
@@ -350,7 +401,24 @@
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParamsFinancing" ref="queryFormFinancing" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParamsFinancing.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParamsFinancing.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParamsFinancing.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParamsFinancing.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParamsFinancing.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParamsFinancing.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -445,7 +513,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQueryFinancing"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
<el-row v-else-if="activeIndex === '4'" class="zap-table-search">
|
|
@@ -459,7 +527,24 @@
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParamsFinanced" ref="queryFormFinanced" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParamsFinanced.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParamsFinanced.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParamsFinanced.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParamsFinanced.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParamsFinanced.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParamsFinanced.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -554,7 +639,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQueryFinanced"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
<el-row v-else-if="activeIndex === '5'" class="zap-table-search">
|
|
@@ -568,7 +653,24 @@
|
|
|
</div>
|
|
|
<hr style="margin-top: 16px;">
|
|
|
<el-form class="zap-table-search__form" :model="queryParamsInvalid" ref="queryFormInvalid" :inline="true" v-if="showSearch" label-width="68px">
|
|
|
- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
+ <el-form-item prop="zfiTypes" size="large">
|
|
|
+ <el-select v-model="queryParamsInvalid.zfiTypes" clearable>
|
|
|
+ <el-option v-for="dict in typesOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiQuery" size="large">
|
|
|
+ <el-select v-model="queryParamsInvalid.zfiQuery" clearable>
|
|
|
+ <el-option v-for="dict in queryOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="zfiValue" v-if="this.queryParamsInvalid.zfiQuery" size="large">
|
|
|
+ <el-input v-model="queryParamsInvalid.zfiValue" placeholder="请输入关键字模糊查询" clearable maxlength="25" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="承诺付款日期" prop="zfiExpireDate" label-width="96px" size="large">
|
|
|
+ <el-date-picker v-model="queryParamsInvalid.zfiExpireDate" unlink-panels value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="融信编码" prop="zfiNumber">
|
|
|
<el-input
|
|
|
v-model.trim="queryParamsInvalid.zfiNumber"
|
|
|
placeholder="请输入融信编码"
|
|
@@ -663,7 +765,7 @@
|
|
|
maxlength="25"
|
|
|
@keyup.enter.native="handleQueryInvalid"
|
|
|
/>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<!-- <el-form-item label="状态" prop="zfiStatus">
|
|
|
<el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
|
|
|
<el-option
|
|
@@ -1723,7 +1825,8 @@ import {creditRefuse,creditDel} from "@/api/service/credit/creditHandle";
|
|
|
import Editor from '@/components/Editor';
|
|
|
import {listCompanyHandler} from "@/api/common/companyHandler";
|
|
|
import FlowDetail from "@/views/service/credit/flowDetail";
|
|
|
-import Cookies from 'js-cookie'
|
|
|
+import Cookies from 'js-cookie';
|
|
|
+import { getUserProfile} from "@/api/system/user";
|
|
|
export default {
|
|
|
name: "invoice",
|
|
|
components: {
|
|
@@ -1778,6 +1881,9 @@ export default {
|
|
|
endAmt:undefined,
|
|
|
//当前企业类型
|
|
|
companyType:'',
|
|
|
+ //筛选条件数据字典
|
|
|
+ typesOptions: [],
|
|
|
+ queryOptions: [],
|
|
|
// 查询参数
|
|
|
queryParams:{
|
|
|
pageNum: 1,
|
|
@@ -1791,7 +1897,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
// 待签收查询参数
|
|
|
queryParamsSign:{
|
|
@@ -1806,7 +1915,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
//融资中查询参数
|
|
|
queryParamsFinancing:{
|
|
@@ -1821,7 +1933,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
//开立中查询参数
|
|
|
queryParamsOpening:{
|
|
@@ -1836,7 +1951,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
//已融资搜索
|
|
|
queryParamsFinanced:{
|
|
@@ -1851,7 +1969,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
//已失效
|
|
|
queryParamsInvalid:{
|
|
@@ -1866,7 +1987,10 @@ export default {
|
|
|
zfpName:null,
|
|
|
zfiRate:null,
|
|
|
zfiSignDate:[],
|
|
|
- zfiExpireDate:[]
|
|
|
+ zfiExpireDate:[],
|
|
|
+ zfiTypes: '00',
|
|
|
+ zfiQuery: null,
|
|
|
+ zfiValue: null
|
|
|
},
|
|
|
//全部数据
|
|
|
infList:[],
|
|
@@ -1907,13 +2031,79 @@ export default {
|
|
|
this.getDicts("finance_supplier_status").then(response => {
|
|
|
this.supplierOptions = response.data;
|
|
|
});
|
|
|
+ this.getDicts("zc_zfr_types").then((response) => {
|
|
|
+ this.typesOptions = response.data;
|
|
|
+ });
|
|
|
+ this.getDicts("zc_zfi_query").then((response) => {
|
|
|
+ this.queryOptions = response.data;
|
|
|
+ });
|
|
|
this.getUser();
|
|
|
- this.getList();
|
|
|
- this.getListSign();
|
|
|
- this.getListFinancing();
|
|
|
- this.getListOpening();
|
|
|
- this.getListFinanced();
|
|
|
- this.getListInvalid();
|
|
|
+ this.getList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '01';
|
|
|
+ d
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListSign().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListFinancing().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListOpening().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsOpening.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsOpening.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListFinanced().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListInvalid().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
activated () {
|
|
|
this.getDicts("zfi_create_type").then(response => {
|
|
@@ -1933,12 +2123,72 @@ export default {
|
|
|
this.supplierOptions = response.data;
|
|
|
});
|
|
|
this.getUser();
|
|
|
- this.getList();
|
|
|
- this.getListSign();
|
|
|
- this.getListFinancing();
|
|
|
- this.getListOpening();
|
|
|
- this.getListFinanced();
|
|
|
- this.getListInvalid();
|
|
|
+ this.getList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '01';
|
|
|
+ d
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParams.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListSign().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsSign.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListFinancing().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsFinancing.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListOpening().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsOpening.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsOpening.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListFinanced().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsFinanced.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.getListInvalid().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '01';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
+ this.queryParamsInvalid.zfiQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
//获取操作员Id
|
|
@@ -1951,7 +2201,7 @@ export default {
|
|
|
/** 查询全部列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParams).then(response => {
|
|
|
+ return listCredit(this.queryParams).then(response => {
|
|
|
this.infList = response.data.records;
|
|
|
if(this.infList){
|
|
|
if(this.infList.length > 0){
|
|
@@ -1961,51 +2211,75 @@ export default {
|
|
|
}
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
//查询待签收
|
|
|
getListSign() {
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParamsSign).then(response => {
|
|
|
+ return listCredit(this.queryParamsSign).then(response => {
|
|
|
this.infSignList = response.data.records;
|
|
|
this.totalSign = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
//融资中
|
|
|
getListFinancing() {
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParamsFinancing).then(response => {
|
|
|
+ return listCredit(this.queryParamsFinancing).then(response => {
|
|
|
this.infFinancingList = response.data.records;
|
|
|
this.totalFinancing = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
//开立中
|
|
|
getListOpening(){
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParamsOpening).then(response => {
|
|
|
+ return listCredit(this.queryParamsOpening).then(response => {
|
|
|
this.infOpeningList = response.data.records;
|
|
|
this.totalOpening = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
//已融资
|
|
|
getListFinanced() {
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParamsFinanced).then(response => {
|
|
|
+ return listCredit(this.queryParamsFinanced).then(response => {
|
|
|
this.infFinancedList = response.data.records;
|
|
|
this.totalFinanced = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
//已失效
|
|
|
getListInvalid(){
|
|
|
this.loading = true;
|
|
|
- listCredit(this.queryParamsInvalid).then(response => {
|
|
|
+ return listCredit(this.queryParamsInvalid).then(response => {
|
|
|
this.infInvalidList = response.data.records;
|
|
|
this.totalInvalid = response.data.total;
|
|
|
this.loading = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
// 表单重置
|