From 2bf3fda0cd085d5e6af9b55471701e44768d26a9 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期三, 20 十二月 2023 15:47:07 +0800
Subject: [PATCH] yxh:修改了银行账户管理

---
 src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue |   76 ++++++++++++++++++++++++--------------
 1 files changed, 48 insertions(+), 28 deletions(-)

diff --git a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
index aebe8e1..eba6a42 100644
--- a/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
+++ b/src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
@@ -9,12 +9,12 @@
     >
       <el-row>
         <el-col :span="8">
-          <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
+          <el-form-item label="鐢宠鏃ユ湡" prop="applyTime">
             <el-date-picker
               format="yyyy-MM-dd"
               @change="selectapplication"
               value-format="yyyy-MM-dd"
-              v-model="createTime"
+              v-model="applyTime"
               type="daterange"
               range-separator="鑷�"
               start-placeholder="鐢宠寮�濮嬫棩鏈�"
@@ -159,10 +159,10 @@
             label="鐢宠鏃ユ湡"
             width="120"
             align="center"
-            prop="createTime"
+            prop="applyTime"
           >
             <template slot-scope="scope">
-              <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
+              <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span>
             </template>
           </el-table-column>
           <el-table-column
@@ -622,12 +622,12 @@
         </el-row>
         <el-row style="margin-top: 25px; margin-bottom: 5px">
           <el-col :span="7">
-            <el-form-item label="鐢宠鏃ユ湡" prop="createTime">
+            <el-form-item label="鐢宠鏃ユ湡" prop="applyTime">
               <!-- <el-input v-model="form.donorno" placeholder="璇疯緭鍏ョ敵璇锋棩鏈�" /> -->
               <el-date-picker
                 clearable
                 style="width: 100%"
-                v-model="form.createTime"
+                v-model="form.applyTime"
                 type="date"
                 value-format="yyyy-MM-dd HH:mm:ss"
                 placeholder="鐢宠鏃ユ湡"
@@ -935,7 +935,7 @@
         username: [
           { required: true, message: "璇疯緭鍏ョ敵璇蜂汉濮撳悕", trigger: "blur" }
         ],
-        createTime: [
+        applyTime: [
           { required: true, message: "璇疯緭鍏ョ敵璇锋棩鏈�", trigger: "blur" }
         ],
         amountrequested: [
@@ -1018,9 +1018,9 @@
   },
   methods: {
     selectapplication() {
-      console.log("鏃堕棿", this.createTime);
-      this.queryParams.APPLICATIONBEGTIME = this.createTime[0];
-      this.queryParams.APPLICATIONENDTIME = this.createTime[1];
+      console.log("鏃堕棿", this.applyTime);
+      this.queryParams.APPLICATIONBEGTIME = this.applyTime[0];
+      this.queryParams.APPLICATIONENDTIME = this.applyTime[1];
       //   this.getlistbypower()
     },
     getlistbypower() {
@@ -1305,9 +1305,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);
           }
         });
       }
@@ -1358,25 +1369,34 @@
         isTaxAfter: tot
       };
       if (tot == 0) {
-        TotalcalculationFn(bojite).then(row => {
-          console.log(row.msg);
-          if ((row.code = 200)) {
-            this.$modal.msgSuccess(row.msg);
-          } else {
-            this.$modal.msgError(row.msg);
-          }
-        });
+        TotalcalculationFn(bojite)
+          .then(row => {
+            console.log(row.msg);
+            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 {
         console.log(this.overallidsvalue);
         const hasValue = this.overallidsvalue.every(obj => obj.istax == 1);
         if (hasValue) {
-          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 {
+                this.$modal.msgError(row.msg);
+              }
+            })
+            .catch(error => {
+              this.$modal.msgError(error);
+            });
         } else {
           this.$modal.msgError("璇烽�夋嫨绠楃◣鍚庣殑鏁版嵁杩涜鍚堝苟璁$畻");
         }
@@ -1393,7 +1413,7 @@
         this.form.donorno = this.curCase.donorno;
         this.form.name = this.curCase.name;
         this.form.infoid = this.curCase.id;
-        // this.form.createTime = nowdate;
+        // this.form.applyTime = nowdate;
         //this.open = true;
         //this.initFundApplyForm();
         this.fundDetailArr = [];

--
Gitblit v1.9.3