feat(role): 添加角色用户关系管理功能并优化处方列表组件 bug#182

- 在SysUserRoleMapper中新增selectUserIdsByRoleId方法查询角色下的用户ID列表
- 在SysRoleServiceImpl中注入ISysMenuService并实现菜单缓存清理逻辑
- 修改updateRole方法在角色权限变更后清除相关用户的菜单缓存
- 更新处方列表组件确保showPopover初始值为false避免自动弹出问题
- 将采购入库页面的按钮文本从"添加记录"改为"采购入库"
- 添加删除验证检查已审批记录不允许删除的功能
This commit is contained in:
2026-03-18 14:26:12 +08:00
parent 0d1710f201
commit 6d87b7c445
5 changed files with 45 additions and 6 deletions

View File

@@ -1550,6 +1550,8 @@ function getListInfo(addNewRow) {
adviceType_dictText: adviceType_dictText,
// 🎯 修复:确保 orgId 被正确设置(从 positionId 映射)
orgId: item.positionId || item.orgId,
// 🔧 Bug Fix: 确保 showPopover 为 false避免患者切换时表格自动弹出
showPopover: false,
};
return result;

View File

@@ -98,7 +98,7 @@
<el-col :span="1.5">
<!-- v-hasPermi="['system:user:add']" -->
<el-button type="primary" plain icon="Plus" @click="openAddInventoryReceiptDialog"
>添加记录</el-button
>采购入库</el-button
>
</el-col>
<el-col :span="1.5">
@@ -647,6 +647,13 @@ function handleDelete(row) {
// 获取选中行的单据号列表
const busNoList = selectedRows.value.map((item) => item.supplyBusNo);
// 检查选中记录中是否有已审批的数据
const approvedRows = selectedRows.value.filter((item) => item.statusEnum);
if (approvedRows.length > 0) {
proxy.$modal.msgWarning('已审批的记录不能删除');
return;
}
proxy.$modal
.confirm('是否确认删除以上数据?')
.then(function () {