yueli
23fc10a25f
fix: Day2就绪 — 删除硬化+索引补全+全局异常处理
## base_service.py — MaterialBase删除硬化
- 新增 BomTable 引用检查(bom_usage_count)
- 物料被BOM引用时禁止删除,提示「请先解除BOM绑定」
## models/base.py + bom.py — 缺失索引补全
- material_base: company_name + is_enabled 添加 index=True
- bom_table: is_enabled 添加 index=True
## __init__.py — 全局异常处理
- @app.errorhandler(ValueError) → 400 + 自定义消息
- @app.errorhandler(404/405) → 标准错误
- @app.errorhandler(Exception) → 500 + 通用消息
堆栈仅记录服务器日志,不泄露到前端
2026-07-16 14:14:43 +08:00
..
2026-05-21 14:09:57 +08:00
2026-07-16 14:14:43 +08:00
2026-05-27 09:57:01 +08:00
2026-07-15 09:22:58 +08:00
2026-06-10 11:30:07 +08:00
2026-07-15 17:37:57 +08:00
2026-07-15 11:49:53 +08:00
2026-07-13 15:12:22 +08:00
2026-07-16 14:00:28 +08:00
2026-07-16 11:26:12 +08:00
2026-07-15 17:37:57 +08:00
2026-07-16 11:25:41 +08:00
2026-07-16 13:08:45 +08:00
2026-07-15 17:37:57 +08:00