From 8324c778ee797ea5a844614c47d93bdacf3ffeab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 07 一月 2024 13:17:33 +0800
Subject: [PATCH] 11

---
 src/views/project/medicalevaluation/index.vue |   90 ++++++++++++++++++++++++--------------------
 1 files changed, 49 insertions(+), 41 deletions(-)

diff --git a/src/views/project/medicalevaluation/index.vue b/src/views/project/medicalevaluation/index.vue
index 157fda8..c9f1365 100644
--- a/src/views/project/medicalevaluation/index.vue
+++ b/src/views/project/medicalevaluation/index.vue
@@ -1015,53 +1015,61 @@
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd(data) {
       console.log("datadata", data);
+
+      this.$router.push({
+        path: "/organ/donationdetails/",
+        query: {
+          id: data.id,
+          organType: "edit"
+        }
+      });
       // if(data.recordstate != 2 && data.recordstate != 4  && data.recordstate != 5 && data.recordstate != 13){
       //   this.$modal.msgError("褰撳墠鎹愮尞妗堜緥涓嶈兘杩涜鍖诲鎹愮尞璇勪及");
       //   return
       // }
 
-      this.flowname = "鎹愮尞鍖诲璇勪及";
-      this.annexno = "";
-      this.reset();
-      //this.curCase = data;
-      this.curCase = {
-        id: data.id,
-        recordstate: null,
-        donorno: data.donorno
-      };
-      //鑾峰彇鍖诲鎹愮尞璇勪及璁板綍
-      this.loading = true;
-      if (data.meid) {
-        let searchParam = {
-          id: data.meid
-        };
-        //listDonatebaseinfo(searchParam).then((response) => {
-        listMedicalevaluation(searchParam).then(response => {
-          if (response.code == 200 && response.rows.length == 1) {
-            this.title = "淇敼鎹愮尞鍖诲璇勪及";
-            this.form = response.rows[0];
-            this.form.infoid = data.id;
-            this.open = true;
-            this.$nextTick(function() {
-              this.$refs.evaluationannex.getAnnexList();
-            });
-          } else {
-            this.$modal.msgError(
-              "鑾峰彇鍖诲璇勪及璁板綍澶辫触锛�" + JSON.stringify(response)
-            );
-          }
-        });
-      } else {
-        this.title = "鏂板鎹愮尞鍖诲璇勪及";
-        this.form.infoid = data.id;
-        this.form.donorno = data.donorno;
+      // this.flowname = "鎹愮尞鍖诲璇勪及";
+      // this.annexno = "";
+      // this.reset();
+      // //this.curCase = data;
+      // this.curCase = {
+      //   id: data.id,
+      //   recordstate: null,
+      //   donorno: data.donorno
+      // };
+      // //鑾峰彇鍖诲鎹愮尞璇勪及璁板綍
+      // this.loading = true;
+      // if (data.meid) {
+      //   let searchParam = {
+      //     id: data.meid
+      //   };
+      //   //listDonatebaseinfo(searchParam).then((response) => {
+      //   listMedicalevaluation(searchParam).then(response => {
+      //     if (response.code == 200 && response.rows.length == 1) {
+      //       this.title = "淇敼鎹愮尞鍖诲璇勪及";
+      //       this.form = response.rows[0];
+      //       this.form.infoid = data.id;
+      //       this.open = true;
+      //       this.$nextTick(function() {
+      //         this.$refs.evaluationannex.getAnnexList();
+      //       });
+      //     } else {
+      //       this.$modal.msgError(
+      //         "鑾峰彇鍖诲璇勪及璁板綍澶辫触锛�" + JSON.stringify(response)
+      //       );
+      //     }
+      //   });
+      // } else {
+      //   this.title = "鏂板鎹愮尞鍖诲璇勪及";
+      //   this.form.infoid = data.id;
+      //   this.form.donorno = data.donorno;
 
-        this.open = true;
-        this.$nextTick(function() {
-          this.$refs.evaluationannex.getAnnexList();
-        });
-      }
-      this.loading = false;
+      //   this.open = true;
+      //   this.$nextTick(function() {
+      //     this.$refs.evaluationannex.getAnnexList();
+      //   });
+      // }
+      // this.loading = false;
     },
     /** 鎻愪氦鎸夐挳 */
     submitForm() {

--
Gitblit v1.9.3