From 4fbeee3784d4be5483ed7ec9e00a875d66bc9ed0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 20 二月 2024 16:09:40 +0800
Subject: [PATCH] 11

---
 src/views/project/ethicalReview/index.vue |   96 ++++++++++++++++++++++++++----------------------
 1 files changed, 52 insertions(+), 44 deletions(-)

diff --git a/src/views/project/ethicalReview/index.vue b/src/views/project/ethicalReview/index.vue
index 32467cd..3405e2b 100644
--- a/src/views/project/ethicalReview/index.vue
+++ b/src/views/project/ethicalReview/index.vue
@@ -682,53 +682,60 @@
       this.handleQuery();
     },
     /** 浼︾悊瀹℃煡寮圭獥 */
-    showDonationEvaluationDialog(dontateInfo) {
+    showDonationEvaluationDialog(row) {
+      this.$router.push({
+        path: "/organ/donationdetails/",
+        query: {
+          id: row.id,
+          organType: "edit",
+        }
+      });
       //鏌ユ壘鏄惁瀛樺湪浼︾悊瀹℃煡璁板綍
       //this.curCase = dontateInfo;
-      this.curCase = {
-        id: dontateInfo.id,
-        donorno: dontateInfo.donorno,
-        name: dontateInfo.name,
-        recordstate: null,
-      };
+      // this.curCase = {
+      //   id: dontateInfo.id,
+      //   donorno: dontateInfo.donorno,
+      //   name: dontateInfo.name,
+      //   recordstate: null,
+      // };
 
-      this.reset();
-      this.form.donorno = dontateInfo.donorno;
-      this.form.infoid = dontateInfo.id;
-      this.expertAdviceQueryParam.infoid = dontateInfo.id;
-      this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
-      // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
-      // this.getExpertList();
-      this.form.flowname = "浼︾悊瀹℃煡";
-      if (dontateInfo.fcid) {
-        let queryParam = {
-          id: dontateInfo.fcid,
-          flowname: "浼︾悊瀹℃煡",
-        };
-        // flowname: "浼︾悊瀹℃煡",
-        listDonateflowchart(queryParam).then((response) => {
-          let evaluationList = response.rows;
-          console.log("浼︾悊瀹℃煡", response.rows);
-          if (evaluationList.length == 1) {
-            this.form = evaluationList[0];
-            this.open = true;
-            this.$nextTick(function () {
-              this.$refs.ethicalannex.getAnnexList();
-            });
-            this.title = "淇敼浼︾悊瀹℃煡";
-          } else if (evaluationList.length == 0) {
-            this.$modal.msgError("鏈壘鍒版湰妗堜緥鐨勪鸡鐞嗗鏌ヨ褰曪紝璇疯仈绯荤鐞嗗憳锛�");
-          } else {
-            this.$modal.msgError("鏁版嵁閲嶅");
-          }
-        });
-      } else {
-        this.title = "鏂板浼︾悊瀹℃煡";
-        this.open = true;
-        this.$nextTick(function () {
-          this.$refs.ethicalannex.getAnnexList();
-        });
-      }
+      // this.reset();
+      // this.form.donorno = dontateInfo.donorno;
+      // this.form.infoid = dontateInfo.id;
+      // this.expertAdviceQueryParam.infoid = dontateInfo.id;
+      // this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
+      // // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
+      // // this.getExpertList();
+      // this.form.flowname = "浼︾悊瀹℃煡";
+      // if (dontateInfo.fcid) {
+      //   let queryParam = {
+      //     id: dontateInfo.fcid,
+      //     flowname: "浼︾悊瀹℃煡",
+      //   };
+      //   // flowname: "浼︾悊瀹℃煡",
+      //   listDonateflowchart(queryParam).then((response) => {
+      //     let evaluationList = response.rows;
+      //     console.log("浼︾悊瀹℃煡", response.rows);
+      //     if (evaluationList.length == 1) {
+      //       this.form = evaluationList[0];
+      //       this.open = true;
+      //       this.$nextTick(function () {
+      //         this.$refs.ethicalannex.getAnnexList();
+      //       });
+      //       this.title = "淇敼浼︾悊瀹℃煡";
+      //     } else if (evaluationList.length == 0) {
+      //       this.$modal.msgError("鏈壘鍒版湰妗堜緥鐨勪鸡鐞嗗鏌ヨ褰曪紝璇疯仈绯荤鐞嗗憳锛�");
+      //     } else {
+      //       this.$modal.msgError("鏁版嵁閲嶅");
+      //     }
+      //   });
+      // } else {
+      //   this.title = "鏂板浼︾悊瀹℃煡";
+      //   this.open = true;
+      //   this.$nextTick(function () {
+      //     this.$refs.ethicalannex.getAnnexList();
+      //   });
+      // }
     },
     /** 淇濆瓨鎹愮尞璇勪及 */
     submitForm() {
@@ -771,6 +778,7 @@
                 }
                 updateDonatebaseinfo(this.curCase).then((response) => {
                   this.$modal.msgSuccess("鏂板鎴愬姛");
+                  this.open = false;
                   this.getList();
                 });
               });

--
Gitblit v1.9.3