feat: 大屏多订单改为同屏并列展示,物料申请新增跨工位借料来源并移除工单完成日期

This commit is contained in:
SunYF
2026-11-02 19:17:05 +08:00
parent 0c03d32682
commit fd2f0e2767
77 changed files with 1773 additions and 664 deletions
+2
View File
@@ -262,6 +262,8 @@ func applyColumnPatches(ctx context.Context) {
`CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS ux_outbound_orders_outbound_no ON outbound_orders (outbound_no)`,
// 出库单也挂检测单号——退货/报废等场景需要溯源检验单据
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS inspection_no text DEFAULT ''`,
// 跨工位借料知情权(2026-11-02):出库单记录借料来源,库房备料发货可见"含借工位X额度Y个"
`ALTER TABLE outbound_orders ADD COLUMN IF NOT EXISTS borrow_from jsonb`,
// B1/B2 逻辑拆分:存量「科技项目出库」此前以 (outbound_type='general', ownership_type='project') 混合存储。
// 拆分后科技项目出库统一用 outbound_type='project' 标识,此处一次性回填存量混合数据,不留兼容包袱。
// 幂等:回填后不再有 (general+project) 行,重复执行删除 0 行无害;后续代码不再为旧混合状态写兼容分支。