Browse Source

页面刷新优化

sqg 3 years ago
parent
commit
ae4d412efb

+ 3 - 3
front-vue/src/views/service/bill/bill.vue

@@ -316,7 +316,7 @@ export default {
         },
         /** 新增按钮操作 */
         handleAdd(row) {
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/bill/billAdd", this.$route.fullPath)
             this.$router.push({
                 path: "/bill/billAdd"
@@ -324,7 +324,7 @@ export default {
         },
         /** 修改按钮操作 */
         handleUpdate(row) {
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/bill/billEdit/" + row.zbiId, this.$route.fullPath)
             this.$router.push({
                 path: "/bill/billEdit/" + row.zbiId
@@ -332,7 +332,7 @@ export default {
         },
         /** 详情按钮操作 */
         handleDetail(row) {
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/bill/billDetail/" + row.zbiId, this.$route.fullPath)
             this.$router.push({
                 path: "/bill/billDetail/" + row.zbiId

+ 1 - 1
front-vue/src/views/service/company/coreCompanyManage.vue

@@ -449,7 +449,7 @@ export default {
     /* 企业详情 */
     handleDetail(row) {
       this.reset();
-      this.resetQuery();
+      this.resetForm("queryForm");
       let scyId = row.scyId || this.ids;
       let scyAuthStatus = row.scyAuthStatus || this.ids;
       let scyStatus = row.scyStatus || this.ids;

+ 2 - 2
front-vue/src/views/service/company/supCompanyManage.vue

@@ -412,7 +412,7 @@ export default {
     /* 企业详情 */
     handleDetail(row) {
       this.reset();
-      this.resetQuery();
+      this.resetForm("queryForm");
       let scyId = row.scyId || this.ids;
       let scyAuthStatus = row.scyAuthStatus || this.ids;
       let scyStatus = row.scyStatus || this.ids;
@@ -481,7 +481,7 @@ export default {
     //四要素审核
     handleExamine(row){
       this.reset();
-      this.resetQuery();
+      this.resetForm("queryForm");
       const scyId = row.scyId || this.ids;
       Cookies.set("/company/detailComPanyExam/" + scyId + '/', this.$route.fullPath)
       this.$router.push("/company/detailComPanyExam/" + scyId + '/');

+ 3 - 3
front-vue/src/views/service/contract/contract.vue

@@ -265,21 +265,21 @@ export default {
     /** 新增按钮操作 */
     handleAdd() {
       this.reset();
-      this.resetQuery();
+      ththis.resetForm("queryForm");
       Cookies.set("/contract/addContract/", this.$route.fullPath);
       this.$router.push({path:"/contract/addContract/"});
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
       const zfcId = row.zfcId
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/contract/editContract/"+zfcId+"/", this.$route.fullPath);
       this.$router.push({path:"/contract/editContract/"+zfcId+"/"});
     },
     /** 详情按钮操作 */
     handleInfo(row) {
       const zfcId = row.zfcId
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/contract/detailContract/"+zfcId+"/", this.$route.fullPath);
       this.$router.push({path:"/contract/detailContract/"+zfcId+"/"});
     },

+ 6 - 6
front-vue/src/views/service/cost/costManage.vue

@@ -742,8 +742,8 @@ export default {
             invoicing(self.form).then(response => {
               this.msgSuccess("修改成功");
               this.open = false;
-              this.resetQuery();
-              this.resetInvoiceQuery();
+              this.getList();
+              this.getInvoice();
             });
             loading.close();
           }
@@ -828,8 +828,8 @@ export default {
             invoicing(self.formInvoice).then(response => {
               this.msgSuccess("开票成功");
               this.openInvoice = false;
-              this.resetQuery();
-              this.resetInvoiceQuery();
+              this.getList();
+              this.getInvoice();
             });
             loading.close();
           }
@@ -890,8 +890,8 @@ export default {
             invoicing(self.formFlush).then(response => {
               this.msgSuccess("冲红成功");
               this.openFlush = false;
-              this.resetQuery();
-              this.resetInvoiceQuery();
+              this.getList();
+              this.getInvoice();
             });
             loading.close();
           }

+ 1 - 1
front-vue/src/views/service/cost/userCostManage.vue

@@ -561,7 +561,7 @@ export default {
               this.msgSuccess("申请成功");
               loading.close();
               this.openApply = false;
-              this.resetQuery();
+              this.getList();
             }).catch((response) => {
                 loading.close();
             });

+ 102 - 102
front-vue/src/views/service/credit/credit.vue

@@ -2391,25 +2391,25 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
-        this.resetQuery();
-        this.resetQuerySign();
-        this.resetQueryFinancing();
-        this.resetQueryOpening();
-        this.resetQueryFinanced();
-        this.resetQueryInvalid();
         this.reset();
+        this.resetForm("queryForm");
+        this.resetForm("queryFormSign");
+        this.resetForm("queryFormFinancing");
+        this.resetForm("queryFormOpening");
+        this.resetForm("queryFormFinanced");
+        this.resetForm("queryFormInvalid");
         Cookies.set("/credit/addCredit/", this.$route.fullPath);
         this.$router.push({ path: "/credit/addCredit/" });
     },
     //详情
     handleDetail(row){
           const zfiId = row.zfiId || this.ids
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.resetForm("queryForm");
+          this.resetForm("queryFormSign");
+          this.resetForm("queryFormFinancing");
+          this.resetForm("queryFormOpening");
+          this.resetForm("queryFormFinanced");
+          this.resetForm("queryFormInvalid");
           Cookies.set("/credit/creditDetail/"+zfiId + "/", this.$route.fullPath)
           this.$router.push({ path: "/credit/creditDetail/"+zfiId + "/" });
     },
@@ -2418,12 +2418,12 @@ export default {
           const zfiId = row.zfiId || this.ids;
           //获取融信类型
           const zfiCreateType = row.zfiCreateType;
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.resetForm("queryForm");
+          this.resetForm("queryFormSign");
+          this.resetForm("queryFormFinancing");
+          this.resetForm("queryFormOpening");
+          this.resetForm("queryFormFinanced");
+          this.resetForm("queryFormInvalid");
           //核心开立
           if(zfiCreateType == '1'){
               Cookies.set("/credit/creditUpdate/"+zfiId + "/", this.$route.fullPath)
@@ -2458,12 +2458,12 @@ export default {
                 return false;
             }else{
                 const zfiId = row.zfiId || this.ids
-                this.resetQuery();
-                this.resetQuerySign();
-                this.resetQueryFinancing();
-                this.resetQueryOpening();
-                this.resetQueryFinanced();
-                this.resetQueryInvalid();
+                this.resetForm("queryForm");
+                this.resetForm("queryFormSign");
+                this.resetForm("queryFormFinancing");
+                this.resetForm("queryFormOpening");
+                this.resetForm("queryFormFinanced");
+                this.resetForm("queryFormInvalid");
                 Cookies.set("/credit/confirmationAudit/"+zfiId + "/", this.$route.fullPath)
                 this.$router.push({ path: "/credit/confirmationAudit/"+zfiId + "/" });
             }
@@ -2497,12 +2497,12 @@ export default {
                 return false;
             }else{
                   const zfiId = row.zfiId || this.ids
-                  this.resetQuery();
-                  this.resetQuerySign();
-                  this.resetQueryFinancing();
-                  this.resetQueryOpening();
-                  this.resetQueryFinanced();
-                  this.resetQueryInvalid();
+                  this.resetForm("queryForm");
+                  this.resetForm("queryFormSign");
+                  this.resetForm("queryFormFinancing");
+                  this.resetForm("queryFormOpening");
+                  this.resetForm("queryFormFinanced");
+                  this.resetForm("queryFormInvalid");
                   Cookies.set("/credit/addInformation/"+zfiId + "/", this.$route.fullPath)
                   this.$router.push({ path: "/credit/addInformation/"+zfiId + "/" });
             }
@@ -2530,12 +2530,12 @@ export default {
               return false;
            }else{
               const zfiId = row.zfiId || this.ids
-              this.resetQuery();
-              this.resetQuerySign();
-              this.resetQueryFinancing();
-              this.resetQueryOpening();
-              this.resetQueryFinanced();
-              this.resetQueryInvalid();
+              this.resetForm("queryForm");
+              this.resetForm("queryFormSign");
+              this.resetForm("queryFormFinancing");
+              this.resetForm("queryFormOpening");
+              this.resetForm("queryFormFinanced");
+              this.resetForm("queryFormInvalid");
               Cookies.set("/credit/signFor/"+zfiId + "/", this.$route.fullPath)
               this.$router.push({ path: "/credit/signFor/"+zfiId + "/" });
            }
@@ -2545,12 +2545,12 @@ export default {
     //去融资
     handleGoFinance(row){
         const zfiId = row.zfiId || this.ids
-        this.resetQuery();
-        this.resetQuerySign();
-        this.resetQueryFinancing();
-        this.resetQueryOpening();
-        this.resetQueryFinanced();
-        this.resetQueryInvalid();
+        this.resetForm("queryForm");
+        this.resetForm("queryFormSign");
+        this.resetForm("queryFormFinancing");
+        this.resetForm("queryFormOpening");
+        this.resetForm("queryFormFinanced");
+        this.resetForm("queryFormInvalid");
         Cookies.set("/credit/goFinance/"+zfiId + "/", this.$route.fullPath)
         this.$router.push({ path: "/credit/goFinance/"+zfiId + "/" });
     },
@@ -2590,12 +2590,12 @@ export default {
               return false;
            }else{
               const zfiId = row.zfiId || this.ids
-              this.resetQuery();
-              this.resetQuerySign();
-              this.resetQueryFinancing();
-              this.resetQueryOpening();
-              this.resetQueryFinanced();
-              this.resetQueryInvalid();
+              this.resetForm("queryForm");
+              this.resetForm("queryFormSign");
+              this.resetForm("queryFormFinancing");
+              this.resetForm("queryFormOpening");
+              this.resetForm("queryFormFinanced");
+              this.resetForm("queryFormInvalid");
               Cookies.set("/credit/creditSeal/"+zfiId + "/", this.$route.fullPath)
               this.$router.push({ path: "/credit/creditSeal/"+zfiId + "/" });
            }
@@ -2612,12 +2612,12 @@ export default {
         }).then(function() {
           return coreApproval(row);
         }).then(() => {
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.getList();
+          this.getListSign();
+          this.getListFinancing();
+          this.getListOpening();
+          this.getListFinanced();
+          this.getListInvalid();
           this.msgSuccess("提交审批成功");
         }).catch(() => {
           this.$message({
@@ -2636,12 +2636,12 @@ export default {
         }).then(function() {
           return confirmationApproval(row);
         }).then(() => {
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.getList();
+          this.getListSign();
+          this.getListFinancing();
+          this.getListOpening();
+          this.getListFinanced();
+          this.getListInvalid();
           this.msgSuccess("提交审批成功");
         }).catch(() => {
           this.$message({
@@ -2668,12 +2668,12 @@ export default {
           return approval(row);
         })
         .then(() => {
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.getList();
+          this.getListSign();
+          this.getListFinancing();
+          this.getListOpening();
+          this.getListFinanced();
+          this.getListInvalid();
           this.msgSuccess("提交审批成功");
         })
         .catch(() => {
@@ -2700,12 +2700,12 @@ export default {
           return openApproval(row);
         })
         .then(() => {
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.getList();
+          this.getListSign();
+          this.getListFinancing();
+          this.getListOpening();
+          this.getListFinanced();
+          this.getListInvalid();
           this.msgSuccess("提交审批成功");
         })
         .catch(() => {
@@ -2725,12 +2725,12 @@ export default {
         }).then(function() {
           return informationApproval(row); 
         }).then(() => {
-          this.resetQuery();
-          this.resetQuerySign();
-          this.resetQueryFinancing();
-          this.resetQueryOpening();
-          this.resetQueryFinanced();
-          this.resetQueryInvalid();
+          this.getList();
+          this.getListSign();
+          this.getListFinancing();
+          this.getListOpening();
+          this.getListFinanced();
+          this.getListInvalid();
           this.msgSuccess("提交审批成功");
         })
         .catch(() => {
@@ -2765,24 +2765,24 @@ export default {
     //融资开立
     finanOpening(){
         this.reset();
-        this.resetQuery();
-        this.resetQuerySign();
-        this.resetQueryFinancing();
-        this.resetQueryOpening();
-        this.resetQueryFinanced();
-        this.resetQueryInvalid();
+        this.resetForm("queryForm");
+        this.resetForm("queryFormSign");
+        this.resetForm("queryFormFinancing");
+        this.resetForm("queryFormOpening");
+        this.resetForm("queryFormFinanced");
+        this.resetForm("queryFormInvalid");
         Cookies.set("/credit/financeOpen/", this.$route.fullPath);
         this.$router.push({ path: "/credit/financeOpen/" });
     },
     //融资申请
     apply(){
         this.reset();
-        this.resetQuery();
-        this.resetQuerySign();
-        this.resetQueryFinancing();
-        this.resetQueryOpening();
-        this.resetQueryFinanced();
-        this.resetQueryInvalid();
+        this.resetForm("queryForm");
+        this.resetForm("queryFormSign");
+        this.resetForm("queryFormFinancing");
+        this.resetForm("queryFormOpening");
+        this.resetForm("queryFormFinanced");
+        this.resetForm("queryFormInvalid");
         Cookies.set("/credit/creditApply/", this.$route.fullPath);
         this.$router.push({ path: "/credit/creditApply/" });
     },
@@ -2806,12 +2806,12 @@ export default {
                     //拒签
                     return creditRefuse(row); 
                   }).then(() => {
-                    this.resetQuery();
-                    this.resetQuerySign();
-                    this.resetQueryFinancing();
-                    this.resetQueryOpening();
-                    this.resetQueryFinanced();
-                    this.resetQueryInvalid();
+                    this.getList();
+                    this.getListSign();
+                    this.getListFinancing();
+                    this.getListOpening();
+                    this.getListFinanced();
+                    this.getListInvalid();
                     this.msgSuccess("拒签成功");
                   })
                   .catch(() => {
@@ -2835,12 +2835,12 @@ export default {
             //删除
             return creditDel(row); 
           }).then(() => {
-            this.resetQuery();
-            this.resetQuerySign();
-            this.resetQueryFinancing();
-            this.resetQueryOpening();
-            this.resetQueryFinanced();
-            this.resetQueryInvalid();
+            this.getList();
+            this.getListSign();
+            this.getListFinancing();
+            this.getListOpening();
+            this.getListFinanced();
+            this.getListInvalid();
             this.msgSuccess("删除成功");
           })
           .catch(() => {

+ 3 - 3
front-vue/src/views/service/creditLine/creditLine.vue

@@ -560,7 +560,7 @@ export default {
         return changeStatus(row.zfpcrId, row.zfiAmount,row.zfpcrStatus);
       })
       .then(() => {
-        this.getList();
+        this.resetQuery();
         this.msgSuccess(text + "成功");
       })
       
@@ -593,7 +593,7 @@ export default {
               this.msgSuccess("修改成功");
               this.open = false;
               this.reset();
-              this.getList();
+              this.resetQuery();
             });
             loading.close();
           } else {
@@ -607,7 +607,7 @@ export default {
               this.msgSuccess("新增成功");
               this.open = false;
               this.reset();
-              this.getList();
+              this.resetQuery();
             });
             loading.close();
           }

+ 3 - 3
front-vue/src/views/service/financeProduct/financeProduct.vue

@@ -246,7 +246,7 @@ export default {
         /** 新增按钮操作 */
         handleAdd() {
             this.reset();
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/financeProduct/addFinanceProduct/", this.$route.fullPath);
             this.$router.push({
                 path: "/financeProduct/addFinanceProduct/"
@@ -255,7 +255,7 @@ export default {
         /** 修改按钮操作 */
         handleUpdate(row) {
             const zfpId = row.zfpId
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/financeProduct/editFinanceProduct/" + zfpId + "/", this.$route.fullPath);
             this.$router.push({
                 path: "/financeProduct/editFinanceProduct/" + zfpId + "/"
@@ -264,7 +264,7 @@ export default {
         /** 修改按钮操作 */
         handleInfo(row) {
             const zfpId = row.zfpId
-            this.resetQuery();
+            this.resetForm("queryForm");
             Cookies.set("/financeProduct/detailFinanceProduct/" + zfpId + "/", this.$route.fullPath);
             this.$router.push({
                 path: "/financeProduct/detailFinanceProduct/" + zfpId + "/"

+ 12 - 3
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -985,7 +985,10 @@ export default {
         },
         /** 新增按钮操作 */
         handleAdd() {
-            this.resetQuery();
+            this.resetForm("queryForm");
+            this.resetForm("queryFormIng");
+            this.resetForm("queryFormEnd");
+            this.resetForm("queryFormLose");
             Cookies.set("/financeRecord/addFinanceRecord/", this.$route.fullPath);
             this.$router.push("/financeRecord/addFinanceRecord/");
             // this.reset();
@@ -1015,7 +1018,10 @@ export default {
         handleDetail(row) {
             this.reset();
             const zfrId = row.zfrId || this.ids;
-            this.resetQuery();
+            this.resetForm("queryForm");
+            this.resetForm("queryFormIng");
+            this.resetForm("queryFormEnd");
+            this.resetForm("queryFormLose");
             Cookies.set(
                 "/financeRecord/detailFinanceRecord/" + zfrId,
                 this.$route.fullPath
@@ -1025,7 +1031,10 @@ export default {
         //盖章
         seal(row) {
             const zfrId = row.zfrId || this.ids
-            this.resetQuery();
+            this.resetForm("queryForm");
+            this.resetForm("queryFormIng");
+            this.resetForm("queryFormEnd");
+            this.resetForm("queryFormLose");
             Cookies.set("/financeRecord/recordSeal/" + zfrId + "/", this.$route.fullPath)
             this.$router.push({
                 path: "/financeRecord/recordSeal/" + zfrId + "/"

+ 0 - 1
front-vue/src/views/service/invoice/invoice.vue

@@ -303,7 +303,6 @@ export default {
     },
     //文件下载
     handleDownload(row){
-      this.resetQuery();
         const pfiUrl = row.pfiUrl;
         if(pfiUrl != null && pfiUrl != ''){
         window.open(pfiUrl +"/"+ getToken());

+ 2 - 2
front-vue/src/views/service/rel/companyRel.vue

@@ -912,8 +912,8 @@ export default {
     },
     //查询企业详情
     handleCompanyQuery(row){
-      this.resetQuery();
-      this.resetSpareQuery();
+      this.resetForm("queryForm");
+      this.resetForm("querySpareForm");
       if(row.receive == true){
       const scyId = row.launchCompanyId;
       listCompanyQuery(scyId).then(response => {

+ 2 - 2
front-vue/src/views/service/rel/companyRelManage.vue

@@ -529,8 +529,8 @@ export default {
     //查询企业详情
     handleCompanyQuery(row){
       this.reset();
-      this.resetQuery();
-      this.resetSpareQuery();
+      this.resetForm("queryForm");
+      this.resetForm("querySpareForm");
       if(row.receive == true){
       const scyId = row.launchCompanyId;
       listCompanyQuery(scyId).then(response => {

+ 1 - 2
front-vue/src/views/service/repayment/repayment.vue

@@ -540,7 +540,7 @@ export default {
         /** 详情按钮操作 */
         handleInfo(row) {
             const zfrId = row.zfrId;
-            this.resetQuery();
+            his.resetForm("queryForm");
             Cookies.set("/repayment/detailRepayment/"+zfrId+"/", this.$route.fullPath);
             this.$router.push({path:"/repayment/detailRepayment/"+zfrId+"/"});
         },
@@ -569,7 +569,6 @@ export default {
             this.form.zfrId = row.zfrId || this.ids;
             this.showBtnImg = true;
             this.noneBtnImg = this.fileList.length >= this.limitCountImg;
-            debugger
             this.open = true;
             this.title = "还款登记";
         },

+ 1 - 1
front-vue/src/views/system/user/index.vue

@@ -1208,7 +1208,7 @@ export default {
     /** 确认变更经办人*/
     confirmHandler(row) {
       console.log(row);
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set(
         "/user/detail/" + row.userId + "/" + row.scyId,
         this.$route.fullPath