fix(doctorstation): 修复诊断和手术模块的数据类型及权限过滤问题
- 修复诊断模块中medTypeCode字段使用数字类型字典值而非字符串 - 在报损管理中添加权限过滤后的数据回退机制,当权限过滤无数据时获取全部数据 - 为报损管理新增getPharmacyListAll和getDispensaryListAll接口函数 - 在手术申请模块中添加患者选中校验,防止未选择患者时的操作异常 - 修复手术模块的编辑、查看、删除操作缺少患者校验的问题
This commit is contained in:
@@ -744,15 +744,20 @@ function handleAdd() {
|
||||
|
||||
// 编辑
|
||||
function handleEdit(row) {
|
||||
// Bug #152 修复:添加患者选中校验
|
||||
if (!props.patientInfo?.encounterId) {
|
||||
proxy.$modal.msgWarning('请先选择患者')
|
||||
return
|
||||
}
|
||||
if (row.statusEnum !== 0) {
|
||||
proxy.$modal.msgWarning('当前状态不允许编辑手术,仅新开状态可编辑')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
title.value = '编辑手术申请'
|
||||
open.value = true
|
||||
isEditMode.value = true
|
||||
|
||||
|
||||
// 确保医生列表已加载
|
||||
if (doctorList.value.length === 0) {
|
||||
loadDoctorList()
|
||||
@@ -795,6 +800,11 @@ getSurgeryDetail(row.id).then(res => {
|
||||
|
||||
// 查看
|
||||
function handleView(row) {
|
||||
// Bug #152 修复:添加患者选中校验
|
||||
if (!props.patientInfo?.encounterId) {
|
||||
proxy.$modal.msgWarning('请先选择患者')
|
||||
return
|
||||
}
|
||||
viewOpen.value = true
|
||||
getSurgeryDetail(row.id).then(res => {
|
||||
if (res.code === 200) {
|
||||
@@ -819,6 +829,11 @@ function handleView(row) {
|
||||
|
||||
// 删除/取消
|
||||
function handleDelete(row) {
|
||||
// Bug #152 修复:添加患者选中校验
|
||||
if (!props.patientInfo?.encounterId) {
|
||||
proxy.$modal.msgWarning('请先选择患者')
|
||||
return
|
||||
}
|
||||
if (row.statusEnum === 0) {
|
||||
// 新开状态 - 直接删除
|
||||
proxy.$modal.confirm('是否确认删除手术"' + row.surgeryName + '"?').then(() => {
|
||||
|
||||
Reference in New Issue
Block a user