fix(consultation): 解决会诊流程中的多个功能问题
- 在 deptappthoursManage.js 中添加 status 参数以仅获取已启动的机构 - 为 consultationapplication 组件添加已确认和已签名状态选项 - 扩展操作列宽度并添加打印功能按钮 - 优化 handlePrint 方法以支持行参数和性别枚举转换 - 为 consultationconfirmation 组件添加必填验证和编辑权限控制 - 修复会诊确认医师信息回显逻辑 - 在 inspectionApplication 组件中修复表格行点击事件和检验项目加载 - 禁用非紧急标记的编辑权限以解决Bug #268 - 为 surgeryApplication 组件添加响应码验证和错误处理 - 在 consultation 组件中添加表单验证清除功能 - 为 PackageManagement 组件实现动态机构选项加载 - 重构 PackageSettings 组件的套餐金额显示和只读模式 - 为检查项目设置组件添加套餐筛选和下级类型选择功能 - 实现检验套餐的编辑和查看模式切换功能
This commit is contained in:
@@ -17,8 +17,13 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="卫生机构">
|
||||
<el-select v-model="queryParams.organization" placeholder="请选择机构" style="width: 150px" clearable>
|
||||
<el-option label="演示医院" value="演示医院" />
|
||||
<el-select v-model="queryParams.organization" placeholder="请选择机构" style="width: 150px" clearable filterable>
|
||||
<el-option
|
||||
v-for="org in organizationOptions"
|
||||
:key="org.value"
|
||||
:label="org.label"
|
||||
:value="org.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -199,6 +204,7 @@ import {ElMessage, ElMessageBox} from 'element-plus'
|
||||
import {getDicts} from '@/api/system/dict/data'
|
||||
import {listDept} from '@/api/system/dept'
|
||||
import {delCheckPackage, getCheckPackage, listCheckPackage} from '@/api/system/checkType'
|
||||
import {getTenantPage} from '@/api/system/tenant'
|
||||
import request from '@/utils/request'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
|
||||
@@ -275,6 +281,8 @@ const loading = ref(false)
|
||||
const packageLevelOptions = ref([])
|
||||
// 科室选项
|
||||
const departments = ref([])
|
||||
// 卫生机构选项
|
||||
const organizationOptions = ref([])
|
||||
|
||||
// 初始化数据
|
||||
onMounted(async () => {
|
||||
@@ -394,6 +402,33 @@ onMounted(async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取卫生机构列表
|
||||
try {
|
||||
const tenantResponse = await getTenantPage({ pageNum: 1, pageSize: 100 })
|
||||
if (tenantResponse && tenantResponse.code === 200) {
|
||||
const tenantData = tenantResponse.data || {}
|
||||
let tenantList = []
|
||||
if (Array.isArray(tenantData)) {
|
||||
tenantList = tenantData
|
||||
} else if (tenantData.records) {
|
||||
tenantList = tenantData.records
|
||||
} else if (tenantData.rows) {
|
||||
tenantList = tenantData.rows
|
||||
} else if (tenantData.list) {
|
||||
tenantList = tenantData.list
|
||||
}
|
||||
// 过滤启用的机构
|
||||
organizationOptions.value = tenantList
|
||||
.filter(item => item && item.status === '0')
|
||||
.map(item => ({
|
||||
value: item.tenantName || item.name || item.orgName || String(item.id),
|
||||
label: item.tenantName || item.name || item.orgName || String(item.id)
|
||||
}))
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取卫生机构列表失败:', error)
|
||||
}
|
||||
|
||||
// 加载列表数据
|
||||
handleQuery()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user