From 3453ba7e5243022ad4388da1515dc75ad8d81f94 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期日, 17 五月 2026 15:00:23 +0800
Subject: [PATCH] 近期调试

---
 src/views/business/course/components/OrganUtilizationStage.vue | 2499 ++++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 1,769 insertions(+), 730 deletions(-)

diff --git a/src/views/business/course/components/OrganUtilizationStage.vue b/src/views/business/course/components/OrganUtilizationStage.vue
index e3c02d8..233eabe 100644
--- a/src/views/business/course/components/OrganUtilizationStage.vue
+++ b/src/views/business/course/components/OrganUtilizationStage.vue
@@ -1,812 +1,1851 @@
 <template>
-  <base-stage :stage-data="stageData" :case-info="caseInfo">
-    <!-- 澶撮儴璀﹀憡淇℃伅 -->
-    <template #header>
-      <el-alert
-        :title="`鍣ㄥ畼鍒╃敤 - ${getStatusText()}`"
-        :type="getAlertType()"
-        :description="getAlertDescription()"
-        show-icon
-        :closable="false"
-      />
-    </template>
+  <div class="organ-utilization-detail">
+    <el-form :model="form" ref="form" :rules="rules" label-width="120px">
+      <!-- 鍩烘湰淇℃伅 -->
+      <el-card class="detail-card">
+        <div slot="header" class="clearfix">
+          <span class="detail-title">鍣ㄥ畼鍒╃敤鍩烘湰淇℃伅</span>
 
-    <!-- 缁熻姒傝琛� -->
-    <el-row :gutter="20" style="margin-top: 20px;">
-      <el-col :span="6">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>鍒╃敤姒傚喌</span>
-          </div>
-          <div class="utilization-overview">
-            <div class="overview-item">
-              <div class="overview-icon" style="color: #67C23A;">
-                <i class="el-icon-success"></i>
-              </div>
-              <div class="overview-content">
-                <div class="value">{{ utilizationStats.transplanted }}</div>
-                <div class="label">宸茬Щ妞嶅櫒瀹�</div>
-              </div>
-            </div>
-            <div class="overview-item">
-              <div class="overview-icon" style="color: #E6A23C;">
-                <i class="el-icon-time"></i>
-              </div>
-              <div class="overview-content">
-                <div class="value">{{ utilizationStats.inProgress }}</div>
-                <div class="label">绉绘涓�</div>
-              </div>
-            </div>
-            <div class="overview-item">
-              <div class="overview-icon" style="color: #F56C6C;">
-                <i class="el-icon-warning"></i>
-              </div>
-              <div class="overview-content">
-                <div class="value">{{ utilizationStats.failed }}</div>
-                <div class="label">绉绘澶辫触</div>
-              </div>
-            </div>
-          </div>
-        </el-card>
-      </el-col>
+        </div>
 
-      <el-col :span="6">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>鎴愬姛鐜囩粺璁�</span>
-          </div>
-          <div class="success-stats">
-            <div class="success-item">
-              <span class="label">绉绘鎴愬姛鐜�:</span>
-              <el-progress
-                :percentage="utilizationStats.successRate"
-                :status="utilizationStats.successRate > 85 ? 'success' : 'warning'"
+        <el-row :gutter="20">
+          <el-col :span="6">
+            <el-form-item label="璐熻矗浜�" prop="responsibleusername">
+              <el-input
+                v-model="form.responsibleusername"
+                placeholder="璇疯緭鍏ヨ礋璐d汉濮撳悕"
               />
-            </div>
-            <div class="success-item">
-              <span class="label">鍣ㄥ畼鍒╃敤鐜�:</span>
-              <el-progress
-                :percentage="utilizationStats.utilizationRate"
-                status="success"
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="鍗忚皟鍛樹竴" prop="coordinatedusernameo">
+              <el-input
+                v-model="form.coordinatedusernameo"
+                placeholder="璇疯緭鍏ュ崗璋冨憳涓�濮撳悕"
               />
-            </div>
-            <div class="success-item">
-              <span class="label">鎮h�呭瓨娲荤巼:</span>
-              <el-progress
-                :percentage="utilizationStats.survivalRate"
-                status="success"
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="鍗忚皟鍛樹簩" prop="coordinatedusernamet">
+              <el-input
+                v-model="form.coordinatedusernamet"
+                placeholder="璇疯緭鍏ュ崗璋冨憳浜屽鍚�"
               />
-            </div>
-          </div>
-        </el-card>
-      </el-col>
-
-      <el-col :span="6">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>鏃堕棿璺熻釜</span>
-          </div>
-          <div class="time-tracking">
-            <div class="time-item">
-              <span class="label">鑾峰彇鍒扮Щ妞�:</span>
-              <span class="value">{{ timeTracking.procurementToTransplant }}</span>
-            </div>
-            <div class="time-item">
-              <span class="label">鍐风己琛�鏃堕棿:</span>
-              <span class="value">{{ timeTracking.coldIschemiaTime }}</span>
-            </div>
-            <div class="time-item">
-              <span class="label">鎵嬫湳鏃堕暱:</span>
-              <span class="value">{{ timeTracking.surgeryDuration }}</span>
-            </div>
-            <div class="time-item">
-              <span class="label">ICU鍋滅暀:</span>
-              <span class="value">{{ timeTracking.icuStay }}</span>
-            </div>
-          </div>
-        </el-card>
-      </el-col>
-
-      <el-col :span="6">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>璐ㄩ噺璇勪及</span>
-          </div>
-          <div class="quality-assessment">
-            <div class="quality-item">
-              <span class="label">鍣ㄥ畼璐ㄩ噺璇勫垎:</span>
-              <el-rate
-                v-model="qualityStats.organQuality"
-                disabled
-                show-score
-                text-color="#ff9900"
-                score-template="{value}"
+            </el-form-item>
+          </el-col>
+          <el-col :span="6">
+            <el-form-item label="瀹屾垚鏃堕棿" prop="completetime">
+              <el-date-picker
+                v-model="form.completetime"
+                type="datetime"
+                value-format="yyyy-MM-dd HH:mm:ss"
+                style="width: 100%"
               />
-            </div>
-            <div class="quality-item">
-              <span class="label">鎵嬫湳璐ㄩ噺:</span>
-              <el-rate
-                v-model="qualityStats.surgeryQuality"
-                disabled
-                show-score
-                text-color="#ff9900"
-                score-template="{value}"
+            </el-form-item>
+          </el-col>
+        </el-row>
+
+        <el-row :gutter="20">
+          <el-col :span="12">
+            <el-form-item label="鐧昏浜�" prop="createBy">
+              <el-input v-model="form.createBy" />
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="鐧昏鏃堕棿" prop="createTime">
+              <el-date-picker
+                v-model="form.createTime"
+                type="datetime"
+                value-format="yyyy-MM-dd HH:mm:ss"
+                style="width: 100%"
               />
-            </div>
-            <div class="quality-item">
-              <span class="label">闅忚瀹屾垚鐜�:</span>
-              <el-progress
-                :percentage="qualityStats.followupCompletionRate"
-                status="success"
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-card>
+      <el-card class="detail-card">
+        <div slot="header" class="clearfix">
+          <span class="detail-title">閬椾綋鎹愮尞淇℃伅</span>
+        </div>
+        <el-row :gutter="20">
+          <el-col :span="6">
+            <el-form-item align="left" label="閬椾綋鎹愮尞" prop="isbodydonation">
+              <el-radio-group v-model="form.isbodydonation">
+                <el-radio
+                  v-for="dict in dict.type.sys_0_1 || []"
+                  :key="dict.value"
+                  :label="dict.value"
+                  >{{ dict.label }}</el-radio
+                >
+              </el-radio-group>
+            </el-form-item>
+          </el-col>
+          <el-col :span="18" v-if="form.isbodydonation == 1">
+            <el-form-item
+              align="left"
+              label="鎺ユ敹鍗曚綅"
+              prop="receivingunitname"
+            >
+              <el-input
+                v-model="form.receivingunitname"
+                placeholder="璇疯緭鍏ユ帴鏀跺崟浣�"
               />
-            </div>
-          </div>
-        </el-card>
-      </el-col>
-    </el-row>
-
-    <!-- 鏁版嵁鍙鍖栭儴鍒� -->
-    <el-row :gutter="20" style="margin-top: 20px;">
-      <!-- 鍣ㄥ畼鍒╃敤鍒嗗竷鍥� -->
-      <el-col :span="12">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>鍣ㄥ畼鍒╃敤鍒嗗竷</span>
-            <el-radio-group v-model="chartView" size="small" @change="updateCharts">
-              <el-radio-button label="bar">鏌辩姸鍥�</el-radio-button>
-              <el-radio-button label="pie">楗煎浘</el-radio-button>
-            </el-radio-group>
-          </div>
-          <div class="chart-container">
-            <div ref="organDistributionChart" style="width: 100%; height: 300px;"></div>
-          </div>
-        </el-card>
-      </el-col>
-
-      <!-- 鎴愬姛鐜囪秼鍔垮浘 -->
-      <el-col :span="12">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>绉绘鎴愬姛鐜囪秼鍔�</span>
-          </div>
-          <div class="chart-container">
-            <div ref="successTrendChart" style="width: 100%; height: 300px;"></div>
-          </div>
-        </el-card>
-      </el-col>
-    </el-row>
-
-    <el-row :gutter="20" style="margin-top: 20px;">
-      <!-- 闅忚鏁版嵁缁熻 -->
-      <el-col :span="12">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>闅忚鏁版嵁缁熻</span>
-          </div>
-          <div class="chart-container">
-            <div ref="followupStatsChart" style="width: 100%; height: 300px;"></div>
-          </div>
-        </el-card>
-      </el-col>
-
-      <!-- 骞跺彂鐥囧垎鏋� -->
-      <el-col :span="12">
-        <el-card>
-          <div slot="header" class="card-header">
-            <span>骞跺彂鐥囧垎鏋�</span>
-          </div>
-          <div class="chart-container">
-            <div ref="complicationChart" style="width: 100%; height: 300px;"></div>
-          </div>
-        </el-card>
-      </el-col>
-    </el-row>
-
-    <!-- 璇︾粏鏁版嵁琛ㄦ牸 -->
-    <el-card style="margin-top: 20px;">
-      <div slot="header" class="card-header">
-        <span>鍣ㄥ畼鍒╃敤璇︽儏</span>
-        <el-button type="primary" size="small" @click="exportData">
-          瀵煎嚭鏁版嵁
-        </el-button>
+            </el-form-item>
+          </el-col>
+          <el-col :span="8" v-else>
+            <el-form-item align="left" label="鎺ユ敹瀹跺睘" prop="relationname">
+              <el-input
+                v-model="form.relationname"
+                placeholder="璇疯緭鍏ユ帴鏀跺灞�"
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-card>
+    </el-form>
+    <!-- 鍣ㄥ畼鍒╃敤璁板綍閮ㄥ垎 - 鏁村悎鍙楄�呰鎯� -->
+    <el-card class="utilization-card">
+      <div slot="header" class="clearfix">
+        <span class="detail-title">鍣ㄥ畼鍒╃敤璁板綍</span>
+        <div style="float: right;">
+          <dict-tag
+            :options="dict.type.utilize_statue"
+            :value="form.completeState"
+          />
+        </div>
       </div>
 
-      <el-table :data="organUtilizationData" v-loading="loading" border>
-        <el-table-column label="鍣ㄥ畼鍚嶇О" prop="organName" width="120" align="center" />
-        <el-table-column label="绉绘鐘舵��" width="100" align="center">
-          <template slot-scope="scope">
-            <el-tag :type="getTransplantStatusTag(scope.row.status)">
-              {{ scope.row.status }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="鍙椾綋淇℃伅" width="150">
-          <template slot-scope="scope">
-            <div>{{ scope.row.recipientName }}</div>
-            <div style="font-size: 12px; color: #909399;">{{ scope.row.recipientAge }}宀�/{{ scope.row.recipientGender }}</div>
-          </template>
-        </el-table-column>
-        <el-table-column label="绉绘鍖婚櫌" prop="hospital" min-width="180" />
-        <el-table-column label="绉绘鏃堕棿" width="160" align="center">
-          <template slot-scope="scope">
-            {{ formatTime(scope.row.transplantTime) }}
-          </template>
-        </el-table-column>
-        <el-table-column label="闅忚娆℃暟" width="100" align="center">
-          <template slot-scope="scope">
-            <el-tag :type="scope.row.followupCount > 0 ? 'success' : 'info'">
-              {{ scope.row.followupCount }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="褰撳墠鐘舵��" width="120" align="center">
-          <template slot-scope="scope">
-            <el-tag :type="getRecipientStatusTag(scope.row.recipientStatus)">
-              {{ scope.row.recipientStatus }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="鎿嶄綔" width="150" align="center">
-          <template slot-scope="scope">
-            <el-button type="text" size="small" @click="handleViewDetails(scope.row)">
-              鏌ョ湅璇︽儏
-            </el-button>
-            <el-button type="text" size="small" @click="handleAddFollowup(scope.row)">
-              娣诲姞闅忚
-            </el-button>
-          </template>
-        </el-table-column>
-      </el-table>
+      <el-form
+        ref="utilizationForm"
+        :rules="utilizationRules"
+        :model="utilizationData"
+        label-position="right"
+      >
+        <el-row>
+          <el-col>
+            <el-form-item label-width="100px" label="绉绘鍣ㄥ畼">
+              <el-checkbox-group
+                v-model="selectedOrgans"
+                @change="handleOrganSelectionChange"
+              >
+                <el-checkbox
+                  v-for="dict in dict.type.sys_Organ || []"
+                  :key="dict.value"
+                  :label="dict.value"
+                >
+                  {{ dict.label }}
+                </el-checkbox>
+              </el-checkbox-group>
+            </el-form-item>
+          </el-col>
+        </el-row>
+
+        <el-row>
+          <el-col>
+            <el-form-item>
+              <el-table
+                :data="utilizationData.serviceDonatecomporganList"
+                v-loading="loading"
+                border
+                style="width: 100%"
+                :row-class-name="getOrganRowClassName"
+                :expand-row-keys="expandedRows"
+                @expand-change="handleExpandChange"
+                row-key="organno"
+              >
+                <el-table-column type="expand" width="60">
+                  <template slot-scope="scope">
+                    <!-- 灞曞紑琛屽唴瀹� - 鍙楄�呰缁嗕俊鎭� -->
+                    <div class="recipient-detail-expand">
+                      <div class="recipient-header">
+                        <span class="recipient-title">鍙楄�呰缁嗕俊鎭�</span>
+                        <el-tag
+                          v-if="scope.row.transplantstate === '1'"
+                          type="success"
+                          size="small"
+                        >
+                          宸茬Щ妞�
+                        </el-tag>
+                        <el-tag
+                          v-else-if="scope.row.transplantstate === '0'"
+                          type="warning"
+                          size="small"
+                        >
+                          鏈Щ妞�
+                        </el-tag>
+                        <el-tag v-else type="info" size="small">
+                          绉绘涓�
+                        </el-tag>
+                      </div>
+
+                      <el-form
+                        :model="scope.row"
+                        label-width="140px"
+                        class="recipient-form"
+                      >
+                        <!-- 鍩烘湰淇℃伅閮ㄥ垎 -->
+                        <div class="form-section">
+                          <h4 class="section-title">鍩烘湰淇℃伅</h4>
+                          <el-row :gutter="20">
+                            <el-col :span="8">
+                              <el-form-item label="鍙楄�呭鍚�">
+                                <el-input
+                                  v-model="scope.row.name"
+                                  placeholder="璇疯緭鍏ュ彈鑰呭鍚�"
+                                />
+                              </el-form-item>
+                            </el-col>
+                            <el-col :span="8">
+                              <el-form-item label="鍑虹敓鏃ユ湡">
+                                <el-date-picker
+                                  v-model="scope.row.birthday"
+                                  type="date"
+                                  value-format="yyyy-MM-dd"
+                                  placeholder="閫夋嫨鍑虹敓鏃ユ湡"
+                                  style="width: 100%"
+                                />
+                              </el-form-item>
+                            </el-col>
+                            <el-col :span="8">
+                              <el-form-item label="鎬у埆">
+                                <el-select
+                                  v-model="scope.row.sex"
+                                  placeholder="璇烽�夋嫨鎬у埆"
+                                  style="width: 100%"
+                                >
+                                  <el-option label="鐢�" :value="0" />
+                                  <el-option label="濂�" :value="1" />
+                                </el-select>
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+
+                          <el-row :gutter="20">
+                            <el-col :span="8">
+                              <el-form-item label="骞撮緞">
+                                <el-input
+                                  v-model="scope.row.age"
+                                  placeholder="骞撮緞"
+                                />
+                              </el-form-item>
+                            </el-col>
+                            <el-col :span="8">
+                              <el-form-item label="璇佷欢绫诲瀷">
+                                <el-select
+                                  v-model="scope.row.idcardtype"
+                                  placeholder="璇烽�夋嫨璇佷欢绫诲瀷"
+                                  style="width: 100%"
+                                >
+                                  <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-col>
+                            <el-col :span="8">
+                              <el-form-item label="璇佷欢鍙风爜">
+                                <el-input
+                                  v-model="scope.row.idcardno"
+                                  placeholder="璇佷欢鍙风爜"
+                                />
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+                        </div>
+
+                        <!-- 鑱旂郴淇℃伅閮ㄥ垎 -->
+                        <div class="form-section">
+                          <h4 class="section-title">鑱旂郴淇℃伅</h4>
+                          <el-row :gutter="20">
+                            <el-col :span="12">
+                              <el-form-item label="绉绘涓績鍚嶇О">
+                                <el-input
+                                  v-model="scope.row.hospitalname"
+                                  placeholder="璇疯緭鍏ョЩ妞嶄腑蹇冨悕绉�"
+                                />
+                              </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                              <el-form-item label="鑱旂郴鐢佃瘽">
+                                <el-input
+                                  v-model="scope.row.phone"
+                                  placeholder="鑱旂郴鐢佃瘽"
+                                />
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+
+                          <el-row :gutter="20">
+                            <el-col :span="24">
+                              <el-form-item label="鐜颁綇鍦板潃">
+                                <el-input
+                                  type="textarea"
+                                  :rows="2"
+                                  v-model="scope.row.residenceaddress"
+                                  placeholder="璇疯緭鍏ヨ缁嗗湴鍧�"
+                                />
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+                        </div>
+
+                        <!-- 绉绘淇℃伅閮ㄥ垎 -->
+                        <div
+                          class="form-section"
+                          v-if="scope.row.transplantstate === '1'"
+                        >
+                          <h4 class="section-title">绉绘淇℃伅</h4>
+                          <el-row :gutter="20">
+                            <el-col :span="12">
+                              <el-form-item label="绉绘鏃堕棿">
+                                <el-date-picker
+                                  v-model="scope.row.transplanttime"
+                                  type="datetime"
+                                  value-format="yyyy-MM-dd HH:mm:ss"
+                                  placeholder="閫夋嫨绉绘鏃ユ湡"
+                                  style="width: 100%"
+                                />
+                              </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                              <el-form-item label="绉绘鍖荤敓">
+                                <el-input
+                                  v-model="scope.row.transplantdoct"
+                                  placeholder="璇疯緭鍏ョЩ妞嶅尰鐢�"
+                                />
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+                        </div>
+
+                        <!-- 鏈Щ妞嶅師鍥� -->
+                        <div
+                          class="form-section"
+                          v-if="scope.row.transplantstate === '0'"
+                        >
+                          <h4 class="section-title">鏈Щ妞嶄俊鎭�</h4>
+                          <el-row :gutter="20">
+                            <el-col :span="24">
+                              <el-form-item label="鏈Щ妞嶅師鍥�">
+                                <el-input
+                                  type="textarea"
+                                  :rows="3"
+                                  v-model="scope.row.abandonreason"
+                                  placeholder="璇疯緭鍏ユ湭绉绘鍘熷洜"
+                                />
+                              </el-form-item>
+                            </el-col>
+                          </el-row>
+                        </div>
+                      </el-form>
+                    </div>
+                  </template>
+                </el-table-column>
+
+                <el-table-column
+                  label="鍣ㄥ畼鍚嶇О"
+                  align="center"
+                  prop="organname"
+                >
+                  <template slot-scope="scope">
+                    <el-input
+                      v-model="scope.row.organname"
+                      placeholder="鍣ㄥ畼鍚嶇О"
+                      :disabled="true"
+                    />
+                  </template>
+                </el-table-column>
+
+                <el-table-column label="绯荤粺缂栧彿" align="center" prop="caseNo">
+                  <template slot-scope="scope">
+                    <el-input
+                      v-model="scope.row.caseNo"
+                      placeholder="绯荤粺缂栧彿"
+                    />
+                  </template>
+                </el-table-column>
+
+                <el-table-column
+                  label="绉绘鍖婚櫌"
+                  align="center"
+                  width="260"
+                  prop="hospitalno"
+                >
+                  <template slot-scope="scope">
+                    <el-select
+                      v-model="scope.row.hospitalno"
+                      placeholder="璇烽�夋嫨绉绘鍖婚櫌"
+                      style="width: 100%"
+                      @change="handleHospitalChange(scope.row, $event)"
+                    >
+                      <el-option
+                        v-for="hospital in hospitalList"
+                        :key="hospital.hospitalNo"
+                        :label="hospital.hospitalName"
+                        :value="hospital.hospitalNo"
+                      />
+                    </el-select>
+                  </template>
+                </el-table-column>
+
+                <el-table-column
+                  label="绉绘鐘舵��"
+                  align="center"
+                  prop="transplantstate"
+                >
+                  <template slot-scope="scope">
+                    <el-select
+                      v-model="scope.row.transplantstate"
+                      placeholder="璇烽�夋嫨绉绘鐘舵��"
+                      style="width: 100%"
+                      @change="handleTransplantStatusChange(scope.row, $event)"
+                    >
+                      <el-option
+                        v-for="dict in transplantStatusList"
+                        :key="dict.value"
+                        :label="dict.label"
+                        :value="dict.value"
+                      />
+                    </el-select>
+                  </template>
+                </el-table-column>
+
+                <el-table-column
+                  label="绉绘鏃堕棿"
+                  align="center"
+                  width="220"
+                  prop="transplanttime"
+                >
+                  <template slot-scope="scope">
+                    <el-date-picker
+                      clearable
+                      size="small"
+                      style="width: 100%"
+                      v-model="scope.row.transplanttime"
+                      type="datetime"
+                      value-format="yyyy-MM-dd HH:mm:ss"
+                      placeholder="閫夋嫨绉绘鏃堕棿"
+                    />
+                  </template>
+                </el-table-column>
+
+                <el-table-column
+                  label="绉绘鍖荤敓"
+                  align="center"
+                  prop="transplantdoct"
+                >
+                  <template slot-scope="scope">
+                    <el-input
+                      v-model="scope.row.transplantdoct"
+                      placeholder="鍖诲笀濮撳悕"
+                    />
+                  </template>
+                </el-table-column>
+
+                <el-table-column label="鍙楄�呭鍚�" align="center" prop="name">
+                  <template slot-scope="scope">
+                    <el-input v-model="scope.row.name" placeholder="鍙楄�呭鍚�" />
+                  </template>
+                </el-table-column>
+              </el-table>
+            </el-form-item>
+          </el-col>
+        </el-row>
+
+        <!-- 缁熻淇℃伅 -->
+
+        <div
+          v-if="
+            !utilizationData.serviceDonatecomporganList ||
+              utilizationData.serviceDonatecomporganList.length == 0
+          "
+          class="empty-utilization"
+        >
+          <el-empty description="鏆傛棤鍒╃敤璁板綍" :image-size="80">
+            <span>璇峰厛閫夋嫨瑕佸埄鐢ㄧ殑鍣ㄥ畼</span>
+          </el-empty>
+        </div>
+      </el-form>
     </el-card>
 
-    <!-- 琛屽姩鎸夐挳 -->
-    <template #footer>
-      <div class="action-buttons" style="margin-top: 20px; text-align: center;">
-        <el-button type="primary" @click="handleGenerateReport">
-          鐢熸垚鍒╃敤鎶ュ憡
-        </el-button>
-        <el-button type="success" @click="handleCompleteUtilization">
-          瀹屾垚鍣ㄥ畼鍒╃敤
-        </el-button>
-        <el-button type="warning" @click="handleStatistics">
-          缁熻鏁版嵁鍒嗘瀽
-        </el-button>
+    <!-- 闄勪欢绠$悊閮ㄥ垎 -->
+    <!-- 闄勪欢绠$悊閮ㄥ垎 - 浼樺寲涓哄畬鏁村姛鑳� -->
+    <el-card class="attachment-card">
+      <div class="attachment-header">
+        <i class="el-icon-paperclip"></i>
+        <span class="attachment-title">鐩稿叧闄勪欢</span>
+        <span class="attachment-tip"
+          >鏀寔涓婁紶鍣ㄥ畼鍒╃敤鐩稿叧鏂囦欢 (鏈�澶歿{ attachmentLimit }}涓�)</span
+        >
       </div>
-    </template>
-  </base-stage>
+
+      <!-- 浣跨敤 UploadAttachment 缁勪欢 -->
+      <UploadAttachment
+        ref="uploadAttachment"
+        :file-list="attachmentFileList"
+        :limit="attachmentLimit"
+        :accept="attachmentAccept"
+        :multiple="true"
+        @change="handleAttachmentChange"
+        @upload-success="handleUploadSuccess"
+        @upload-error="handleUploadError"
+        @remove="handleAttachmentRemove"
+      />
+
+      <!-- 闄勪欢鍒楄〃灞曠ず -->
+      <div class="attachment-list" v-if="attachments && attachments.length > 0">
+        <div class="list-title">宸蹭笂浼犻檮浠� ({{ attachments.length }})</div>
+        <el-table :data="attachments" style="width: 100%" size="small">
+          <el-table-column label="鏂囦欢鍚�" min-width="200">
+            <template slot-scope="scope">
+              <i
+                class="el-icon-document"
+                :style="{ color: getFileIconColor(scope.row.fileName) }"
+              ></i>
+              <span class="file-name">{{ scope.row.fileName }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="鏂囦欢绫诲瀷" width="100">
+            <template slot-scope="scope">
+              <el-tag :type="getFileTagType(scope.row.fileName)" size="small">
+                {{ getFileTypeText(scope.row.fileName) }}
+              </el-tag>
+            </template>
+          </el-table-column>
+          <el-table-column label="涓婁紶鏃堕棿" width="200">
+            <template slot-scope="scope">
+              <span>{{ formatDateTime(scope.row.uploadTime) }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="鏂囦欢澶у皬" width="180">
+            <template slot-scope="scope">
+              <span>{{ formatFileSize(scope.row.fileSize) }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="鎿嶄綔" width="260" fixed="right">
+            <template slot-scope="scope">
+              <el-button
+                size="mini"
+                type="primary"
+                @click="handlePreview(scope.row)"
+                :disabled="!isPreviewable(scope.row.fileName)"
+              >
+                棰勮
+              </el-button>
+              <el-button
+                size="mini"
+                type="success"
+                @click="handleDownloadAttachment(scope.row)"
+              >
+                涓嬭浇
+              </el-button>
+              <el-button
+                size="mini"
+                type="danger"
+                @click="handleRemoveAttachment(scope.$index)"
+              >
+                鍒犻櫎
+              </el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+    </el-card>
+
+    <!-- 鏂囦欢棰勮瀵硅瘽妗� -->
+    <FilePreviewDialog
+      :visible="filePreviewVisible"
+      :file="currentPreviewFile"
+      @close="filePreviewVisible = false"
+      @download="handleDownloadAttachment"
+    />
+  </div>
 </template>
 
 <script>
-import BaseStage from './BaseStage.vue';
-import * as echarts from 'echarts';
+import {
+  completionList,
+  completionadd,
+  completionedit
+} from "@/api/businessApi";
+import UploadAttachment from "@/components/UploadAttachment"; // 鏂板瀵煎叆
+import FilePreviewDialog from "@/components/FilePreviewDialog"; // 鏂板瀵煎叆
+import CaseBasicInfo from "@/components/CaseBasicInfo";
+import dayjs from "dayjs"; // 鏂板瀵煎叆锛岀敤浜庢椂闂村鐞�
 
 export default {
-  name: 'OrganUtilizationStage',
-  components: { BaseStage },
-  props: {
-    stageData: {
-      type: Object,
-      default: () => ({})
-    },
-    caseInfo: {
-      type: Object,
-      default: () => ({})
+  name: "OrganUtilizationDetail",
+  components: {
+    UploadAttachment,
+    FilePreviewDialog,
+    CaseBasicInfo
+  },
+  dicts: ["sys_BloodType", "sys_Organ", "sys_0_1", "utilize_statue"],
+    props: {
+    infoid: {
+      type: String,
+      default: true
     }
   },
   data() {
     return {
-      chartView: 'bar',
+      caseId: null,
+
+      // 琛ㄥ崟鏁版嵁 - 鏍规嵁鎺ュ彛鍙傛暟璋冩暣
+      form: {
+        id: undefined,
+        infoid: undefined,
+        inpatientno: "",
+        completeState: "2",
+        caseNo: "",
+        donorno: "",
+        treatmenthospitalname: "",
+        treatmenthospitalno: "",
+        sex: "",
+        name: "",
+        age: "",
+        bloodtype: "",
+        idcardno: "",
+        diagnosisname: "",
+        completetime: "",
+        responsibleuserid: "",
+        responsibleusername: "",
+        coordinateduserido: "",
+        coordinatedusernameo: "",
+        coordinateduseridt: "",
+        coordinatedusernamet: "",
+        assessannex: "",
+        donateorgan: "",
+        isbodydonation: "0",
+        receivingunitname: "",
+        createBy: "",
+        createTime: "",
+        updateBy: "",
+        updateTime: "",
+        attachments: []
+      },
+      // 琛ㄥ崟楠岃瘉瑙勫垯
+      rules: {
+        name: [
+          { required: true, message: "鎹愮尞鑰呭鍚嶄笉鑳戒负绌�", trigger: "blur" }
+        ],
+        diagnosisname: [
+          { required: true, message: "鐤剧梾璇婃柇涓嶈兘涓虹┖", trigger: "blur" }
+        ],
+        donorno: [
+          { required: true, message: "鎹愮尞鑰呯紪鍙蜂笉鑳戒负绌�", trigger: "blur" }
+        ]
+      },
+      // 鍒╃敤璁板綍楠岃瘉瑙勫垯
+      utilizationRules: {},
+      // 淇濆瓨鍔犺浇鐘舵��
+      saveLoading: false,
+      confirmLoading: false,
+      // 鍔犺浇鐘舵��
       loading: false,
-      utilizationStats: {
-        transplanted: 3,
-        inProgress: 0,
-        failed: 0,
-        successRate: 95,
-        utilizationRate: 100,
-        survivalRate: 92
-      },
-      timeTracking: {
-        procurementToTransplant: '4.5灏忔椂',
-        coldIschemiaTime: '鑲濊剰:6h,鑲捐剰:8h,蹇冭剰:3h',
-        surgeryDuration: '鑲濊剰:4h,鑲捐剰:3h,蹇冭剰:5h',
-        icuStay: '鑲濊剰:3澶�,鑲捐剰:2澶�,蹇冭剰:5澶�'
-      },
-      qualityStats: {
-        organQuality: 4.5,
-        surgeryQuality: 4.8,
-        followupCompletionRate: 85
-      },
-      organUtilizationData: [
-        {
-          organName: '鑲濊剰',
-          status: '绉绘鎴愬姛',
-          recipientName: '鐜嬪厛鐢�',
-          recipientAge: 45,
-          recipientGender: '鐢�',
-          hospital: '闈掑矝澶у闄勫睘鍖婚櫌绉绘涓績',
-          transplantTime: '2025-12-04 16:00:00',
-          followupCount: 3,
-          recipientStatus: '鎭㈠鑹ソ'
-        },
-        {
-          organName: '鑲捐剰',
-          status: '绉绘鎴愬姛',
-          recipientName: '鏉庡コ澹�',
-          recipientAge: 38,
-          recipientGender: '濂�',
-          hospital: '涓婃捣鐟為噾鍖婚櫌绉绘涓績',
-          transplantTime: '2025-12-04 17:30:00',
-          followupCount: 2,
-          recipientStatus: '绋冲畾鎭㈠'
-        },
-        {
-          organName: '蹇冭剰',
-          status: '绉绘鎴愬姛',
-          recipientName: '闄堝厛鐢�',
-          recipientAge: 52,
-          recipientGender: '鐢�',
-          hospital: '骞垮窞涓北鍖婚櫌蹇冭剰涓績',
-          transplantTime: '2025-12-04 18:15:00',
-          followupCount: 1,
-          recipientStatus: '瀵嗗垏瑙傚療'
-        }
+      // 閫変腑鐨勫櫒瀹�
+      selectedOrgans: [],
+      // 鍖婚櫌鍒楄〃
+      hospitalList: [],
+      // 绉绘鐘舵�佸垪琛�
+      transplantStatusList: [
+        { value: "1", label: "宸茬Щ妞�" },
+        { value: "0", label: "鏈Щ妞�" },
+        { value: "2", label: "绉绘涓�" }
       ],
-      // 鍥捐〃瀹炰緥
-      organDistributionChart: null,
-      successTrendChart: null,
-      followupStatsChart: null,
-      complicationChart: null
+      // 鍒╃敤璁板綍鏁版嵁
+      utilizationData: {
+        serviceDonatecomporganList: []
+      },
+      // 闅忚璁板綍鏁版嵁
+      followupData: {
+        records: []
+      },
+      // 闄勪欢鏁版嵁
+      attachments: [],
+      // 灞曞紑鐨勮keys
+      expandedRows: [],
+      // 缂栬緫瀵硅瘽妗�
+      editDialogVisible: false,
+      currentRecord: {},
+      currentEditIndex: -1,
+      // 闄勪欢鐩稿叧閰嶇疆 - 鏂板
+      attachmentFileList: [],
+      attachmentLimit: 10,
+      attachmentAccept:
+        ".pdf,.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt",
+
+      // 鏂囦欢棰勮鐩稿叧 - 鏂板
+      filePreviewVisible: false,
+      currentPreviewFile: null,
+      currentFollowup: {},
+      isEditingFollowup: false
     };
   },
-  mounted() {
-    this.$nextTick(() => {
-      this.initCharts();
-    });
+  computed: {
+    // 褰撳墠鐢ㄦ埛淇℃伅
+    currentUser() {
+      return JSON.parse(sessionStorage.getItem("user") || "{}");
+    },
+    // 宸茬Щ妞嶆暟閲�
+    transplantedCount() {
+      if (!this.utilizationData.serviceDonatecomporganList) return 0;
+      return this.utilizationData.serviceDonatecomporganList.filter(
+        record => record.transplantstate === "1"
+      ).length;
+    },
+    // 鍞竴鍖婚櫌鏁伴噺
+    uniqueHospitals() {
+      if (!this.utilizationData.serviceDonatecomporganList) return 0;
+      const hospitals = this.utilizationData.serviceDonatecomporganList
+        .map(record => record.hospitalno)
+        .filter(Boolean);
+      return new Set(hospitals).size;
+    },
+    // 鑾峰彇鍣ㄥ畼瀛楀吀
+    organDict() {
+      return this.dict.type.sys_Organ || [];
+    }
   },
-  beforeDestroy() {
-    // 閿�姣佸浘琛ㄥ疄渚�
-    if (this.organDistributionChart) {
-      this.organDistributionChart.dispose();
-    }
-    if (this.successTrendChart) {
-      this.successTrendChart.dispose();
-    }
-    if (this.followupStatsChart) {
-      this.followupStatsChart.dispose();
-    }
-    if (this.complicationChart) {
-      this.complicationChart.dispose();
+  created() {
+    this.initData();
+  },
+  watch: {
+    // 鐩戝惉闄勪欢鏁版嵁鍙樺寲 - 鏂板
+    attachments: {
+      handler(newAttachments) {
+        this.attachmentFileList = newAttachments.map(item => ({
+          uid: item.id || Math.random(),
+          name: item.fileName,
+          fileSize: item.fileSize,
+          url: item.path || item.fileUrl,
+          uploadTime: item.uploadTime,
+          status: "success"
+        }));
+      },
+      deep: true
     }
   },
   methods: {
-    // 鍒濆鍖栧浘琛�
-    initCharts() {
-      this.initOrganDistributionChart();
-      this.initSuccessTrendChart();
-      this.initFollowupStatsChart();
-      this.initComplicationChart();
+    // 鍒濆鍖栨暟鎹�
+    initData() {
+      this.caseId = this.infoid;
+
+      if (!this.caseId) {
+        this.$message.error("缂哄皯蹇呰鐨勮矾鐢卞弬鏁� infoid");
+        this.$router.back();
+        return;
+      }
+
+      this.form.infoid = this.caseId;
+      this.form.createBy =
+        this.currentUser.username || this.currentUser.name || "褰撳墠鐢ㄦ埛";
+      this.form.createTime = new Date()
+        .toISOString()
+        .replace("T", " ")
+        .substring(0, 19);
+
+      this.generateDonorNo();
+      this.getDetail();
+      this.getHospitalData();
     },
 
-    // 鍒濆鍖栧櫒瀹樺垎甯冨浘琛�
-    initOrganDistributionChart() {
-      this.organDistributionChart = echarts.init(this.$refs.organDistributionChart);
-      const option = {
-        tooltip: {
-          trigger: 'item',
-          formatter: '{a} <br/>{b}: {c} ({d}%)'
-        },
-        legend: {
-          orient: 'vertical',
-          right: 10,
-          top: 'center',
-          data: ['鑲濊剰', '鑲捐剰', '蹇冭剰', '鑲鸿剰', '瑙掕啘', '鍏朵粬']
-        },
-        series: [
-          {
-            name: '鍣ㄥ畼鍒╃敤',
-            type: 'pie',
-            radius: ['50%', '70%'],
-            avoidLabelOverlap: false,
-            label: {
-              show: false,
-              position: 'center'
-            },
-            emphasis: {
-              label: {
-                show: true,
-                fontSize: '18',
-                fontWeight: 'bold'
-              }
-            },
-            labelLine: {
-              show: false
-            },
-            data: [
-              { value: 35, name: '鑲濊剰' },
-              { value: 30, name: '鑲捐剰' },
-              { value: 15, name: '蹇冭剰' },
-              { value: 10, name: '鑲鸿剰' },
-              { value: 8, name: '瑙掕啘' },
-              { value: 2, name: '鍏朵粬' }
-            ]
-          }
-        ]
-      };
-      this.organDistributionChart.setOption(option);
+    // 鐢熸垚鎹愮尞鑰呯紪鍙�
+    generateDonorNo() {
+      const timestamp = Date.now().toString();
+      this.form.donorno = "D" + timestamp.slice(-8);
+      this.form.caseNo = "CASE" + timestamp.slice(-6);
+      this.form.inpatientno = "IP" + timestamp.slice(-6);
     },
 
-    // 鍒濆鍖栨垚鍔熺巼瓒嬪娍鍥捐〃
-    initSuccessTrendChart() {
-      this.successTrendChart = echarts.init(this.$refs.successTrendChart);
-      const option = {
-        tooltip: {
-          trigger: 'axis'
-        },
-        legend: {
-          data: ['鑲濊剰绉绘', '鑲捐剰绉绘', '蹇冭剰绉绘', '骞冲潎鎴愬姛鐜�']
-        },
-        grid: {
-          left: '3%',
-          right: '4%',
-          bottom: '3%',
-          containLabel: true
-        },
-        xAxis: {
-          type: 'category',
-          boundaryGap: false,
-          data: ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�']
-        },
-        yAxis: {
-          type: 'value',
-          min: 80,
-          max: 100
-        },
-        series: [
-          {
-            name: '鑲濊剰绉绘',
-            type: 'line',
-            smooth: true,
-            data: [92, 93, 94, 95, 96, 95, 96]
-          },
-          {
-            name: '鑲捐剰绉绘',
-            type: 'line',
-            smooth: true,
-            data: [94, 95, 95, 96, 95, 96, 97]
-          },
-          {
-            name: '蹇冭剰绉绘',
-            type: 'line',
-            smooth: true,
-            data: [88, 89, 90, 91, 92, 91, 92]
-          },
-          {
-            name: '骞冲潎鎴愬姛鐜�',
-            type: 'line',
-            smooth: true,
-            lineStyle: {
-              type: 'dashed'
-            },
-            data: [91.3, 92.3, 93, 94, 94.3, 94, 95]
+    // 鑾峰彇璇︽儏
+    async getDetail() {
+      this.loading = true;
+      try {
+        const response = await completionList({ infoid: this.caseId });
+        if (
+          response.code === 200 &&
+          response.data &&
+          response.data.length > 0
+        ) {
+          const data = response.data[0];
+          if (!data.completeState || data.completeState == 1) {
+            data.completeState = "2";
           }
-        ]
-      };
-      this.successTrendChart.setOption(option);
-    },
+          // 濉厖琛ㄥ崟鏁版嵁
+          Object.assign(this.form, data);
 
-    // 鍒濆鍖栭殢璁跨粺璁″浘琛�
-    initFollowupStatsChart() {
-      this.followupStatsChart = echarts.init(this.$refs.followupStatsChart);
-      const option = {
-        tooltip: {
-          trigger: 'axis',
-          axisPointer: {
-            type: 'shadow'
+          // 澶勭悊鎹愮尞鍣ㄥ畼瀛楁
+          if (data.donateorgan) {
+            const organArray = Array.isArray(data.donateorgan)
+              ? data.donateorgan
+              : (data.donateorgan || "").split(",").filter(item => item);
+            this.selectedOrgans = organArray;
           }
-        },
-        legend: {
-          data: ['璁″垝闅忚', '宸插畬鎴�', '閫炬湡鏈畬鎴�']
-        },
-        grid: {
-          left: '3%',
-          right: '4%',
-          bottom: '3%',
-          containLabel: true
-        },
-        xAxis: {
-          type: 'value'
-        },
-        yAxis: {
-          type: 'category',
-          data: ['1涓湀', '3涓湀', '6涓湀', '1骞�', '2骞�', '5骞�']
-        },
-        series: [
-          {
-            name: '璁″垝闅忚',
-            type: 'bar',
-            stack: 'total',
-            label: {
-              show: true
-            },
-            emphasis: {
-              focus: 'series'
-            },
-            data: [120, 132, 101, 134, 90, 60]
-          },
-          {
-            name: '宸插畬鎴�',
-            type: 'bar',
-            stack: 'total',
-            label: {
-              show: true
-            },
-            emphasis: {
-              focus: 'series'
-            },
-            data: [115, 125, 95, 120, 85, 55]
-          },
-          {
-            name: '閫炬湡鏈畬鎴�',
-            type: 'bar',
-            stack: 'total',
-            label: {
-              show: true
-            },
-            emphasis: {
-              focus: 'series'
-            },
-            data: [5, 7, 6, 14, 5, 5]
-          }
-        ]
-      };
-      this.followupStatsChart.setOption(option);
-    },
 
-    // 鍒濆鍖栧苟鍙戠棁鍒嗘瀽鍥捐〃
-    initComplicationChart() {
-      this.complicationChart = echarts.init(this.$refs.complicationChart);
-      const option = {
-        tooltip: {
-          trigger: 'axis',
-          axisPointer: {
-            type: 'shadow'
+          // 澶勭悊鍣ㄥ畼鍒╃敤璁板綍
+          if (data.serviceDonatecomporganList) {
+            this.utilizationData.serviceDonatecomporganList = Array.isArray(
+              data.serviceDonatecomporganList
+            )
+              ? data.serviceDonatecomporganList.map(record => ({
+                  ...record,
+                  transplanttime: record.transplanttime || "",
+                  transplantstate: record.transplantstate
+                    ? record.transplantstate.toString()
+                    : "1"
+                }))
+              : [];
           }
-        },
-        radar: {
-          indicator: [
-            { name: '鎰熸煋椋庨櫓', max: 100 },
-            { name: '鎺掓枼鍙嶅簲', max: 100 },
-            { name: '琛�绠″苟鍙戠棁', max: 100 },
-            { name: '鑳嗛亾骞跺彂鐥�', max: 100 },
-            { name: '浠h阿寮傚父', max: 100 },
-            { name: '鍏朵粬骞跺彂鐥�', max: 100 }
-          ]
-        },
-        series: [
-          {
-            type: 'radar',
-            data: [
-              {
-                value: [85, 90, 78, 82, 75, 70],
-                name: '鑲濊剰绉绘',
-                areaStyle: {}
-              },
-              {
-                value: [78, 85, 72, 65, 80, 68],
-                name: '鑲捐剰绉绘',
-                areaStyle: {}
-              },
-              {
-                value: [90, 88, 85, 60, 82, 75],
-                name: '蹇冭剰绉绘',
-                areaStyle: {}
-              }
-            ]
-          }
-        ]
-      };
-      this.complicationChart.setOption(option);
-    },
+          console.log(this.utilizationData.serviceDonatecomporganList);
 
-    // 鏇存柊鍥捐〃瑙嗗浘
-    updateCharts() {
-      if (this.chartView === 'bar') {
-        this.updateToBarChart();
-      } else {
-        this.initOrganDistributionChart(); // 鍒囧洖楗煎浘
+          // 鍒濆鍖栭檮浠�
+          if (this.form.assessannex) {
+            this.form.attachments = JSON.parse(this.form.assessannex);
+            this.attachments = Array.isArray(this.form.attachments)
+              ? [...this.form.attachments]
+              : [];
+          }
+
+          this.$message.success("鏁版嵁鍔犺浇鎴愬姛");
+        } else {
+          this.$message.warning("鏈壘鍒板搴旂殑鍣ㄥ畼鍒╃敤鏁版嵁");
+        }
+      } catch (error) {
+        console.error("鑾峰彇鍣ㄥ畼鍒╃敤璇︽儏澶辫触:", error);
+        this.$message.error("鑾峰彇璇︽儏澶辫触");
+      } finally {
+        this.loading = false;
       }
     },
 
-    // 鏇存柊涓烘煴鐘跺浘
-    updateToBarChart() {
-      const option = {
-        tooltip: {
-          trigger: 'axis',
-          axisPointer: {
-            type: 'shadow'
-          }
-        },
-        grid: {
-          left: '3%',
-          right: '4%',
-          bottom: '3%',
-          containLabel: true
-        },
-        xAxis: {
-          type: 'category',
-          data: ['鑲濊剰', '鑲捐剰', '蹇冭剰', '鑲鸿剰', '瑙掕啘', '鍏朵粬']
-        },
-        yAxis: {
-          type: 'value',
-          name: '鏁伴噺'
-        },
-        series: [
-          {
-            name: '鍣ㄥ畼鍒╃敤鏁伴噺',
-            type: 'bar',
-            data: [35, 30, 15, 10, 8, 2],
-            itemStyle: {
-              color: function(params) {
-                const colorList = ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272'];
-                return colorList[params.dataIndex];
-              }
+    // 鑾峰彇鍖婚櫌鏁版嵁
+    async getHospitalData() {
+      try {
+        // TODO: 鏇挎崲涓哄疄闄呯殑鍖婚櫌鍒楄〃鎺ュ彛
+        // 鏆傛椂浣跨敤妯℃嫙鏁版嵁
+        this.hospitalList = [
+          { hospitalNo: "H001", hospitalName: "鍖椾含鍗忓拰鍖婚櫌" },
+          { hospitalNo: "H002", hospitalName: "涓婃捣鍗庡北鍖婚櫌" },
+          { hospitalNo: "H003", hospitalName: "涓婃捣鐟為噾鍖婚櫌" },
+          { hospitalNo: "H004", hospitalName: "骞垮窞涓北鍖婚櫌" },
+          { hospitalNo: "H005", hospitalName: "姝︽眽鍚屾祹鍖婚櫌" },
+          { hospitalNo: "H006", hospitalName: "鎴愰兘鍗庤タ鍖婚櫌" }
+        ];
+      } catch (error) {
+        console.error("鑾峰彇鍖婚櫌鏁版嵁澶辫触:", error);
+        this.$message.error("鑾峰彇鍖婚櫌鏁版嵁澶辫触");
+      }
+    },
+
+    // 鍣ㄥ畼閫夋嫨鐘舵�佸彉鍖�
+    handleOrganSelectionChange(selectedValues) {
+      if (!this.utilizationData.serviceDonatecomporganList) {
+        this.utilizationData.serviceDonatecomporganList = [];
+      }
+
+      const currentOrganValues = this.utilizationData.serviceDonatecomporganList.map(
+        item => item.organno
+      );
+
+      // 澶勭悊浜掓枼閫昏緫
+      this.handleExclusiveSelections(selectedValues);
+
+      // 鏇存柊鎹愮尞鍣ㄥ畼瀛楁
+      this.form.donateorgan = selectedValues.join(",");
+
+      // 鏂板閫夋嫨鐨勫櫒瀹�
+      selectedValues.forEach(organValue => {
+        if (!currentOrganValues.includes(organValue)) {
+          this.createOrganRecord(organValue);
+        }
+      });
+
+      // 绉婚櫎鍙栨秷閫夋嫨鐨勫櫒瀹�
+      this.utilizationData.serviceDonatecomporganList = this.utilizationData.serviceDonatecomporganList.filter(
+        record => {
+          if (selectedValues.includes(record.organno)) {
+            return true;
+          } else {
+            if (record.id) {
+              this.$confirm(
+                "鍒犻櫎鍣ㄥ畼鍒╃敤鏁版嵁鍚庡皢鏃犳硶鎭㈠锛屾偍纭鍒犻櫎璇ユ潯璁板綍鍚楋紵",
+                "鎻愮ず",
+                {
+                  confirmButtonText: "纭畾",
+                  cancelButtonText: "鍙栨秷",
+                  type: "warning"
+                }
+              )
+                .then(() => {
+                  this.utilizationData.serviceDonatecomporganList = this.utilizationData.serviceDonatecomporganList.filter(
+                    r => r.organno !== record.organno
+                  );
+                  this.$message.success("鍒犻櫎鎴愬姛");
+                })
+                .catch(() => {
+                  this.selectedOrgans.push(record.organno);
+                });
+              return true;
+            } else {
+              return false;
             }
           }
-        ]
-      };
-      this.organDistributionChart.setOption(option);
+        }
+      );
     },
 
-    // 鑾峰彇鐘舵�佹枃鏈�
-    getStatusText() {
-      const status = this.stageData.status;
-      return status === 'completed' ? '宸插畬鎴�' :
-             status === 'in_progress' ? '杩涜涓�' : '鏈紑濮�';
-    },
-
-    // 鑾峰彇璀﹀憡绫诲瀷
-    getAlertType() {
-      const status = this.stageData.status;
-      return status === 'completed' ? 'success' :
-             status === 'in_progress' ? 'warning' : 'info';
-    },
-
-    // 鑾峰彇璀﹀憡鎻忚堪
-    getAlertDescription() {
-      const status = this.stageData.status;
-      if (status === 'completed') {
-        return '鍣ㄥ畼鍒╃敤闃舵宸插畬鎴愶紝鎵�鏈夊櫒瀹樺潎宸叉垚鍔熺Щ妞嶅苟寮�濮嬮殢璁�';
-      } else if (status === 'in_progress') {
-        return '鍣ㄥ畼鍒╃敤杩涜涓紝绉绘鎵嬫湳宸插畬鎴愶紝姝e湪杩涜鏈悗闅忚';
+    // 澶勭悊浜掓枼閫夋嫨
+    handleExclusiveSelections(selectedValues) {
+      // 濡傛灉閫夋嫨浜�"鍙岃偩"(鍋囪瀛楀吀鍊间负C64)锛岃嚜鍔ㄥ彇娑堝崟鐙殑"宸﹁偩"(C64L)鍜�"鍙宠偩"(C64R)閫夋嫨
+      if (selectedValues.includes("C64")) {
+        this.selectedOrgans = selectedValues.filter(
+          item => item !== "C64L" && item !== "C64R"
+        );
       }
-      return '绛夊緟寮�濮嬪櫒瀹樺埄鐢ㄦ祦绋�';
+      // 濡傛灉閫夋嫨浜�"宸﹁偩"鎴�"鍙宠偩"锛屽彇娑�"鍙岃偩"閫夋嫨
+      else if (
+        selectedValues.includes("C64L") ||
+        selectedValues.includes("C64R")
+      ) {
+        this.selectedOrgans = selectedValues.filter(item => item !== "C64");
+      }
+
+      // 濡傛灉閫夋嫨浜�"鍏ㄨ偤"(鍋囪瀛楀吀鍊间负C34)锛岃嚜鍔ㄥ彇娑堝崟鐙殑"宸﹁偤"(C34L)鍜�"鍙宠偤"(C34R)閫夋嫨
+      if (selectedValues.includes("C34")) {
+        this.selectedOrgans = selectedValues.filter(
+          item => item !== "C34L" && item !== "C34R"
+        );
+      }
+      // 濡傛灉閫夋嫨浜�"宸﹁偤"鎴�"鍙宠偤"锛屽彇娑�"鍏ㄨ偤"閫夋嫨
+      else if (
+        selectedValues.includes("C34L") ||
+        selectedValues.includes("C34R")
+      ) {
+        this.selectedOrgans = selectedValues.filter(item => item !== "C34");
+      }
     },
 
-    // 鑾峰彇绉绘鐘舵�佹爣绛�
-    getTransplantStatusTag(status) {
-      const map = {
-        '绉绘鎴愬姛': 'success',
-        '绉绘涓�': 'warning',
-        '绉绘澶辫触': 'danger'
-      };
-      return map[status] || 'info';
-    },
+    // 鍒涘缓鍣ㄥ畼璁板綍
+    createOrganRecord(organValue) {
+      const organName = this.getOrganLabel(organValue);
 
-    // 鑾峰彇鍙椾綋鐘舵�佹爣绛�
-    getRecipientStatusTag(status) {
-      const map = {
-        '鎭㈠鑹ソ': 'success',
-        '绋冲畾鎭㈠': 'warning',
-        '瀵嗗垏瑙傚療': 'danger'
-      };
-      return map[status] || 'info';
-    },
-
-    // 鏌ョ湅璇︽儏
-    handleViewDetails(row) {
-      this.$message.info(`鏌ョ湅${row.organName}绉绘璇︽儏`);
-    },
-
-    // 娣诲姞闅忚
-    handleAddFollowup(row) {
-      this.$message.info(`涓�${row.recipientName}娣诲姞闅忚璁板綍`);
-    },
-
-    // 鐢熸垚鎶ュ憡
-    handleGenerateReport() {
-      this.$message.info('鐢熸垚鍣ㄥ畼鍒╃敤鍒嗘瀽鎶ュ憡');
-    },
-
-    // 瀹屾垚鍒╃敤
-    handleCompleteUtilization() {
-      this.$confirm('纭瀹屾垚鍣ㄥ畼鍒╃敤闃舵鍚楋紵', '鎻愮ず', {
-        confirmButtonText: '纭畾',
-        cancelButtonText: '鍙栨秷',
-        type: 'success'
-      }).then(() => {
-        this.$message.success('鍣ㄥ畼鍒╃敤闃舵宸插畬鎴�');
+      this.utilizationData.serviceDonatecomporganList.push({
+        organname: organName,
+        organno: organValue,
+        caseNo: "",
+        hospitalno: "",
+        hospitalname: "",
+        name: "",
+        transplantdoct: "",
+        transplanttime: "",
+        transplantstate: "1",
+        abandonreason: "",
+        sex: "",
+        age: "",
+        birthday: "",
+        phone: "",
+        residenceaddress: "",
+        residenceprovince: "",
+        residenceprovincename: "",
+        residencecity: "",
+        residencecityname: "",
+        residencetown: "",
+        residencetownname: "",
+        residencecommunity: "",
+        residencecommunityname: "",
+        residencecountycode: "",
+        residencecountyname: "",
+        idcardtype: "",
+        idcardno: "",
+        ageunit: ""
       });
     },
 
-    // 缁熻鏁版嵁鍒嗘瀽
-    handleStatistics() {
-      this.$message.info('鎵撳紑缁熻鍒嗘瀽闈㈡澘');
+    // 鏍规嵁瀛楀吀value鑾峰彇label
+    getOrganLabel(organValue) {
+      const dictItem = this.organDict.find(item => item.value === organValue);
+      return dictItem ? dictItem.label : organValue;
     },
 
-    // 瀵煎嚭鏁版嵁
-    exportData() {
-      this.$message.info('瀵煎嚭鍣ㄥ畼鍒╃敤鏁版嵁');
+    // 鍖婚櫌閫夋嫨鍙樺寲
+    handleHospitalChange(row, hospitalNo) {
+      const hospital = this.hospitalList.find(
+        item => item.hospitalNo === hospitalNo
+      );
+      if (hospital) {
+        row.hospitalname = hospital.hospitalName;
+      }
+    },
+
+    // 绉绘鐘舵�佸彉鍖栧鐞�
+    handleTransplantStatusChange(row, status) {
+      if (status === "0") {
+        // 濡傛灉鐘舵�佷负鏈Щ妞嶏紝娓呴櫎鐩稿叧瀛楁
+        // row.transplanttime = "";
+        // row.transplantdoct = "";
+        // row.hospitalno = "";
+        // row.hospitalname = "";
+      } else if (status === "1") {
+        // 濡傛灉鐘舵�佷负宸茬Щ妞嶏紝鑷姩璁剧疆绉绘鏃堕棿涓哄綋鍓嶆椂闂�
+        if (!row.transplanttime) {
+          row.transplanttime = new Date().toISOString().split("T")[0];
+        }
+      }
+    },
+
+    // 琛屽睍寮�浜嬩欢
+    handleExpandChange(row, expandedRows) {
+      this.expandedRows = expandedRows.map(item => item.organno);
+    },
+
+    // 鍒犻櫎鍣ㄥ畼璁板綍
+    handleRemoveOrgan(index) {
+      this.$confirm("纭鍒犻櫎杩欐潯鍣ㄥ畼璁板綍鍚楋紵", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning"
+      })
+        .then(() => {
+          const organno = this.utilizationData.serviceDonatecomporganList[index]
+            .organno;
+          this.utilizationData.serviceDonatecomporganList.splice(index, 1);
+
+          // 浠庨�変腑鐨勫櫒瀹樹腑绉婚櫎
+          const idx = this.selectedOrgans.indexOf(organno);
+          if (idx > -1) {
+            this.selectedOrgans.splice(idx, 1);
+          }
+
+          this.$message.success("鍣ㄥ畼璁板綍鍒犻櫎鎴愬姛");
+        })
+        .catch(() => {});
+    },
+
+    // 鍣ㄥ畼琛屾牱寮�
+    getOrganRowClassName({ row }) {
+      if (
+        row.transplantstate === "1" &&
+        (!row.caseNo || !row.hospitalno || !row.name || !row.transplanttime)
+      ) {
+        return "warning-row";
+      }
+      if (row.transplantstate === "0" && !row.abandonreason) {
+        return "warning-row";
+      }
+      return "";
+    },
+
+    // 鑾峰彇鐘舵�佹爣绛剧被鍨�
+    getStatusTagType(status) {
+      const typeMap = {
+        3: "success",
+        2: "warning",
+        1: "info"
+      };
+      return typeMap[status] || "info";
+    },
+
+    // 鑾峰彇鐘舵�佹枃鏈�
+    getStatusText(status) {
+      const textMap = {
+        3: "宸插畬鎴�",
+        2: "杩涜涓�",
+        1: "寰呭鐞�"
+      };
+      return textMap[status] || "鏈煡";
+    },
+
+    // 鑾峰彇闅忚绫诲瀷鏍囩
+    getFollowupTypeTag(type) {
+      const typeMap = {
+        routine: "success",
+        emergency: "danger",
+        special: "warning"
+      };
+      return typeMap[type] || "info";
+    },
+
+    // 鑾峰彇闅忚绫诲瀷鏂囨湰
+    getFollowupTypeText(type) {
+      const textMap = {
+        routine: "甯歌闅忚",
+        emergency: "绱ф�ラ殢璁�",
+        special: "鐗规畩闅忚"
+      };
+      return textMap[type] || "鏈煡";
+    },
+
+    // 淇濆瓨鍩烘湰淇℃伅
+    async handleSave() {
+      this.$refs.form.validate(async valid => {
+        if (valid) {
+          this.saveLoading = true;
+          try {
+            const saveData = {
+              ...this.form,
+              assessannex: JSON.stringify(this.attachments),
+              donateorgan: this.selectedOrgans.join(","),
+              serviceDonatecomporganList:
+                this.utilizationData.serviceDonatecomporganList || []
+            };
+
+            const apiMethod = this.form.id ? completionedit : completionadd;
+            const response = await apiMethod(saveData);
+
+            if (response.code === 200) {
+              this.$message.success("淇濆瓨鎴愬姛");
+              if (!this.form.id && response.data && response.data.id) {
+                this.form.id = response.data.id;
+                this.$router.replace({
+                  query: { ...this.$route.query, id: this.form.id }
+                });
+              }
+            } else {
+              this.$message.error("淇濆瓨澶辫触锛�" + (response.msg || "鏈煡閿欒"));
+            }
+          } catch (error) {
+            console.error("淇濆瓨澶辫触:", error);
+            this.$message.error("淇濆瓨澶辫触");
+          } finally {
+            this.saveLoading = false;
+          }
+        }
+      });
+    },
+
+    // 淇濆瓨鍒╃敤璁板綍
+    async handleSaveUtilization() {
+      if (
+        !this.utilizationData.serviceDonatecomporganList ||
+        this.utilizationData.serviceDonatecomporganList.length === 0
+      ) {
+        this.$message.warning("璇峰厛娣诲姞鍒╃敤璁板綍");
+        return;
+      }
+
+      this.saveLoading = true;
+      try {
+        const saveData = {
+          ...this.form,
+          attachments: this.attachments,
+          donateorgan: this.selectedOrgans.join(","),
+          serviceDonatecomporganList:
+            this.utilizationData.serviceDonatecomporganList || []
+        };
+
+        const response = await completionedit(saveData);
+
+        if (response.code === 200) {
+          this.$message.success("鍒╃敤璁板綍淇濆瓨鎴愬姛");
+        } else {
+          this.$message.error(
+            "淇濆瓨鍒╃敤璁板綍澶辫触锛�" + (response.msg || "鏈煡閿欒")
+          );
+        }
+      } catch (error) {
+        console.error("淇濆瓨鍒╃敤璁板綍澶辫触:", error);
+        this.$message.error("淇濆瓨鍒╃敤璁板綍澶辫触");
+      } finally {
+        this.saveLoading = false;
+      }
+    },
+
+    // 纭瀹屾垚鍒╃敤
+    async handleConfirmUtilization() {
+      // 妫�鏌ュ埄鐢ㄨ褰曟槸鍚﹀畬鏁�
+      const incompleteRecords = this.utilizationData.serviceDonatecomporganList.filter(
+        record => {
+          if (record.transplantstate === "1") {
+            return (
+              !record.caseNo ||
+              !record.hospitalno ||
+              !record.name ||
+              !record.transplanttime
+            );
+          } else if (record.transplantstate === "0") {
+            return !record.abandonreason;
+          }
+          return false;
+        }
+      );
+
+
+      if (incompleteRecords.length > 0) {
+        this.$message.warning("璇峰厛瀹屽杽鎵�鏈夊埄鐢ㄨ褰曠殑淇℃伅");
+        return;
+      }
+
+      this.$confirm("纭瀹屾垚鍣ㄥ畼鍒╃敤鍚楋紵瀹屾垚鍚庡皢鏃犳硶淇敼鍒╃敤淇℃伅銆�", "鎻愮ず", {
+        confirmButtonText: "纭畾",
+        cancelButtonText: "鍙栨秷",
+        type: "warning"
+      })
+        .then(async () => {
+          this.confirmLoading = true;
+          this.form.completeState = "3";
+          this.form.completetime =
+            this.form.completetime ||
+            new Date()
+              .toISOString()
+              .replace("T", " ")
+              .substring(0, 19);
+
+          try {
+            const saveData = {
+              ...this.form,
+              attachments: this.attachments,
+              donateorgan: this.selectedOrgans.join(","),
+              serviceDonatecomporganList:
+                this.utilizationData.serviceDonatecomporganList || []
+            };
+
+            const response = await completionedit(saveData);
+
+            if (response.code === 200) {
+              this.$message.success("鍣ㄥ畼鍒╃敤宸插畬鎴�");
+            } else {
+              this.$message.error(
+                "纭鍒╃敤澶辫触锛�" + (response.msg || "鏈煡閿欒")
+              );
+              this.form.completeState = "2";
+              this.form.completetime = "";
+            }
+          } catch (error) {
+            console.error("纭鍒╃敤澶辫触:", error);
+            this.$message.error("纭鍒╃敤澶辫触");
+            this.form.completeState = "2";
+            this.form.completetime = "";
+          } finally {
+            this.confirmLoading = false;
+          }
+        })
+        .catch(() => {});
+    },
+
+    // 瀹屾垚鍒╃敤
+    handleComplete() {
+      this.handleConfirmUtilization();
+    },
+
+    // 淇濆瓨闅忚璁板綍
+    handleSaveFollowup() {
+      if (!this.currentFollowup.organNo) {
+        this.$message.warning("璇烽�夋嫨鍣ㄥ畼");
+        return;
+      }
+
+      if (!this.currentFollowup.followupTime) {
+        this.$message.warning("璇烽�夋嫨闅忚鏃堕棿");
+        return;
+      }
+
+      this.saveLoading = true;
+
+      // 鑾峰彇鍣ㄥ畼鍚嶇О
+      const organRecord = this.utilizationData.serviceDonatecomporganList.find(
+        item => item.organno === this.currentFollowup.organNo
+      );
+      const organName = organRecord ? organRecord.organname : "";
+
+      const followupData = {
+        ...this.currentFollowup,
+        organName: organName,
+        utilizationId: this.form.id
+      };
+
+      // TODO: 鏇挎崲涓哄疄闄呯殑闅忚璁板綍淇濆瓨鎺ュ彛
+      setTimeout(() => {
+        if (this.isEditingFollowup) {
+          // 鏇存柊鐜版湁璁板綍
+          const index = this.followupData.records.findIndex(
+            item => item.id === this.currentFollowup.id
+          );
+          if (index !== -1) {
+            this.followupData.records[index] = {
+              ...followupData,
+              id: this.currentFollowup.id
+            };
+          }
+        } else {
+          // 娣诲姞鏂拌褰�
+          this.followupData.records.push({ ...followupData, id: Date.now() });
+        }
+        this.$message.success("闅忚璁板綍淇濆瓨鎴愬姛");
+        this.followupDialogVisible = false;
+        this.saveLoading = false;
+      }, 1000);
+    },
+    /** 闄勪欢鍙樺寲澶勭悊 */
+    handleAttachmentChange(fileList) {
+      this.attachmentFileList = fileList;
+    },
+
+    /** 闄勪欢绉婚櫎澶勭悊 */
+    handleAttachmentRemove(file) {
+      if (file.url) {
+        const index = this.attachments.findIndex(
+          item => item.path === file.url || item.fileUrl === file.url
+        );
+        if (index > -1) {
+          this.attachments.splice(index, 1);
+          this.$message.success("闄勪欢鍒犻櫎鎴愬姛");
+        }
+      }
+    },
+    /** 涓婁紶鎴愬姛澶勭悊 */
+    handleUploadSuccess({ file, fileList, response }) {
+      if (response.code === 200) {
+        const attachmentObj = {
+          fileName: file.name,
+          path: response.fileUrl || file.url,
+          fileUrl: response.fileUrl || file.url,
+          fileType: this.getFileExtension(file.name),
+          fileSize: file.size,
+          uploadTime: dayjs().format("YYYY-MM-DD HH:mm:ss")
+        };
+
+        if (!Array.isArray(this.attachments)) {
+          this.attachments = [];
+        }
+
+        this.attachments.push(attachmentObj);
+        this.attachmentFileList = fileList;
+        this.$message.success("鏂囦欢涓婁紶鎴愬姛");
+      }
+    },
+
+    /** 涓婁紶閿欒澶勭悊 */
+    handleUploadError({ file, fileList, error }) {
+      console.error("闄勪欢涓婁紶澶辫触:", error);
+      this.$message.error("鏂囦欢涓婁紶澶辫触锛岃閲嶈瘯");
+    },
+
+    /** 鎵嬪姩鍒犻櫎闄勪欢 */
+    handleRemoveAttachment(index) {
+      this.attachments.splice(index, 1);
+      this.attachmentFileList.splice(index, 1);
+      this.$message.success("闄勪欢鍒犻櫎鎴愬姛");
+    },
+
+    /** 鏂囦欢棰勮 */
+    handlePreview(file) {
+      this.currentPreviewFile = {
+        fileName: file.fileName,
+        fileUrl: file.path || file.fileUrl,
+        fileType: this.getFileType(file.fileName)
+      };
+      this.filePreviewVisible = true;
+    },
+    /** 鏂囦欢涓嬭浇 */
+    handleDownloadAttachment(file) {
+      const fileUrl = file.path || file.fileUrl;
+      const fileName = file.fileName;
+
+      if (fileUrl) {
+        const link = document.createElement("a");
+        link.href = fileUrl;
+        link.download = fileName;
+        link.style.display = "none";
+        document.body.appendChild(link);
+        link.click();
+        document.body.removeChild(link);
+        this.$message.success("寮�濮嬩笅杞芥枃浠�");
+      } else {
+        this.$message.warning("鏂囦欢璺緞涓嶅瓨鍦紝鏃犳硶涓嬭浇");
+      }
+    },
+
+    /** 鑾峰彇鏂囦欢绫诲瀷 */
+    getFileType(fileName) {
+      if (!fileName) return "other";
+      const extension = fileName
+        .split(".")
+        .pop()
+        .toLowerCase();
+      const imageTypes = ["jpg", "jpeg", "png", "gif", "bmp", "webp"];
+      const pdfTypes = ["pdf"];
+      const officeTypes = ["doc", "docx", "xls", "xlsx", "ppt", "pptx"];
+      if (imageTypes.includes(extension)) return "image";
+      if (pdfTypes.includes(extension)) return "pdf";
+      if (officeTypes.includes(extension)) return "office";
+      return "other";
+    },
+
+    /** 鑾峰彇鏂囦欢鍥炬爣棰滆壊 */
+    getFileIconColor(fileName) {
+      const type = this.getFileType(fileName);
+      const colorMap = {
+        image: "#67C23A",
+        pdf: "#F56C6C",
+        office: "#409EFF",
+        other: "#909399"
+      };
+      return colorMap[type] || "#909399";
+    },
+
+    /** 鑾峰彇鏂囦欢鏍囩绫诲瀷 */
+    getFileTagType(fileName) {
+      const type = this.getFileType(fileName);
+      const typeMap = {
+        image: "success",
+        pdf: "danger",
+        office: "primary",
+        other: "info"
+      };
+      return typeMap[type] || "info";
+    },
+
+    /** 鑾峰彇鏂囦欢绫诲瀷鏂囨湰 */
+    getFileTypeText(fileName) {
+      const type = this.getFileType(fileName);
+      const textMap = {
+        image: "鍥剧墖",
+        pdf: "PDF",
+        office: "鏂囨。",
+        other: "鍏朵粬"
+      };
+      return textMap[type] || "鏈煡";
+    },
+
+    /** 妫�鏌ユ槸鍚﹀彲棰勮 */
+    isPreviewable(fileName) {
+      const type = this.getFileType(fileName);
+      return ["image", "pdf"].includes(type);
+    },
+
+    /** 鑾峰彇鏂囦欢鎵╁睍鍚� */
+    getFileExtension(filename) {
+      return filename
+        .split(".")
+        .pop()
+        .toLowerCase();
+    },
+
+    /** 鏍煎紡鍖栨枃浠跺ぇ灏� */
+    formatFileSize(bytes) {
+      if (!bytes || bytes === 0) return "0 B";
+      const k = 1024;
+      const sizes = ["B", "KB", "MB", "GB"];
+      const i = Math.floor(Math.log(bytes) / Math.log(k));
+      return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i];
+    },
+
+    /** 鏃ユ湡鏃堕棿鏍煎紡鍖� */
+    formatDateTime(dateTime) {
+      if (!dateTime) return "";
+      try {
+        const date = new Date(dateTime);
+        if (isNaN(date.getTime())) return dateTime;
+        const year = date.getFullYear();
+        const month = String(date.getMonth() + 1).padStart(2, "0");
+        const day = String(date.getDate()).padStart(2, "0");
+        const hours = String(date.getHours()).padStart(2, "0");
+        const minutes = String(date.getMinutes()).padStart(2, "0");
+        return `${year}-${month}-${day} ${hours}:${minutes}`;
+      } catch (error) {
+        return dateTime;
+      }
     }
   }
 };
 </script>
 
-<style scoped>
-.utilization-overview {
-  padding: 10px 0;
+<style lang="scss" scoped>
+.organ-utilization-detail {
+  padding: 20px;
+  background-color: #f5f7fa;
+  min-height: 100vh;
 }
 
-.overview-item {
+.detail-card,
+.utilization-card,
+.followup-card,
+.attachment-card {
+  margin-bottom: 20px;
+  border-radius: 8px;
+  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+  border: 1px solid #e4e7ed;
+}
+
+/* 鏂板闄勪欢澶撮儴鏍峰紡 */
+.attachment-header {
   display: flex;
   align-items: center;
-  margin-bottom: 15px;
-  padding: 8px 0;
-  border-bottom: 1px solid #f0f0f0;
+  gap: 8px;
+  margin-bottom: 16px;
+  padding-bottom: 8px;
+  border-bottom: 1px solid #ebeef5;
 }
 
-.overview-icon {
-  font-size: 24px;
-  margin-right: 15px;
-}
-
-.overview-content .value {
-  font-size: 24px;
-  font-weight: bold;
+.attachment-title {
+  font-weight: 600;
   color: #303133;
+  font-size: 16px;
 }
 
-.overview-content .label {
+.attachment-tip {
   font-size: 12px;
   color: #909399;
+  margin-left: auto;
 }
 
-.success-stats, .time-tracking, .quality-assessment {
-  padding: 10px 0;
-}
-
-.success-item, .time-item, .quality-item {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  margin-bottom: 15px;
-}
-
-.success-item .label, .time-item .label, .quality-item .label {
-  color: #606266;
-  font-size: 14px;
-  min-width: 80px;
-}
-
-.time-item .value {
-  font-weight: 600;
-  color: #409EFF;
-}
-
-.chart-container {
-  position: relative;
-  min-height: 300px;
-}
-
-.action-buttons {
-  display: flex;
-  justify-content: center;
-  gap: 15px;
+.attachment-list {
   margin-top: 20px;
 }
 
-.card-header {
+.list-title {
+  font-weight: bold;
+  margin-bottom: 12px;
+  color: #303133;
+  font-size: 14px;
+}
+
+.file-name {
+  font-size: 13px;
+  margin-left: 8px;
+  color: #606266;
+}
+
+/* 鏂囦欢鍥炬爣鏍峰紡 */
+.el-icon-document {
+  font-size: 16px;
+  vertical-align: middle;
+}
+
+/* 淇濇寔鍘熸湁鏍峰紡 */
+.detail-title {
+  font-size: 18px;
+  font-weight: 600;
+  color: #303133;
+  line-height: 1.4;
+}
+
+/* 琛ㄦ牸鏁翠綋鏍峰紡 */
+:deep(.el-table) {
+  border-radius: 8px;
+  overflow: hidden;
+}
+
+:deep(.el-table th) {
+  background-color: #f5f7fa;
+  color: #606266;
+  font-weight: 600;
+}
+
+:deep(.el-table .cell) {
+  padding: 12px 8px;
+  line-height: 1.5;
+}
+
+/* 鏂戦┈绾硅〃鏍艰 */
+:deep(.el-table__row.warning-row) {
+  background-color: #fdf6ec;
+}
+
+:deep(.el-table__row.default-row) {
+  background-color: #f0f9ff;
+}
+
+/* 榧犳爣鎮仠鏁堟灉 */
+:deep(.el-table--enable-row-hover .el-table__body tr:hover > td) {
+  background-color: #f5f7fa !important;
+}
+
+/* 缁熻淇℃伅鏍峰紡 */
+.utilization-stats {
+  margin-top: 20px;
+  padding: 15px;
+  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+  border-radius: 8px;
+  color: white;
+}
+
+.stat-item {
   display: flex;
-  justify-content: space-between;
+  flex-direction: column;
   align-items: center;
+  padding: 10px;
+  text-align: center;
+}
+
+.stat-label {
+  font-size: 12px;
+  opacity: 0.9;
+  margin-bottom: 5px;
+  color: rgba(255, 255, 255, 0.9);
+}
+
+.stat-value {
+  font-size: 18px;
+  font-weight: bold;
+  color: white;
+}
+
+/* 灞曞紑琛屾牱寮� */
+.recipient-detail-expand {
+  padding: 20px;
+  background: #fafafa;
+  border-radius: 8px;
+  margin: 10px 0;
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+}
+
+.recipient-header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  margin-bottom: 20px;
+  padding-bottom: 15px;
+  border-bottom: 2px solid #e4e7ed;
+}
+
+.recipient-title {
+  font-size: 16px;
+  font-weight: 600;
+  color: #303133;
+}
+
+/* 琛ㄥ崟閮ㄥ垎鏍峰紡 */
+.recipient-form {
+  background: white;
+  padding: 20px;
+  border-radius: 8px;
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
+}
+
+/* 琛ㄥ崟閮ㄥ垎鏍囬 */
+.form-section {
+  margin-bottom: 25px;
+  padding-bottom: 20px;
+  border-bottom: 1px solid #f0f0f0;
+
+  &:last-child {
+    margin-bottom: 0;
+    padding-bottom: 0;
+    border-bottom: none;
+  }
+}
+
+.section-title {
+  font-size: 15px;
+  font-weight: 600;
+  color: #409eff;
+  margin: 0 0 15px 0;
+  padding-left: 10px;
+  border-left: 4px solid #409eff;
+  line-height: 1.2;
+}
+
+/* 琛ㄥ崟琛岄棿璺� */
+:deep(.el-form-item) {
+  margin-bottom: 20px;
+
+  .el-form-item__label {
+    font-weight: 500;
+    color: #606266;
+    padding-right: 10px;
+  }
+
+  .el-form-item__content {
+    line-height: 1.5;
+  }
+}
+
+/* 琛ㄥ崟杈撳叆妗嗘牱寮� */
+:deep(.el-input__inner) {
+  height: 36px;
+  line-height: 36px;
+  border-radius: 4px;
+  transition: all 0.3s ease;
+
+  &:focus {
+    border-color: #409eff;
+    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
+  }
+
+  &:disabled {
+    background-color: #f5f7fa;
+    border-color: #e4e7ed;
+    color: #c0c4cc;
+    cursor: not-allowed;
+  }
+}
+
+/* 鏂囨湰鍩熸牱寮� */
+:deep(.el-textarea__inner) {
+  min-height: 80px;
+  border-radius: 4px;
+  transition: all 0.3s ease;
+
+  &:focus {
+    border-color: #409eff;
+    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
+  }
+
+  &:disabled {
+    background-color: #f5f7fa;
+    border-color: #e4e7ed;
+    color: #c0c4cc;
+    cursor: not-allowed;
+  }
+}
+
+/* 閫夋嫨妗嗘牱寮� */
+:deep(.el-select) {
+  width: 100%;
+
+  .el-input__inner {
+    border-radius: 4px;
+  }
+
+  &.is-disabled {
+    .el-input__inner {
+      background-color: #f5f7fa;
+      border-color: #e4e7ed;
+      color: #c0c4cc;
+    }
+  }
+}
+
+/* 鏃ユ湡閫夋嫨鍣ㄦ牱寮� */
+:deep(.el-date-editor) {
+  width: 100%;
+
+  &.el-input__inner {
+    border-radius: 4px;
+  }
+
+  &.is-disabled {
+    .el-input__inner {
+      background-color: #f5f7fa;
+      border-color: #e4e7ed;
+      color: #c0c4cc;
+    }
+  }
+}
+
+/* 鍝嶅簲寮忚皟鏁� */
+@media (max-width: 768px) {
+  .recipient-detail-expand {
+    padding: 15px;
+  }
+
+  .recipient-form {
+    padding: 15px;
+  }
+
+  .attachment-header {
+    flex-wrap: wrap;
+  }
+
+  .attachment-tip {
+    width: 100%;
+    margin-top: 8px;
+    margin-left: 0;
+  }
+
+  .form-section {
+    margin-bottom: 20px;
+    padding-bottom: 15px;
+  }
+
+  :deep(.el-form-item) {
+    margin-bottom: 15px;
+  }
+
+  .section-title {
+    font-size: 14px;
+    margin-bottom: 12px;
+  }
+}
+
+:deep(.el-divider) {
+  margin: 20px 0;
+  background-color: #e4e7ed;
+}
+
+/* 琛ㄥ崟鏍囩鍜岃緭鍏ユ鏍峰紡 */
+:deep(.el-form-item__label) {
+  font-weight: 500;
+  color: #606266;
+}
+
+:deep(.el-input__inner:focus) {
+  border-color: #409eff;
+  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
+}
+
+/* 鎸夐挳鏍峰紡浼樺寲 */
+:deep(.el-button--primary) {
+  background: linear-gradient(135deg, #409eff 0%, #3375e0 100%);
+  border: none;
+  border-radius: 4px;
+  transition: all 0.3s ease;
+}
+
+:deep(.el-button--primary:hover) {
+  transform: translateY(-1px);
+  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4);
+}
+
+/* 搴曢儴鎿嶄綔鎸夐挳 */
+.dialog-footer {
+  margin-top: 20px;
+  text-align: center;
+  padding-top: 20px;
+  border-top: 1px solid #e4e7ed;
+}
+
+.dialog-footer .el-button {
+  margin: 0 10px;
+  min-width: 120px;
+}
+
+/* 绌虹姸鎬佹牱寮� */
+.empty-utilization {
+  text-align: center;
+  padding: 40px 0;
+  color: #909399;
+  background: #fafafa;
+  border-radius: 4px;
+  margin: 20px 0;
+}
+
+/* 鏂囦欢淇℃伅鏍峰紡 */
+.file-info {
+  display: flex;
+  align-items: center;
+  padding: 5px 0;
+}
+
+.file-info i {
+  font-size: 18px;
+  margin-right: 10px;
+}
+
+/* 骞虫澘璁惧閫傞厤 */
+@media (max-width: 1024px) {
+  .organ-utilization-detail {
+    padding: 15px;
+  }
+
+  :deep(.el-col) {
+    margin-bottom: 10px;
+  }
+}
+
+/* 鎵嬫満璁惧閫傞厤 */
+
+/* 瓒呭皬灞忓箷璁惧 */
+@media (max-width: 480px) {
+  .organ-utilization-detail {
+    padding: 5px;
+  }
+
+  :deep(.el-card__header) {
+    padding: 10px 15px;
+  }
 }
 </style>

--
Gitblit v1.9.3