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/components/CaseBasicInfo/index.vue |   47 ++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 40 insertions(+), 7 deletions(-)

diff --git a/src/components/CaseBasicInfo/index.vue b/src/components/CaseBasicInfo/index.vue
index c7a9c90..b992cc3 100644
--- a/src/components/CaseBasicInfo/index.vue
+++ b/src/components/CaseBasicInfo/index.vue
@@ -2,6 +2,16 @@
   <el-card class="basic-info-card" v-loading="loading">
     <div slot="header" class="clearfix">
       <span>妗堜緥鍩烘湰淇℃伅</span>
+
+      <el-button
+        v-if="showAttachment"
+        type="text"
+        style="float: right; margin-left: 12px"
+        @click="openStageAttachments"
+      >
+        <i class="el-icon-folder"></i> 鏌ョ湅鍚勯樁娈甸檮浠�
+      </el-button>
+
       <el-button
         v-if="showAttachment && hasAttachments"
         style="float: right; padding: 3px 0"
@@ -13,9 +23,9 @@
     </div>
 
     <el-descriptions v-if="basicData" :column="column" border>
-      <!-- 1. 妗堜緥缂栧彿 -->
-      <el-descriptions-item label="妗堜緥缂栧彿">
-        {{ basicData.caseNo || "--" }}
+      <!-- 1. 浣忛櫌鍙� -->
+      <el-descriptions-item label="浣忛櫌鍙�">
+        {{ basicData.inpatientno || "--" }}
       </el-descriptions-item>
 
       <!-- 2. 娼滃湪鎹愮尞鑰呭鍚� -->
@@ -59,7 +69,7 @@
 
       <!-- 7. 鎵�鍦ㄥ尰鐤楁満鏋� -->
       <el-descriptions-item label="鎵�鍦ㄥ尰鐤楁満鏋�">
-        {{ basicData.treatmenthospitalname || basicData.hospitalName || "--" }}
+        {{ basicData.currentMedicalInstitution || "--" }}
       </el-descriptions-item>
 
       <!-- 8. 鍗忚皟鍛� -->
@@ -100,14 +110,24 @@
     <div v-else class="empty-state">
       <el-empty description="鏆傛棤妗堜緥淇℃伅" :image-size="100"></el-empty>
     </div>
+    <!-- 鍚勯樁娈甸檮浠跺脊妗� -->
+    <case-stage-attachments-dialog
+      ref="stageDialog"
+      :case-id="caseId"
+      :selected-ids="selectedAttachmentIds"
+      @confirm="onAttachmentsConfirm"
+    />
   </el-card>
 </template>
 
 <script>
-import { getDonatebaseinfo } from "@/api/project/donatebaseinfo";
+import { getDonatebaseinfo, getfileList } from "@/api/project/donatebaseinfo";
+import CaseStageAttachmentsDialog from "@/components/CaseStageAttachmentsDialog";
 
 export default {
   name: "CaseBasicInfoSimple",
+  components: { CaseStageAttachmentsDialog },
+
   props: {
     // 妗堜緥ID
     caseId: {
@@ -173,7 +193,9 @@
       basicData: null,
       // 瀛楀吀閫夐」
       sexOptions: [],
-      bloodTypeOptions: []
+      bloodTypeOptions: [],
+      selectedAttachmentIds: ["123", "456"],
+      finalAttachments: []
     };
   },
   computed: {
@@ -234,7 +256,16 @@
         console.warn("鍔犺浇瀛楀吀澶辫触:", error);
       }
     },
+    // 鎵撳紑鍚勯樁娈甸檮浠跺脊妗�
+    openStageAttachments() {
+      this.$refs.stageDialog.open();
+    },
 
+    onAttachmentsConfirm(list) {
+      this.finalAttachments = list;
+      console.log("閫変腑鐨勯樁娈甸檮浠讹細", list);
+      // 鍙洿鎺ユ彁浜ょ粰鎺ュ彛
+    },
     // 鍔犺浇鍩烘湰淇℃伅
     async loadBasicInfo() {
       if (!this.caseId) return;
@@ -245,7 +276,7 @@
 
         if (response.code === 200) {
           this.basicData = this.mapApiData(response.data);
-          console.log(this.basicData );
+          console.log(this.basicData);
 
           this.loading = false;
         } else {
@@ -273,6 +304,8 @@
         sex: apiData.sex,
         age: apiData.age,
         ageunit: apiData.ageunit,
+        inpatientno: apiData.inpatientno,
+        currentMedicalInstitution: apiData.currentMedicalInstitution,
         workflow: apiData.workflow,
         bloodType: apiData.bloodType || apiData.bloodtype,
         idcardno: apiData.idcardno || apiData.idCardNo,

--
Gitblit v1.9.3