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/OrganUtilization/index.vue |   97 ++++++++++++++++++++++--------------------------
 1 files changed, 44 insertions(+), 53 deletions(-)

diff --git a/src/views/business/OrganUtilization/index.vue b/src/views/business/OrganUtilization/index.vue
index 8177eba..d98215e 100644
--- a/src/views/business/OrganUtilization/index.vue
+++ b/src/views/business/OrganUtilization/index.vue
@@ -10,7 +10,7 @@
       >
         <el-form-item label="浣忛櫌鍙�" prop="inpatientno">
           <el-input
-            v-model="queryParams.inpatientno"
+            v-model="queryParams.caseNo"
             placeholder="璇疯緭鍏ヤ綇闄㈠彿"
             clearable
             style="width: 200px"
@@ -26,17 +26,17 @@
             @keyup.enter.native="handleQuery"
           />
         </el-form-item>
-        <el-form-item label="璁板綍鐘舵��" prop="recordstate">
+        <el-form-item label="鍒╃敤鐘舵��" prop="completeState">
           <el-select
-            v-model="queryParams.recordstate"
-            placeholder="璇烽�夋嫨璁板綍鐘舵��"
+            v-model="queryParams.completeState"
+            placeholder="璇烽�夋嫨鍒╃敤鐘舵��"
             clearable
             style="width: 200px"
           >
-            <el-option label="宸插畬鎴�" value="completed" />
-            <el-option label="杩涜涓�" value="processing" />
-            <el-option label="寰呭鐞�" value="pending" />
-            <el-option label="宸插叧闂�" value="closed" />
+            <el-option label="寰呭埄鐢�" value="1" />
+            <el-option label="杩涜涓�" value="2" />
+            <el-option label="宸插畬鎴�" value="3" />
+            <el-option label="鏀惧純" value="4" />
           </el-select>
         </el-form-item>
         <el-form-item>
@@ -113,7 +113,12 @@
           </template>
         </el-table-column>
         <el-table-column label="骞撮緞" align="center" prop="age" width="80" />
-        <el-table-column label="琛�鍨�" align="center" prop="bloodtype" width="80">
+        <el-table-column
+          label="琛�鍨�"
+          align="center"
+          prop="bloodtype"
+          width="80"
+        >
           <template slot-scope="scope">
             <dict-tag
               v-if="scope.row.bloodtype"
@@ -123,10 +128,23 @@
             <span v-else>-</span>
           </template>
         </el-table-column>
-        <el-table-column
-          label="鐤剧梾璇婃柇"
+           <el-table-column
+          label="鍒╃敤鐘舵��"
           align="center"
-          prop="diagnosisname"
+          prop="recordstate"
+          width="100"
+        >
+          <template slot-scope="scope">
+            <dict-tag
+              :options="dict.type.utilize_statue"
+              :value="scope.row.completeState"
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="鎺ユ敹鍗曚綅"
+          align="center"
+          prop="receivingunitname"
           min-width="180"
           show-overflow-tooltip
         />
@@ -154,18 +172,7 @@
             <span>{{ scope.row.responsibleusername || "-" }}</span>
           </template>
         </el-table-column>
-        <el-table-column
-          label="璁板綍鐘舵��"
-          align="center"
-          prop="recordstate"
-          width="100"
-        >
-          <template slot-scope="scope">
-            <el-tag :type="getStatusTagType(scope.row.recordstate)">
-              {{ getStatusText(scope.row.recordstate) }}
-            </el-tag>
-          </template>
-        </el-table-column>
+
         <el-table-column
           label="鎿嶄綔"
           fixed="right"
@@ -181,21 +188,21 @@
               @click="handleView(scope.row)"
               >璇︽儏</el-button
             >
-            <el-button
+            <!-- <el-button
               size="mini"
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
               >淇敼</el-button
-            >
-            <el-button
+            > -->
+            <!-- <el-button
               size="mini"
               type="text"
               icon="el-icon-delete"
               style="color: #F56C6C"
               @click="handleDelete(scope.row)"
               >鍒犻櫎</el-button
-            >
+            > -->
           </template>
         </el-table-column>
       </el-table>
@@ -213,13 +220,17 @@
 </template>
 
 <script>
-import { completionList, completionadd, completionedit } from "@/api/businessApi";
+import {
+  completionList,
+  completionadd,
+  completionedit
+} from "@/api/businessApi";
 import Pagination from "@/components/Pagination";
 
 export default {
   name: "OrganUtilizationList",
   components: { Pagination },
-  dicts: ["sys_user_sex", "sys_BloodType"],
+  dicts: ["sys_user_sex", "sys_BloodType", "utilize_statue"],
   data() {
     return {
       // 閬僵灞�
@@ -261,13 +272,13 @@
           let data = response.data;
           if (Array.isArray(data)) {
             this.organUtilizationList = data;
-            this.total = data.length;
+            this.total = response.total;
           } else if (data && data.rows) {
             this.organUtilizationList = data.rows;
-            this.total = data.total || data.rows.length;
+            this.total = response.total;
           } else if (data && data.list) {
             this.organUtilizationList = data.list;
-            this.total = data.total || data.list.length;
+            this.total = response.total;
           } else {
             this.organUtilizationList = [];
             this.total = 0;
@@ -281,26 +292,6 @@
       } finally {
         this.loading = false;
       }
-    },
-    // 鑾峰彇鐘舵�佹爣绛剧被鍨�
-    getStatusTagType(status) {
-      const typeMap = {
-        completed: "success",
-        processing: "warning",
-        pending: "info",
-        closed: "danger"
-      };
-      return typeMap[status] || "info";
-    },
-    // 鑾峰彇鐘舵�佹枃鏈�
-    getStatusText(status) {
-      const textMap = {
-        completed: "宸插畬鎴�",
-        processing: "杩涜涓�",
-        pending: "寰呭鐞�",
-        closed: "宸插叧闂�"
-      };
-      return textMap[status] || "鏈煡";
     },
     // 鎼滅储鎸夐挳鎿嶄綔
     handleQuery() {

--
Gitblit v1.9.3