admin
76d9c761d7
fix: BOM修订功能Bug修复 - bom_number唯一键冲突
问题:
- revise接口生成新版本时bom_number未更新,导致唯一键冲突
修复内容:
1. 修改revise接口逻辑,生成新版本时同步更新bom_number
2. 格式:{原编号}-V{版本号}(如 BOM-001 -> BOM-001-V2)
3. 处理已修订BOM的再次修订(如 BOM-001-V2 -> BOM-001-V3)
4. 添加新编号唯一性检查
新增测试:
- test_revise_bom_creates_unique_bom_number:核心Bug验证
- test_revise_bom_multiple_times:多次修订验证
- test_revise_bom_preserves_items:明细保留验证
- test_revise_already_revised_bom:已修订BOM再修订验证
验收标准:
- ✓ BOM修订功能正常
- ✓ 新版本bom_number唯一
- ✓ 单元测试通过(12 passed)
2026-04-09 16:21:27 +08:00
..
2026-03-31 00:18:48 +08:00
2026-04-03 11:37:27 +08:00
2026-03-31 23:02:00 +08:00
2026-04-03 16:57:09 +08:00
2026-04-09 16:21:27 +08:00
2026-04-09 16:21:27 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 23:06:20 +08:00
2026-04-01 07:19:45 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 22:18:34 +08:00
2026-04-09 16:21:27 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 13:42:44 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 23:06:20 +08:00
2026-04-03 23:39:44 +08:00
2026-04-02 08:06:12 +08:00