Commit Graph
3 Commits
Author SHA1 Message Date
luishouandClaude Opus 4.8 2bb2945678 feat: 业务员角色权限限制 + 客户查看弹窗
- 新增 acl.ts 工具:isSuperAdmin/SUPER_ADMIN;utils.ts 加 maskPhone
- 侧边栏按角色过滤:系统管理菜单仅超管可见
- /rbac 路由服务端拦截:非超管访问重定向首页
- 客户列表:业务员手机号脱敏(中间5位星号)、删除按钮隐藏、新增查看按钮
- 删除服务端校验:仅超管可执行
- 新增 customer-view.tsx 查看弹窗,展示完整商户信息(含完整手机号)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 00:06:00 +08:00
luishouandClaude Opus 4.8 228c37c897 feat: 新增客户表单强制必填校验(名称无空格/手机号11位/押金买断生日)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 21:17:59 +08:00
luishouandClaude Opus 4.8 5d46afe439 feat: 联动支付 CRM 后台(Next.js + TS + Prisma 重构)
从旧 Laravel 5.7 重构为现代技术栈,对接现有 MySQL。

- 技术栈: Next.js 15 App Router + TypeScript + Prisma + Auth.js + Tailwind v4
- 认证: 复用旧库 admins 的 bcrypt 密码,Auth.js Credentials
- 客户管理: 列表(搜索/报单区间/分页)、增改删、Excel 导入导出
- 生日提醒: 阴阳历(lunar-typescript),口径对齐旧 overtrue 库
- RBAC: 管理员/角色/权限(菜单树) 完整 CRUD + 分配
- 控制台: 统计卡 + 月度新增报单柱状图
- 个人中心: 改昵称/改密码
- 现代 CMS 界面 + 联动支付品牌(logo/登录/底部/icon)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 15:02:03 +08:00