Explorar o código

融资查询条件

peixh %!s(int64=3) %!d(string=hai) anos
pai
achega
874ce1e018
Modificáronse 1 ficheiros con 75 adicións e 21 borrados
  1. 75 21
      front-vue/src/views/service/financeRecord/financeRecord.vue

+ 75 - 21
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -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')
             });
         },
         // 取消按钮