From c2486044121750d274d40aac2e65b47d4c25b5c9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 22 四月 2024 18:08:15 +0800
Subject: [PATCH] 11

---
 src/views/project/medicalevaluation/index.vue |   42 ++++++++++++++++++++++--------------------
 1 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/src/views/project/medicalevaluation/index.vue b/src/views/project/medicalevaluation/index.vue
index c9f1365..19a75cc 100644
--- a/src/views/project/medicalevaluation/index.vue
+++ b/src/views/project/medicalevaluation/index.vue
@@ -51,13 +51,13 @@
         <el-col :span="6">
           <el-form-item label="鎹愮尞杩涘害" prop="recordstate">
             <el-select
-              v-model="queryParams.recordstate"
+              v-model="queryParams.workflow"
               placeholder="璇烽�夋嫨鎹愮尞杩涘害"
               clearable
               size="small"
             >
               <el-option
-                v-for="dict in dict.type.sys_DonationStatus"
+                v-for="dict in dict.type.sys_donornode"
                 :key="dict.value"
                 :label="dict.label"
                 :value="dict.value"
@@ -200,10 +200,13 @@
         width="120"
       >
         <template slot-scope="scope">
-          <dict-tag
-            :options="dict.type.sys_DonationStatus"
-            :value="scope.row.recordstate"
-          />
+          <div v-if="!scope.row.terminationCase">
+            <dict-tag
+              :options="dict.type.sys_donornode"
+              :value="scope.row.workflow"
+            />
+          </div>
+          <div v-else>浠诲姟缁堟</div>
         </template>
       </el-table-column>
 
@@ -628,7 +631,8 @@
     "sys_organstate",
     "sys_CoreAssessConclusion",
     "sys_BaseAssessConclusion",
-    "sys_OrganDecision"
+    "sys_OrganDecision",
+    "sys_donornode"
   ],
   data() {
     //杩欓噷瀛樻斁鏁版嵁
@@ -754,7 +758,6 @@
       this.selecttime = [
         this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
         this.$moment(this.$route.params.endtime)
-          .add(-1, "month")
           .format("YYYY-MM-DD")
       ];
     }
@@ -882,22 +885,17 @@
     getList(e) {
       this.loading = true;
       this.queryParams.params = {};
-      // if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
-      //   this.queryParams.params["beginReporttime"] =
-      //     this.daterangeReporttime[0];
-      //   this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
-      // }
+      sessionStorage.removeItem("medicalevaluation");
+      sessionStorage.setItem(
+        "medicalevaluation",
+        JSON.stringify(this.queryParams)
+      );
+     
       // 璺宠浆鏃剁殑榛樿杩涘害
       if (e != null && e != undefined && !isNaN(e)) {
         this.queryParams.recordstate = e;
       }
-      // if (this.selecttime[0] != null && this.selecttime[1] != null) {
-      //   this.queryParams.params["starttime"] = this.selecttime[0];
-      //   this.queryParams.params["endReporttime"] = this.selecttime[1];
-      // }
-
-      // this.queryParams.city='001'
-      //console.log(JSON.stringify(this.queryParams));
+   
       if (this.starttime != "") {
         this.queryParams.starttime = this.starttime;
       }
@@ -1341,6 +1339,10 @@
     //鑾峰彇鐢ㄦ埛鍒楄〃
     this.getuserlist();
     //鑾峰彇鍒楄〃
+    if (sessionStorage.getItem("medicalevaluation")) {
+      this.queryParams = JSON.parse(sessionStorage.getItem("medicalevaluation"));
+      console.log(this.queryParams, "queryParams");
+    }
     this.getList();
   }
   // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛�

--
Gitblit v1.9.3