feat: 商业认证+核算页面重写,管理入口移到用户菜单
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 4s
PR Preview / deploy-preview (pull_request) Successful in 15s
Test / e2e-test (push) Successful in 55s
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 4s
PR Preview / deploy-preview (pull_request) Successful in 15s
Test / e2e-test (push) Successful in 55s
商业认证: - 重写申请表单:认证类型、企业名称、联系电话、业务描述 - 状态栏样式:左侧彩色条(绿/橙/红) - 用户管理页:同一用户只显示一条,可展开历史查看拒绝原因 - 后端 API 补充 reject_reason 字段 商业核算: - 成分表改为标准表格(精油/用量/单价/小计) - 总成本显示栏(绿色背景大字) - 定价字段放在成本下方 管理入口: - 操作日志/Bug/用户管理从主 tab 栏移到管理员用户菜单 - 添加配方按钮对所有用户可见 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -501,7 +501,7 @@ def get_my_business_application(user=Depends(get_current_user)):
|
||||
def list_business_applications(user=Depends(require_role("admin"))):
|
||||
conn = get_db()
|
||||
rows = conn.execute(
|
||||
"SELECT a.id, a.user_id, a.business_name, a.document, a.status, a.created_at, "
|
||||
"SELECT a.id, a.user_id, a.business_name, a.document, a.status, a.reject_reason, a.created_at, "
|
||||
"u.display_name, u.username FROM business_applications a "
|
||||
"LEFT JOIN users u ON a.user_id = u.id ORDER BY a.id DESC"
|
||||
).fetchall()
|
||||
|
||||
Reference in New Issue
Block a user