From 24112d26079c0010f0baff217d9ddcd9dfb595b4 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 05 十一月 2023 17:31:05 +0800
Subject: [PATCH] 11

---
 src/views/project/relativesconfirmation/index.vue |  182 ++++++++++++++++++++++----------------------
 1 files changed, 91 insertions(+), 91 deletions(-)

diff --git a/src/views/project/relativesconfirmation/index.vue b/src/views/project/relativesconfirmation/index.vue
index 8de8f71..842b251 100644
--- a/src/views/project/relativesconfirmation/index.vue
+++ b/src/views/project/relativesconfirmation/index.vue
@@ -172,14 +172,7 @@
         fixed="right"
       >
         <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handletermination(scope.row)"
-            v-hasPermi="['project:donatebaseinfo:edit']"
-            >缁堟</el-button
-          >
+
           <el-button
             size="mini"
             type="text"
@@ -1161,7 +1154,7 @@
     this.getTimeList();
     this.getList();
   },
-  mounted() {
+  mounted() { 
     this.LoadReportList();
 
     // if(this.tempRecordState != undefined && this.tempRecordState != null){
@@ -1580,90 +1573,97 @@
     },
     /** 瀹跺睘纭鎿嶄綔 */
     handleAdd(row) {
-      console.log("ppppppp", row);
-      this.showSaveBtn = false;
-      this.flowname = "瀹跺睘纭鐧昏";
-      this.annexno = "";
-      //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍
-      let searchparam = {
-        infoid: row.id,
-      };
-      this.loading = true;
-      this.curCase = {
-        id: row.id,
-        recordstate: null,
-        donorno: row.donorno,
-      };
-      console.log("32323232323", searchparam);
-      listRelativesconfirmation(searchparam).then((response) => {
-        console.log("wdadwadawdawd", response);
-        this.loading = false;
-        if (response.code == 200) {
-          if (response.rows.length == 0) {
-            this.form.infoid = row.id;
-            this.form.donorno = row.donorno;
-            this.form.doname = row.name;
-            this.form.dosex = row.sex;
-            this.form.dobirthday = row.birthday;
-            this.form.donationality = row.nationality;
-            this.form.doeducation = row.education;
-            this.form.dooccupation = row.occupation;
-            this.form.donation = row.nation;
-            this.form.doidcardtype = row.idcardtype;
-            this.form.doidcardno = row.idcardno;
-            this.form.donativeplace = row.nativeplace;
-            this.open = true;
-            this.title = "鏂板浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
-            this.$nextTick(function () {
-              this.$refs.confirmannex.getAnnexList();
-            });
-          } else if (response.rows.length == 1) {
-            this.form = response.rows[0];
-            console.log("2222222", this.form);
-            console.log("缂栬緫瀹跺睘纭form", this.form);
-            this.form.donorno = row.donorno;
-            this.form.doname = row.name;
-            this.form.dosex = row.sex;
-            // 鍑虹敓鏃ユ湡
-            this.form.dobirthday = row.birthday;
-            // 姘戞棌
-            this.form.donationality = row.nationality;
-            // 瀛﹀巻
-            this.form.doeducation = row.education;
-            // 鑱屼笟
-            this.form.dooccupation = row.occupation;
-            this.form.donation = row.nation;
-            this.form.doidcardtype = row.idcardtype;
-            this.form.doidcardno = row.idcardno;
-            this.form.donativeplace = row.nativeplace;
-            // this.form.donativeplace =
-            //   row.residenceProvinceName +
-            //   row.residenceCityName +
-            //   row.residenceTownName;
-            this.defultAddresss.sheng = this.form.residenceprovincename;
-            this.defultAddresss.shi = this.form.residencecityname;
-            this.defultAddresss.qu = this.form.residencetownname;
-            console.log("9999999", this.form.organdecision);
-            if (this.form.kinship) {
-              this.form.kinship = this.form.kinship.split(",");
-            }
-            if (this.form.organdecision) {
-              this.form.organdecision = this.form.organdecision.split(",");
-            }
-            this.open = true;
-            this.title = "淇敼浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
-            this.$nextTick(function () {
-              this.$refs.confirmannex.getAnnexList();
-            });
-          } else {
-            this.$modal.msgError(
-              "鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍澶辫触" +
-                JSON.stringify(JSON.stringify(response))
-            );
-          }
+      this.$router.push({
+        path: "/organ/donationdetails/",
+        query: {
+          id: row.id,
+          organType: "edit",
         }
       });
-      this.reset();
+      // console.log("ppppppp", row);
+      // this.showSaveBtn = false;
+      // this.flowname = "瀹跺睘纭鐧昏";
+      // this.annexno = "";
+      // //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍
+      // let searchparam = {
+      //   infoid: row.id,
+      // };
+      // this.loading = true;
+      // this.curCase = {
+      //   id: row.id,
+      //   recordstate: null,
+      //   donorno: row.donorno,
+      // };
+      // console.log("32323232323", searchparam);
+      // listRelativesconfirmation(searchparam).then((response) => {
+      //   console.log("wdadwadawdawd", response);
+      //   this.loading = false;
+      //   if (response.code == 200) {
+      //     if (response.rows.length == 0) {
+      //       this.form.infoid = row.id;
+      //       this.form.donorno = row.donorno;
+      //       this.form.doname = row.name;
+      //       this.form.dosex = row.sex;
+      //       this.form.dobirthday = row.birthday;
+      //       this.form.donationality = row.nationality;
+      //       this.form.doeducation = row.education;
+      //       this.form.dooccupation = row.occupation;
+      //       this.form.donation = row.nation;
+      //       this.form.doidcardtype = row.idcardtype;
+      //       this.form.doidcardno = row.idcardno;
+      //       this.form.donativeplace = row.nativeplace;
+      //       this.open = true;
+      //       this.title = "鏂板浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
+      //       this.$nextTick(function () {
+      //         this.$refs.confirmannex.getAnnexList();
+      //       });
+      //     } else if (response.rows.length == 1) {
+      //       this.form = response.rows[0];
+      //       console.log("2222222", this.form);
+      //       console.log("缂栬緫瀹跺睘纭form", this.form);
+      //       this.form.donorno = row.donorno;
+      //       this.form.doname = row.name;
+      //       this.form.dosex = row.sex;
+      //       // 鍑虹敓鏃ユ湡
+      //       this.form.dobirthday = row.birthday;
+      //       // 姘戞棌
+      //       this.form.donationality = row.nationality;
+      //       // 瀛﹀巻
+      //       this.form.doeducation = row.education;
+      //       // 鑱屼笟
+      //       this.form.dooccupation = row.occupation;
+      //       this.form.donation = row.nation;
+      //       this.form.doidcardtype = row.idcardtype;
+      //       this.form.doidcardno = row.idcardno;
+      //       this.form.donativeplace = row.nativeplace;
+      //       // this.form.donativeplace =
+      //       //   row.residenceProvinceName +
+      //       //   row.residenceCityName +
+      //       //   row.residenceTownName;
+      //       this.defultAddresss.sheng = this.form.residenceprovincename;
+      //       this.defultAddresss.shi = this.form.residencecityname;
+      //       this.defultAddresss.qu = this.form.residencetownname;
+      //       console.log("9999999", this.form.organdecision);
+      //       if (this.form.kinship) {
+      //         this.form.kinship = this.form.kinship.split(",");
+      //       }
+      //       if (this.form.organdecision) {
+      //         this.form.organdecision = this.form.organdecision.split(",");
+      //       }
+      //       this.open = true;
+      //       this.title = "淇敼浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
+      //       this.$nextTick(function () {
+      //         this.$refs.confirmannex.getAnnexList();
+      //       });
+      //     } else {
+      //       this.$modal.msgError(
+      //         "鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍澶辫触" +
+      //           JSON.stringify(JSON.stringify(response))
+      //       );
+      //     }
+      //   }
+      // });
+      // this.reset();
     },
     /** 鎻愪氦鎸夐挳 */
     submitForm() {

--
Gitblit v1.9.3