feat(operatingroom): 添加手术室类型和所属科室字段支持
- 在手术室管理界面添加类型和所属科室表格列显示 - 添加手术室类型下拉选择功能,支持急诊、择期、日间、复合四种类型 - 添加手术室详情查看页面中的类型字段展示 - 在后端服务中实现手术室类型的字典转换和文本显示 - 添加手术室实体类中的类型和所属机构名称字段 - 更新路由配置注释掉废弃的系统管理相关路径配置
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
<el-table-column label="序号" type="index" align="center" width="60" />
|
||||
<el-table-column label="手术室编码" align="center" prop="busNo" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="手术室名称" align="center" prop="name" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="类型" align="center" prop="roomTypeEnum_dictText" width="100" />
|
||||
<el-table-column label="所属科室" align="center" prop="organizationName" width="120" show-overflow-tooltip />
|
||||
<el-table-column label="位置描述" align="center" prop="locationDescription" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="设备配置" align="center" prop="equipmentConfig" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column label="容纳人数" align="center" prop="capacity" width="100" />
|
||||
@@ -109,6 +111,18 @@
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="类型" prop="roomTypeEnum">
|
||||
<el-select v-model="form.roomTypeEnum" placeholder="请选择类型" style="width: 100%">
|
||||
<el-option
|
||||
v-for="item in roomTypeOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="所属科室" prop="organizationId">
|
||||
<el-select
|
||||
@@ -128,6 +142,9 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="状态" prop="statusEnum">
|
||||
<el-select v-model="form.statusEnum" placeholder="请选择状态" style="width: 100%">
|
||||
@@ -196,6 +213,7 @@
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="手术室编码">{{ viewData.busNo }}</el-descriptions-item>
|
||||
<el-descriptions-item label="手术室名称">{{ viewData.name }}</el-descriptions-item>
|
||||
<el-descriptions-item label="类型">{{ viewData.roomTypeEnum_dictText }}</el-descriptions-item>
|
||||
<el-descriptions-item label="位置描述">{{ viewData.locationDescription }}</el-descriptions-item>
|
||||
<el-descriptions-item label="容纳人数">{{ viewData.capacity }}</el-descriptions-item>
|
||||
<el-descriptions-item label="所属科室">{{ viewData.organizationName }}</el-descriptions-item>
|
||||
@@ -260,6 +278,7 @@ const form = ref({
|
||||
id: undefined,
|
||||
busNo: undefined,
|
||||
name: undefined,
|
||||
roomTypeEnum: undefined,
|
||||
organizationId: undefined,
|
||||
locationDescription: undefined,
|
||||
equipmentConfig: undefined,
|
||||
@@ -272,6 +291,13 @@ const form = ref({
|
||||
const operatingRoomRef = ref()
|
||||
const viewData = ref({})
|
||||
|
||||
const roomTypeOptions = ref([
|
||||
{ value: 1, label: '急诊手术室' },
|
||||
{ value: 2, label: '择期手术室' },
|
||||
{ value: 3, label: '日间手术室' },
|
||||
{ value: 4, label: '复合手术室' }
|
||||
])
|
||||
|
||||
const statusOptions = ref([
|
||||
{ value: 1, label: '启用' },
|
||||
{ value: 0, label: '停用' }
|
||||
@@ -344,6 +370,7 @@ function reset() {
|
||||
id: undefined,
|
||||
busNo: undefined,
|
||||
name: undefined,
|
||||
roomTypeEnum: undefined,
|
||||
organizationId: undefined,
|
||||
locationDescription: undefined,
|
||||
equipmentConfig: undefined,
|
||||
|
||||
Reference in New Issue
Block a user