From dc082351978a1e9f75d7a1471a0ca7ebeac552a5 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期一, 01 六月 2026 11:07:50 +0800
Subject: [PATCH] opo维护

---
 src/views/business/assess/index.vue |   73 ++++++++++++++++++------------------
 1 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/src/views/business/assess/index.vue b/src/views/business/assess/index.vue
index 2d13bff..1b7bc39 100644
--- a/src/views/business/assess/index.vue
+++ b/src/views/business/assess/index.vue
@@ -121,21 +121,15 @@
         v-loading="loading"
         :data="assessmentList"
         @selection-change="handleSelectionChange"
-        @row-click="handleRowClick"
       >
         <el-table-column type="selection" width="55" align="center" />
         <el-table-column
           label="浣忛櫌鍙�"
           align="center"
-          prop="caseNo"
+          prop="inpatientno"
           width="120"
         />
-        <el-table-column
-          label="鎹愮尞鑰呭鍚�"
-          align="center"
-          prop="name"
-          width="120"
-        />
+        <el-table-column label="濮撳悕" align="center" prop="name" width="120" />
         <el-table-column label="鎬у埆" align="center" prop="sex" width="80">
           <template slot-scope="scope">
             <dict-tag
@@ -152,6 +146,7 @@
           min-width="180"
           show-overflow-tooltip
         />
+        <!--
         <el-table-column
           label="鎵�鍦ㄥ尰鐤楁満鏋�"
           align="center"
@@ -169,6 +164,21 @@
             <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span>
           </template>
         </el-table-column>
+        -->
+
+        <el-table-column
+          label="璇勪及鐘舵��"
+          align="center"
+          prop="assessState"
+          width="100"
+        >
+          <template slot-scope="scope">
+            <dict-tag
+              :options="dict.type.state_Evaluation"
+              :value="scope.row.assessState"
+            />
+          </template>
+        </el-table-column>
         <el-table-column
           label="璇勪及鏃堕棿"
           align="center"
@@ -184,19 +194,7 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="璇勪及鐘舵��"
-          align="center"
-          prop="assessState"
-          width="100"
-        >
-          <template slot-scope="scope">
-            <el-tag :type="statusFilter(scope.row.assessState)">
-              {{ statusTextFilter(scope.row.assessState) }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column
-          label="涓氬姟浜哄憳"
+          label="鍗忚皟鍛�"
           align="center"
           prop="coordinatorName"
           width="100"
@@ -218,8 +216,7 @@
             >
             <el-button
               v-if="
-                scope.row.assessState != '3' ||
-                  scope.row.assessState != '4'
+                scope.row.assessState != '3' || scope.row.assessState != '4'
               "
               size="mini"
               type="text"
@@ -258,7 +255,7 @@
 export default {
   name: "AssessmentList",
   components: { Pagination },
-  dicts: ["sys_user_sex"],
+  dicts: ["sys_user_sex", "state_Evaluation"],
   data() {
     return {
       // 閬僵灞�
@@ -357,12 +354,18 @@
       }
 
       // 澶勭悊鏃堕棿鑼冨洿鏌ヨ
-      if (this.queryParams.applyTimeRange && this.queryParams.applyTimeRange.length === 2) {
+      if (
+        this.queryParams.applyTimeRange &&
+        this.queryParams.applyTimeRange.length === 2
+      ) {
         params.startApplyTime = this.queryParams.applyTimeRange[0];
         params.endApplyTime = this.queryParams.applyTimeRange[1];
       }
 
-      if (this.queryParams.assessTimeRange && this.queryParams.assessTimeRange.length === 2) {
+      if (
+        this.queryParams.assessTimeRange &&
+        this.queryParams.assessTimeRange.length === 2
+      ) {
         params.startAssessTime = this.queryParams.assessTimeRange[0];
         params.endAssessTime = this.queryParams.assessTimeRange[1];
       }
@@ -376,19 +379,19 @@
         if (Array.isArray(response.data)) {
           // 濡傛灉杩斿洖鐨勬槸鏁扮粍
           this.assessmentList = response.data;
-          this.total = response.data.length;
+          this.total = response.total;
         } else if (response.data.rows) {
           // 濡傛灉杩斿洖鐨勬槸鍒嗛〉鏁版嵁缁撴瀯
           this.assessmentList = response.data.rows;
-          this.total = response.data.total;
+          this.total = response.total;
         } else if (Array.isArray(response.data.list)) {
           // 濡傛灉杩斿洖鐨勬槸list瀛楁
           this.assessmentList = response.data.list;
-          this.total = response.data.total || response.data.list.length;
+          this.total = response.total || response.data.list.length;
         } else {
           // 鍏朵粬鏁版嵁缁撴瀯锛屽皾璇曠洿鎺ヤ娇鐢╠ata
           this.assessmentList = response.data;
-          this.total = response.total || response.data.length;
+          this.total = response.total || response.total;
         }
       } else {
         // 濡傛灉data涓虹┖锛屼娇鐢ㄦ牴绾у埆鐨剅ows鎴杔ist
@@ -461,7 +464,7 @@
         // 鍒锋柊鍒楄〃
         this.getList();
       } catch (error) {
-        if (error !== 'cancel') {
+        if (error !== "cancel") {
           console.error("纭澶辫触:", error);
         }
       }
@@ -494,7 +497,6 @@
         // 杩欓噷闇�瑕佽皟鐢ㄥ垹闄ゆ帴鍙o紝鏆傛椂妯℃嫙鎴愬姛
         this.$message.success("鍒犻櫎鎴愬姛");
         this.getList();
-
       } catch (error) {
         if (error !== "cancel") {
           console.error("鍒犻櫎澶辫触:", error);
@@ -527,7 +529,6 @@
         } else {
           this.$message.error("瀵煎嚭澶辫触锛�" + (response.msg || "鏈煡閿欒"));
         }
-
       } catch (error) {
         if (error !== "cancel") {
           console.error("瀵煎嚭澶辫触:", error);
@@ -546,11 +547,11 @@
 
       // 妯℃嫙鏂囦欢涓嬭浇
       const blob = new Blob([JSON.stringify(data, null, 2)], {
-        type: 'application/vnd.ms-excel'
+        type: "application/vnd.ms-excel"
       });
-      const link = document.createElement('a');
+      const link = document.createElement("a");
       link.href = URL.createObjectURL(blob);
-      link.download = '鍖诲璇勪及鏁版嵁.xlsx';
+      link.download = "鍖诲璇勪及鏁版嵁.xlsx";
       link.click();
     },
     // 鏃堕棿鏍煎紡鍖�

--
Gitblit v1.9.3