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/GetWitness/index.vue |   76 ++++++++++++++++++++++++++-----------
 1 files changed, 53 insertions(+), 23 deletions(-)

diff --git a/src/views/business/GetWitness/index.vue b/src/views/business/GetWitness/index.vue
index 7e2c926..5f6599c 100644
--- a/src/views/business/GetWitness/index.vue
+++ b/src/views/business/GetWitness/index.vue
@@ -26,15 +26,19 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="鑾峰彇鐘舵��" prop="recordstate">
+        <el-form-item label="鑾峰彇鐘舵��" prop="witnessState">
           <el-select
-            v-model="queryParams.recordstate"
+            v-model="queryParams.witnessState"
             placeholder="璇烽�夋嫨鑾峰彇鐘舵��"
             clearable
             style="width: 200px"
           >
-            <el-option label="宸茶幏鍙�" value="1" />
-            <el-option label="寰呰幏鍙�" value="0" />
+          <el-option
+            v-for="dict in dict.type.Obtain_status"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          />
           </el-select>
         </el-form-item>
         <el-form-item>
@@ -84,7 +88,7 @@
           width="120"
         />
         <el-table-column
-          label="鎹愮尞鑰呭鍚�"
+          label="濮撳悕"
           align="center"
           prop="name"
           width="120"
@@ -99,24 +103,49 @@
         </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"
-          prop="recordstate"
+          prop="witnessState"
           width="100"
         >
           <template slot-scope="scope">
-            <el-tag
-              :type="scope.row.recordstate === '1' ? 'success' : 'warning'"
-            >
-              {{ scope.row.recordstate === "1" ? "宸茶幏鍙�" : "寰呰幏鍙�" }}
-            </el-tag>
+              <dict-tag
+              :options="dict.type.Obtain_status"
+              :value="scope.row.witnessState"
+            />
           </template>
         </el-table-column>
         <el-table-column
@@ -145,10 +174,10 @@
           prop="responsibleusername"
           width="100"
         />
-        <el-table-column
+         <el-table-column
           label="鎿嶄綔"
           align="center"
-          width="210"
+          min-width="180"
           fixed="right"
           class-name="small-padding fixed-width"
         >
@@ -157,15 +186,15 @@
               size="mini"
               type="text"
               icon="el-icon-view"
-              @click="handleView(scope.row)"
-              >璇︽儏</el-button
+              @click.stop="handleView(scope.row)"
+              >鏌ョ湅</el-button
             >
             <el-button
               size="mini"
               type="text"
               icon="el-icon-edit"
-              @click="handleUpdate(scope.row)"
-              >淇敼</el-button
+              @click.stop="handleUpdate(scope.row)"
+              >缂栬緫</el-button
             >
           </template>
         </el-table-column>
@@ -191,7 +220,7 @@
 export default {
   name: "OrganProcurementList",
   components: { Pagination },
-  dicts: ["sys_user_sex"],
+  dicts: ["sys_user_sex", "Obtain_status", "sys_BloodType", "sys_DonationCategory"],
   data() {
     return {
       // 閬僵灞�
@@ -212,7 +241,7 @@
         pageSize: 10,
         inpatientno: undefined,
         name: undefined,
-        recordstate: undefined
+        witnessState: undefined
       }
     };
   },
@@ -259,18 +288,19 @@
     handleView(row) {
       this.$router.push({
         path: "/case/GetWitnessInfo",
-        query: { id: row.id, infoid: row.infoid }
+        query: { id: row.id, infoid: row.infoid, mode: "view" }
       });
     },
     // 鏂板鎸夐挳鎿嶄綔
     handleCreate() {
       this.$router.push("/case/GetWitnessInfo");
     },
-    // 淇敼鎸夐挳鎿嶄綔
+    // 缂栬緫
     handleUpdate(row) {
+      const id = row.id || this.ids[0];
       this.$router.push({
         path: "/case/GetWitnessInfo",
-        query: { id: row.id, infoid: row.infoid }
+        query: { id: id, infoid: row.infoid, mode: "edit" }
       });
     },
     // 鏃堕棿鏍煎紡鍖�

--
Gitblit v1.9.3