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/OrganUtilization/OrganUtilizationInfo.vue |  241 +++++++++++++----------------------------------
 1 files changed, 67 insertions(+), 174 deletions(-)

diff --git a/src/views/business/OrganUtilization/OrganUtilizationInfo.vue b/src/views/business/OrganUtilization/OrganUtilizationInfo.vue
index 9a5a8b1..6106b5f 100644
--- a/src/views/business/OrganUtilization/OrganUtilizationInfo.vue
+++ b/src/views/business/OrganUtilization/OrganUtilizationInfo.vue
@@ -1,53 +1,28 @@
 <template>
   <div class="organ-utilization-detail">
     <case-basic-info :case-id="caseId" :show-attachment="true" />
-
-    <!-- 鍩烘湰淇℃伅 -->
-    <el-card class="detail-card">
-      <div slot="header" class="clearfix">
-        <span class="detail-title">鍣ㄥ畼鍒╃敤鍩烘湰淇℃伅</span>
-        <div style="float: right;">
-          <el-button type="primary" @click="handleSave" :loading="saveLoading">
-            淇濆瓨
-          </el-button>
-          <el-button
-            type="success"
-            @click="handleComplete"
-            :loading="confirmLoading"
-          >
-            瀹屾垚鍒╃敤
-          </el-button>
-        </div>
-      </div>
-
-      <el-form :model="form" ref="form" :rules="rules" label-width="120px">
-        <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">
-            <el-form-item
-              align="left"
-              label="鎺ユ敹鍗曚綅"
-              prop="receivingunitname"
+    <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>
+          <div style="float: right;">
+            <el-button
+              type="primary"
+              @click="handleSave"
+              :loading="saveLoading"
             >
-              <el-input
-                v-model="form.receivingunitname"
-                placeholder="璇疯緭鍏ユ帴鏀跺崟浣�"
-                :disabled="form.isbodydonation !== '1'"
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
+              淇濆瓨
+            </el-button>
+            <el-button
+              type="success"
+              @click="handleComplete"
+              :loading="confirmLoading"
+            >
+              瀹屾垚鍒╃敤
+            </el-button>
+          </div>
+        </div>
 
         <el-row :gutter="20">
           <el-col :span="6">
@@ -103,15 +78,53 @@
             </el-form-item>
           </el-col>
         </el-row>
-      </el-form>
-    </el-card>
-
+      </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="璇疯緭鍏ユ帴鏀跺崟浣�"
+              />
+            </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
+          <dict-tag
             :options="dict.type.utilize_statue"
             :value="form.completeState"
           />
@@ -451,34 +464,6 @@
                     <el-input v-model="scope.row.name" placeholder="鍙楄�呭鍚�" />
                   </template>
                 </el-table-column>
-
-                <el-table-column
-                  label="鎿嶄綔"
-                  align="center"
-                  class-name="small-padding fixed-width"
-                  v-if="form.completeState !== '3'"
-                >
-                  <template slot-scope="scope">
-                    <el-button
-                      size="mini"
-                      type="text"
-                      icon="el-icon-edit"
-                      @click="handleEditUtilization(scope.row)"
-                    >
-                      缂栬緫
-                    </el-button>
-                    <el-button
-                      size="mini"
-                      type="text"
-                      icon="el-icon-delete"
-                      style="color: #F56C6C;"
-                      @click="handleRemoveOrgan(scope.$index)"
-                      v-if="!scope.row.id"
-                    >
-                      鍒犻櫎
-                    </el-button>
-                  </template>
-                </el-table-column>
               </el-table>
             </el-form-item>
           </el-col>
@@ -584,76 +569,6 @@
       </div>
     </el-card>
 
-    <!-- 缂栬緫鍒╃敤璁板綍瀵硅瘽妗� -->
-    <el-dialog
-      title="缂栬緫鍣ㄥ畼鍒╃敤璁板綍"
-      :visible.sync="editDialogVisible"
-      width="600px"
-    >
-      <el-form :model="currentRecord" label-width="120px">
-        <el-row :gutter="20">
-          <el-col :span="12">
-            <el-form-item label="鍣ㄥ畼鍚嶇О">
-              <el-input v-model="currentRecord.organname" readonly />
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="绉绘鐘舵��">
-              <el-select
-                v-model="currentRecord.transplantstate"
-                style="width: 100%"
-              >
-                <el-option
-                  v-for="dict in transplantStatusList"
-                  :key="dict.value"
-                  :label="dict.label"
-                  :value="dict.value"
-                />
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-form-item
-          label="鏈Щ妞嶅師鍥�"
-          v-if="currentRecord.transplantstate === '0'"
-        >
-          <el-input
-            type="textarea"
-            :rows="3"
-            v-model="currentRecord.abandonreason"
-            placeholder="璇疯緭鍏ユ湭绉绘鍘熷洜"
-          />
-        </el-form-item>
-        <el-form-item
-          label="绉绘鍖婚櫌"
-          v-if="currentRecord.transplantstate === '1'"
-        >
-          <el-select
-            v-model="currentRecord.hospitalno"
-            placeholder="璇烽�夋嫨绉绘鍖婚櫌"
-            style="width: 100%"
-          >
-            <el-option
-              v-for="hospital in hospitalList"
-              :key="hospital.hospitalNo"
-              :label="hospital.hospitalName"
-              :value="hospital.hospitalNo"
-            />
-          </el-select>
-        </el-form-item>
-        <el-form-item
-          label="鍙楄�呭鍚�"
-          v-if="currentRecord.transplantstate === '1'"
-        >
-          <el-input v-model="currentRecord.name" placeholder="璇疯緭鍏ュ彈鑰呭鍚�" />
-        </el-form-item>
-      </el-form>
-      <div slot="footer">
-        <el-button @click="editDialogVisible = false">鍙栨秷</el-button>
-        <el-button type="primary" @click="handleEditConfirm">纭</el-button>
-      </div>
-    </el-dialog>
-
     <!-- 鏂囦欢棰勮瀵硅瘽妗� -->
     <FilePreviewDialog
       :visible="filePreviewVisible"
@@ -682,7 +597,7 @@
     FilePreviewDialog,
     CaseBasicInfo
   },
-  dicts: ["sys_BloodType", "sys_Organ", "sys_0_1",'utilize_statue'],
+  dicts: ["sys_BloodType", "sys_Organ", "sys_0_1", "utilize_statue"],
   data() {
     return {
       caseId: null,
@@ -1095,31 +1010,6 @@
       this.expandedRows = expandedRows.map(item => item.organno);
     },
 
-    // 缂栬緫鍒╃敤璁板綍
-    handleEditUtilization(row) {
-      const index = this.utilizationData.serviceDonatecomporganList.findIndex(
-        item => item.organno === row.organno
-      );
-      if (index !== -1) {
-        this.currentRecord = { ...row };
-        this.currentEditIndex = index;
-        this.editDialogVisible = true;
-      }
-    },
-
-    // 纭缂栬緫
-    handleEditConfirm() {
-      if (this.currentEditIndex !== -1) {
-        this.utilizationData.serviceDonatecomporganList[
-          this.currentEditIndex
-        ] = {
-          ...this.currentRecord
-        };
-        this.$message.success("鍒╃敤璁板綍鏇存柊鎴愬姛");
-        this.editDialogVisible = false;
-      }
-    },
-
     // 鍒犻櫎鍣ㄥ畼璁板綍
     handleRemoveOrgan(index) {
       this.$confirm("纭鍒犻櫎杩欐潯鍣ㄥ畼璁板綍鍚楋紵", "鎻愮ず", {
@@ -1290,6 +1180,7 @@
           return false;
         }
       );
+
 
       if (incompleteRecords.length > 0) {
         this.$message.warning("璇峰厛瀹屽杽鎵�鏈夊埄鐢ㄨ褰曠殑淇℃伅");
@@ -1854,6 +1745,7 @@
   .recipient-form {
     padding: 15px;
   }
+
   .attachment-header {
     flex-wrap: wrap;
   }
@@ -1863,6 +1755,7 @@
     margin-top: 8px;
     margin-left: 0;
   }
+
   .form-section {
     margin-bottom: 20px;
     padding-bottom: 15px;

--
Gitblit v1.9.3