feat:诊所问题优化,气泡卡片优化,修复了导入药品的时候无法打开开方组件并且切换tab的问题

This commit is contained in:
李琦
2026-08-01 08:04:31 +08:00
parent 371594bfda
commit 3bc22d02e6
12 changed files with 241 additions and 142 deletions

View File

@@ -18,3 +18,13 @@ export function canEditDoctorServiceUser(userInfo: PlatformAdminUserInfo): boole
export function canManageStoreBankCard(userInfo: PlatformAdminUserInfo): boolean {
return isPlatformSuperAdmin(userInfo);
}
/**
* 是否可在诊所页/诊所详情发起「添加医生」操作
* 角色:1 超级管理员 / 2 系统管理员 / 3 省经理 / 4 市经理 / 6 业务员
* 数据范围由后端 StoreService::assertCanViewStore 兜底校验
*/
export function canAddStoreDoctor(userInfo: PlatformAdminUserInfo): boolean {
const roleId = Number(userInfo?.role_id ?? userInfo?.roles?.id);
return [1, 2, 3, 4, 6].includes(roleId);
}