From d4a5df36e3d352dbd3a344f9da6aac409a811f08 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 10 十一月 2023 17:08:46 +0800
Subject: [PATCH] 123

---
 src/views/project/fundcheck/expertFeeCheck/index.vue |   56 ++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 40 insertions(+), 16 deletions(-)

diff --git a/src/views/project/fundcheck/expertFeeCheck/index.vue b/src/views/project/fundcheck/expertFeeCheck/index.vue
index 383b157..db33367 100644
--- a/src/views/project/fundcheck/expertFeeCheck/index.vue
+++ b/src/views/project/fundcheck/expertFeeCheck/index.vue
@@ -1316,9 +1316,20 @@
         this.ids.forEach(item => {
           if (xuanzlist.includes(item)) {
           } else {
+            if (this.overallids.length == 1) {
+              this.overallids = [];
+            } else {
+              this.overallids.splice(this.overallids.indexOf(item), 1);
+            }
+            if (this.overallidsvalue.length == 1) {
+              this.overallidsvalue = [];
+            } else {
+              this.overallidsvalue.splice(
+                this.overallidsvalue.indexOf(item),
+                1
+              );
+            }
             this.ids.splice(this.ids.indexOf(item), 1);
-            this.overallids.splice(this.overallids.indexOf(item), 1);
-            this.overallidsvalue.splice(this.overallidsvalue.indexOf(item), 1);
           }
         });
       }
@@ -1363,24 +1374,37 @@
     },
     Totalcalculation(tot) {
       console.log(tot);
-      let bojite={
-        fundids:this.overallids,
-        isTaxAfter:tot,
-      }
+      let bojite = {
+        fundids: this.overallids,
+        isTaxAfter: tot
+      };
       if (tot == 0) {
-        TotalcalculationFn(bojite).then(row => {
-          if (row.code=200) {
-            this.$modal.msgSuccess(row.msg);
-          }else{
-          this.$modal.msgError(row.msg);
-          }
-        });
+        TotalcalculationFn(bojite)
+          .then(row => {
+            if (row.code == 200) {
+              this.$modal.msgSuccess(row.msg);
+            } else {
+              console.log(123);
+              this.$modal.msgError(row.msg);
+            }
+          })
+          .catch(error => {
+            this.$modal.msgError(error);
+          });
       } else {
         const hasValue = this.overallidsvalue.every(obj => obj.istax == 1);
         if (hasValue) {
-          TotalcalculationFn(bojite).then(row => {
-            console.log(row.msg);
-          });
+          TotalcalculationFn(bojite)
+            .then(row => {
+              if (row.code == 200) {
+                this.$modal.msgSuccess(row.msg);
+              } else {
+                this.$modal.msgError(row.msg);
+              }
+            })
+            .catch(error => {
+              this.$modal.msgError(error);
+            });
         } else {
           this.$modal.msgError("璇烽�夋嫨绠楃◣鍚庣殑鏁版嵁杩涜鍚堝苟璁$畻");
         }

--
Gitblit v1.9.3