feat: 新增账号状态管理、头像功能与报表工具,完善账号系统

新增账号状态字段与停用校验,支持账号头像上传管理,新增物料收发汇总表合并工具,优化银行卡检查脚本,新增ERP登录复用模块,重构账号数据库迁移与管理接口
This commit is contained in:
2026-09-16 00:25:13 +08:00
parent 1e533dd1b3
commit 4363116e31
27 changed files with 2533 additions and 268 deletions
@@ -6,6 +6,7 @@ export const store = reactive({
isAdmin: false,
current: _get('cp_account'),
token: _get('cp_token'),
nickname: '',
})
// 概览数据缓存:各管理页共用一份 adminOverview 结果,避免切页重复拉取
@@ -35,6 +36,7 @@ export function clearSession() {
store.current = ''
store.token = ''
store.isAdmin = false
store.nickname = ''
resetOverview()
try { localStorage.removeItem('cp_account'); localStorage.removeItem('cp_token') } catch (_) {}
}