feat(admin): 新增陪诊员入驻申请与全局角色守卫

- 新增 pages/apply 入驻申请页:填写资料、上传证件、查看审核状态
- 新增 utils/role.js 统一角色解析与管理端页面守卫
- app.js 包装 Page 构造器集中做 onShow 守卫,无身份用户重定向至申请页
- 订单、客户、档案、统计等按角色区分能力:陪诊员不请求档案接口,改用订单快照
- 订单列表支持待取消订单一键同意取消;新增订单价格由服务目录决定只读展示
This commit is contained in:
lik
2026-11-08 12:01:48 +08:00
parent bfe820aa31
commit c8bcc79865
27 changed files with 1332 additions and 206 deletions
+14
View File
@@ -35,6 +35,20 @@ const API = {
deleteProfile: (id) => request.delete(`/health/health-profile/${id}`),
},
// 当前账号的员工档案:登录即可访问,用于判定在职陪诊员身份
employee: {
getMe: () => request.get('/health/employee/me'),
},
// 陪诊师入驻申请:提交/查询本人只要求登录,审核接口仅管理员
attendantApplication: {
create: (data) => request.post('/health/attendant-application', data),
getMine: () => request.get('/health/attendant-application/mine'),
list: (params) => request.get('/health/attendant-application', params),
getMaterials: (id) => request.get(`/health/attendant-application/${id}/materials`),
review: (id, data) => request.post(`/health/attendant-application/${id}/review`, data),
},
resource: {
getServices: (params) => request.get('/health/service', params),
getAgreement: (params) => request.get('/health/agreement', params),