From f5e6487a78789ee372a8c6458bfd0cb740d6a0e8 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 13 五月 2026 22:13:58 +0800
Subject: [PATCH] 青岛维护
---
src/views/business/OrganUtilization/OrganUtilizationInfo.vue | 243 ++++++++++++++----------------------------------
1 files changed, 70 insertions(+), 173 deletions(-)
diff --git a/src/views/business/OrganUtilization/OrganUtilizationInfo.vue b/src/views/business/OrganUtilization/OrganUtilizationInfo.vue
index 9a5a8b1..534c3a6 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,58 @@
</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 +469,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 +574,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 +602,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,
@@ -1093,31 +1013,6 @@
// 琛屽睍寮�浜嬩欢
handleExpandChange(row, expandedRows) {
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;
- }
},
// 鍒犻櫎鍣ㄥ畼璁板綍
@@ -1854,6 +1749,7 @@
.recipient-form {
padding: 15px;
}
+
.attachment-header {
flex-wrap: wrap;
}
@@ -1863,6 +1759,7 @@
margin-top: 8px;
margin-left: 0;
}
+
.form-section {
margin-bottom: 20px;
padding-bottom: 15px;
--
Gitblit v1.9.3