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-07-14 15:25:00 +08:00
2026-05-12 17:27:51 +08:00
2026-07-16 14:14:43 +08:00
2026-06-10 11:30:07 +08:00
2026-07-16 14:14:43 +08:00
2026-06-12 14:08:19 +08:00
2026-04-28 16:02:34 +08:00
2026-07-15 16:07:59 +08:00
2026-07-13 15:12:22 +08:00
2026-04-08 19:36:14 +08:00