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

新增账号状态字段与停用校验,支持账号头像上传管理,新增物料收发汇总表合并工具,优化银行卡检查脚本,新增ERP登录复用模块,重构账号数据库迁移与管理接口
This commit is contained in:
2026-09-16 00:25:13 +08:00
parent 0ab43d0ed8
commit 813bee743b
27 changed files with 2533 additions and 268 deletions
+6
View File
@@ -84,6 +84,12 @@ export async function adminAccountDelete(body) {
body: JSON.stringify(body)
})
}
export async function adminAvatarUpload(account, file) {
const fd = new FormData()
fd.append('file', file)
const qs = new URLSearchParams({ account })
return req('/api/admin/avatar?' + qs.toString(), { method: 'POST', headers: adminHeaders(), body: fd })
}
export async function adminPluginDelete(body) {
return req('/api/admin/plugin/delete', {
method: 'POST',