|
|
@@ -718,25 +718,46 @@ export default {
|
|
|
getUserProfile().then((response) => {
|
|
|
if ("00" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '02';
|
|
|
- this.queryParamsIng.zfrQuery = '02';
|
|
|
- this.queryParamsEnd.zfrQuery = '02';
|
|
|
- this.queryParamsLose.zfrQuery = '02';
|
|
|
} else if ("01" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '04';
|
|
|
- this.queryParamsIng.zfrQuery = '04';
|
|
|
- this.queryParamsEnd.zfrQuery = '04';
|
|
|
- this.queryParamsLose.zfrQuery = '04';
|
|
|
} else if ("02" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getIngList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsIng.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsIng.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsIng.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getEndList().then(() =>{
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsEnd.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsEnd.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsEnd.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getLoseList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsLose.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsLose.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsLose.zfrQuery = '00';
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
- this.getIngList();
|
|
|
- this.getEndList();
|
|
|
- this.getLoseList();
|
|
|
|
|
|
},
|
|
|
activated() {
|
|
|
@@ -759,25 +780,46 @@ export default {
|
|
|
getUserProfile().then((response) => {
|
|
|
if ("00" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '02';
|
|
|
- this.queryParamsIng.zfrQuery = '02';
|
|
|
- this.queryParamsEnd.zfrQuery = '02';
|
|
|
- this.queryParamsLose.zfrQuery = '02';
|
|
|
} else if ("01" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '04';
|
|
|
- this.queryParamsIng.zfrQuery = '04';
|
|
|
- this.queryParamsEnd.zfrQuery = '04';
|
|
|
- this.queryParamsLose.zfrQuery = '04';
|
|
|
} else if ("02" == response.data.companyType) {
|
|
|
this.queryParams.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getIngList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsIng.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsIng.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsIng.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getEndList().then(() =>{
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsEnd.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsEnd.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsEnd.zfrQuery = '00';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+ this.getLoseList().then(() => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
+ if ("00" == response.data.companyType) {
|
|
|
+ this.queryParamsLose.zfrQuery = '02';
|
|
|
+ } else if ("01" == response.data.companyType) {
|
|
|
+ this.queryParamsLose.zfrQuery = '04';
|
|
|
+ } else if ("02" == response.data.companyType) {
|
|
|
this.queryParamsLose.zfrQuery = '00';
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
- this.getIngList();
|
|
|
- this.getEndList();
|
|
|
- this.getLoseList();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.columnQuery();
|
|
|
@@ -804,30 +846,42 @@ export default {
|
|
|
getIngList() {
|
|
|
this.loadingIng = true;
|
|
|
this.queryParamsIng.zfrStatus = "00";
|
|
|
- listRecord(this.queryParamsIng).then((response) => {
|
|
|
+ return listRecord(this.queryParamsIng).then((response) => {
|
|
|
this.recordIngList = response.data.records;
|
|
|
this.totalIng = response.data.total;
|
|
|
this.loadingIng = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
/** 查询已放款融资记录列表 */
|
|
|
getEndList() {
|
|
|
this.loadingEnd = true;
|
|
|
this.queryParamsEnd.zfrStatus = "01";
|
|
|
- listRecord(this.queryParamsEnd).then((response) => {
|
|
|
+ return listRecord(this.queryParamsEnd).then((response) => {
|
|
|
this.recordEndList = response.data.records;
|
|
|
this.totalIng = response.data.total;
|
|
|
this.loadingEnd = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
/** 查询融资失败融资记录列表 */
|
|
|
getLoseList() {
|
|
|
this.loadingLose = true;
|
|
|
this.queryParamsLose.zfrStatus = "02";
|
|
|
- listRecord(this.queryParamsLose).then((response) => {
|
|
|
+ return listRecord(this.queryParamsLose).then((response) => {
|
|
|
this.recordLoseList = response.data.records;
|
|
|
this.totalEnd = response.data.total;
|
|
|
this.loadingLose = false;
|
|
|
+ return Promise.resolve(response)
|
|
|
+ }).catch((response) => {
|
|
|
+ this.loading = false;
|
|
|
+ return Promise.reject('error')
|
|
|
});
|
|
|
},
|
|
|
// 取消按钮
|
|
|
@@ -1009,6 +1063,9 @@ export default {
|
|
|
this.msgSuccess("放款登记成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
+ this.getIngList();
|
|
|
+ this.getEndList();
|
|
|
+ this.getLoseList();
|
|
|
}).catch((response) => {
|
|
|
loading.close();
|
|
|
});
|
|
|
@@ -1107,16 +1164,17 @@ export default {
|
|
|
},
|
|
|
/* 金额格式化 */
|
|
|
moneyFormat(row, column, cellValue) {
|
|
|
- if (cellValue) {
|
|
|
- cellValue += "";
|
|
|
- if (!cellValue.includes(".")) cellValue += ".";
|
|
|
- return cellValue
|
|
|
- .replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
|
|
|
- return $1 + ",";
|
|
|
- })
|
|
|
- .replace(/\.$/, "");
|
|
|
- }
|
|
|
- },
|
|
|
+ if(cellValue == null || cellValue== undefined || cellValue == ''){
|
|
|
+ cellValue = '0.00'
|
|
|
+ }
|
|
|
+ cellValue += '';
|
|
|
+ if (!cellValue.includes('.')) {
|
|
|
+ cellValue += '.00';
|
|
|
+ }
|
|
|
+ return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
|
|
|
+ return $1 + ',';
|
|
|
+ }).replace(/\.$/, '');
|
|
|
+ },
|
|
|
//获取当前客户是否之前设置过列展示隐藏
|
|
|
columnQuery() {
|
|
|
//获取页面路径
|