From 7bf2fb0fe59ca062ff4bf20688474ffae9856ce0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 26 二月 2024 17:02:19 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/applyDetail/index.vue |   39 +++++++++++++++++----------------------
 1 files changed, 17 insertions(+), 22 deletions(-)

diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index 956ff25..135ae8b 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -1760,7 +1760,7 @@
                 bankcardno: res.rows[j].bankcardno,
                 unitno: res.rows[j].unitno,
                 unitname: res.rows[j].unitname,
-                userid: res.rows[j].username
+                userid: res.rows[j].username + '锛�' + res.rows[j].bankcardno + '锛�'
               });
             }
             else {
@@ -2188,8 +2188,10 @@
                   flowconclusion: this.checkObj.flowlevelone,
                   flowcontent: this.checkObj.flowconclusion
                 };
+      this.$modal.loading("姝e湪鎻愪氦瀹℃牳锛岃绋嶅�欙紒");
                 checkfund(checkFundObj).then(res => {
                   //鍏抽棴绐楀彛
+        this.$modal.closeLoading();
                   this.$modal.msgSuccess("瀹℃牳瀹屾垚!");
                   this.$store.dispatch("tagsView/delView", this.$route);
                   this.$router.go(-1);
@@ -2820,11 +2822,11 @@
       if (this.selectionType == "account") {
         //榛樿浠庤处鎴峰簱閫夋嫨锛�1,璐︽埛搴擄紱2锛屾柊寤鸿处鎴�
         this.accountfrom = "1";
-        if (scope.row.idcardno == undefined || scope.row.idcardno == null) {
-          this.accountselectform.accountname = scope.row.beneficiaryname;
+        if (scope.row.idcardno) {
+          this.accountselectform.accountname = scope.row.beneficiaryname + '锛�' + scope.row.idcardno + '锛�';          
         }
         else {
-          this.accountselectform.accountname = scope.row.beneficiaryname + '锛�' + scope.row.idcardno + '锛�';
+          this.accountselectform.accountname = scope.row.beneficiaryname+ '锛�' + scope.row.bankcardno + '锛�';
         }
         this.accountselectform.accountno = scope.row.beneficiaryno;
         this.accountselectform.expertunitname = "";
@@ -2917,10 +2919,16 @@
               }
 
               addExternalperson(this.accountform).then(response => {
-                if (response.code == 200) {
+                if (response.code == 200) {                  
+                  // //閲嶆柊鑾峰彇璐︽埛鍒楄〃
+                  // listExternalperson().then(res => {
+                  //   this.accountlist = res.rows;
+                  // });
+
+                  console.log("addExternalperson", response.data.id);
                   if (this.accountselectform.usertype == "org") {
                     this.accountlist.push({
-                      id: 0,
+                      id: response.data.id,
                       userno: this.accountform.userno,
                       username: this.accountform.username,
                       idcardno: this.accountform.idcardno,
@@ -2929,14 +2937,12 @@
                       bankcardno: this.accountform.bankcardno,
                       unitno: this.accountform.unitno,
                       unitname: this.accountform.unitname,
-                      userid: this.accountform.username
+                      userid: this.accountform.username+ '锛�' + this.accountform.bankcardno + '锛�'
                     });
-
                     this.$modal.msgSuccess("鎮ㄥ凡娣诲姞鎴愬姛鏂拌处鎴蜂俊鎭紒");
-
                   } else {
                     this.accountlist.push({
-                      id: 0,
+                      id: response.data.id,
                       userno: this.accountform.userno,
                       username: this.accountform.username,
                       idcardno: this.accountform.idcardno,
@@ -2947,22 +2953,11 @@
                       unitname: this.accountform.unitname,
                       userid: this.accountform.username + '锛�' + this.accountform.idcardno + '锛�'
                     });
-
-                    this.$modal.msgSuccess(
-                      "鎮ㄥ凡娣诲姞鎴愬姛鏂拌处鎴蜂俊鎭�,闇�瑕佸湪璐﹀彿鐘舵�佸惎鐢ㄥ悗鎵嶈兘琚娇鐢紒"
-                    );
+                    this.$modal.msgSuccess("鎮ㄥ凡娣诲姞鎴愬姛鏂拌处鎴蜂俊鎭�,闇�瑕佸湪璐﹀彿鐘舵�佸惎鐢ㄥ悗鎵嶈兘琚娇鐢紒");
                     return;
                   }
                   this.accountselectform.accountno = this.accountform.userno;
                   this.accountselectform.accountname = this.accountselectform.username;
-
-                  console.log("this.accountlist", this.accountlist);
-                  console.log("this.accountselectform.accountno", this.accountselectform.accountno);
-                  
-                  // //閲嶆柊鑾峰彇璐︽埛鍒楄〃
-                  // listExternalperson().then(res => {
-                  //   this.accountlist = res.rows;
-                  // });
 
                   //璧嬪�间俊鎭�
                   this.accountlist.map(res => {

--
Gitblit v1.9.3