From 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:39:24 +0800
Subject: [PATCH] 青岛维护

---
 src/views/business/assess/index.vue |  156 ++++++++++++++++++++++++++++------------------------
 1 files changed, 84 insertions(+), 72 deletions(-)

diff --git a/src/views/business/assess/index.vue b/src/views/business/assess/index.vue
index 9450f95..f35b5f0 100644
--- a/src/views/business/assess/index.vue
+++ b/src/views/business/assess/index.vue
@@ -8,7 +8,7 @@
         :inline="true"
         label-width="100px"
       >
-        <el-form-item label="鎹愮尞鑰呭鍚�" prop="name">
+        <el-form-item label="濮撳悕" prop="name">
           <el-input
             v-model="queryParams.name"
             placeholder="璇疯緭鍏ユ崘鐚�呭鍚�"
@@ -26,7 +26,7 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="涓氬姟浜哄憳" prop="coordinatorName">
+        <el-form-item label="鍗忚皟鍛�" prop="coordinatorName">
           <el-input
             v-model="queryParams.coordinatorName"
             placeholder="璇疯緭鍏ヤ笟鍔′汉鍛�"
@@ -35,10 +35,10 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="璇勪及鐘舵��" prop="assessState">
+        <el-form-item label="璇勪及缁撴灉" prop="assessState">
           <el-select
             v-model="queryParams.assessState"
-            placeholder="璇烽�夋嫨璇勪及鐘舵��"
+            placeholder="璇烽�夋嫨璇勪及缁撴灉"
             clearable
             style="width: 200px"
           >
@@ -48,7 +48,7 @@
             <el-option label="宸插叧闂�" value="4" />
           </el-select>
         </el-form-item>
-        <el-form-item label="鐢宠鏃堕棿" prop="applyTimeRange">
+        <el-form-item label="棣栨璇勪及鏃堕棿" prop="applyTimeRange">
           <el-date-picker
             v-model="queryParams.applyTimeRange"
             type="daterange"
@@ -59,7 +59,7 @@
             style="width: 240px"
           />
         </el-form-item>
-        <el-form-item label="璇勪及鏃堕棿" prop="assessTimeRange">
+        <el-form-item label="鏈�鏂拌瘎浼版椂闂�" prop="assessTimeRange">
           <el-date-picker
             v-model="queryParams.assessTimeRange"
             type="daterange"
@@ -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
@@ -146,12 +140,39 @@
         </el-table-column>
         <el-table-column label="骞撮緞" align="center" prop="age" width="80" />
         <el-table-column
+          label="琛�鍨�"
+          align="center"
+          prop="bloodtype"
+          width="80"
+        >
+          <template slot-scope="scope">
+            <dict-tag
+              :options="dict.type.sys_BloodType"
+              :value="scope.row.bloodtype"
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           label="鐤剧梾璇婃柇"
           align="center"
           prop="diagnosisname"
-          min-width="180"
+          width="200"
           show-overflow-tooltip
         />
+        <el-table-column
+          label="鎹愮尞绫诲瀷"
+          align="center"
+          prop="donationcategory"
+          width="180"
+        >
+          <template slot-scope="scope">
+            <dict-tag
+              :options="dict.type.sys_DonationCategory"
+              :value="scope.row.donationcategory"
+            />
+          </template>
+        </el-table-column>
+        <!--
         <el-table-column
           label="鎵�鍦ㄥ尰鐤楁満鏋�"
           align="center"
@@ -169,6 +190,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,27 +220,21 @@
           </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"
         />
         <el-table-column
+          label="鎹愮尞缂栧彿"
+          align="center"
+          prop="caseNo"
+          width="220"
+        />
+         <el-table-column
           label="鎿嶄綔"
           align="center"
-          width="200"
+          min-width="180"
           fixed="right"
           class-name="small-padding fixed-width"
         >
@@ -214,27 +244,15 @@
               type="text"
               icon="el-icon-view"
               @click.stop="handleView(scope.row)"
-              >璇︽儏</el-button
+              >鏌ョ湅</el-button
             >
             <el-button
-              v-if="
-                scope.row.assessState != '3' ||
-                  scope.row.assessState != '4'
-              "
               size="mini"
               type="text"
               icon="el-icon-edit"
-              @click.stop="handleAssess(scope.row)"
-              >璇勪及</el-button
+              @click.stop="handleUpdate(scope.row)"
+              >缂栬緫</el-button
             >
-            <!-- <el-button
-              v-if="scope.row.assessState === '3'"
-              size="mini"
-              type="text"
-              icon="el-icon-check"
-              @click.stop="handleConfirm(scope.row)"
-              >纭</el-button
-            > -->
           </template>
         </el-table-column>
       </el-table>
@@ -258,7 +276,7 @@
 export default {
   name: "AssessmentList",
   components: { Pagination },
-  dicts: ["sys_user_sex"],
+  dicts: ["sys_user_sex", "state_Evaluation", "sys_BloodType", "sys_DonationCategory"],
   data() {
     return {
       // 閬僵灞�
@@ -357,12 +375,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 +400,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
@@ -437,14 +461,7 @@
     handleView(row) {
       this.$router.push({
         path: "/case/assessInfo",
-        query: { id: row.id, infoid: row.infoid }
-      });
-    },
-    // 杩涜璇勪及
-    handleAssess(row) {
-      this.$router.push({
-        path: "/case/assessInfo",
-        query: { id: row.id, infoid: row.infoid, assess: true }
+        query: { id: row.id, infoid: row.infoid, mode: "view" }
       });
     },
     // 纭璇勪及
@@ -461,7 +478,7 @@
         // 鍒锋柊鍒楄〃
         this.getList();
       } catch (error) {
-        if (error !== 'cancel') {
+        if (error !== "cancel") {
           console.error("纭澶辫触:", error);
         }
       }
@@ -470,14 +487,11 @@
     handleCreate() {
       this.$router.push("/case/assessment/add");
     },
-    // 淇敼鎸夐挳鎿嶄綔
-    handleUpdate() {
-      if (this.ids.length === 0) return;
-
-      const id = this.ids[0];
+    // 缂栬緫
+    handleUpdate(row) {
       this.$router.push({
-        path: "/case/assessment/edit",
-        query: { id: id }
+        path: "/case/assessInfo",
+        query: { id: row.id, infoid: row.infoid, mode: "edit" }
       });
     },
     // 鍒犻櫎鎸夐挳鎿嶄綔
@@ -494,7 +508,6 @@
         // 杩欓噷闇�瑕佽皟鐢ㄥ垹闄ゆ帴鍙o紝鏆傛椂妯℃嫙鎴愬姛
         this.$message.success("鍒犻櫎鎴愬姛");
         this.getList();
-
       } catch (error) {
         if (error !== "cancel") {
           console.error("鍒犻櫎澶辫触:", error);
@@ -527,7 +540,6 @@
         } else {
           this.$message.error("瀵煎嚭澶辫触锛�" + (response.msg || "鏈煡閿欒"));
         }
-
       } catch (error) {
         if (error !== "cancel") {
           console.error("瀵煎嚭澶辫触:", error);
@@ -546,11 +558,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