feat: 新增产线看板功能并优化多端系统体验
1. 新增SSE看板广播机制,业务操作后主动推送刷新事件 2. 新增产线工序横道图与工位状态展示面板 3. 移除dashboard无用的three.js依赖 4. 重构WMS客户端布局与WMS前端资源哈希 5. 新增工位终端时钟图标与大屏自适应布局 6. 新增系统截图脚本与说明书生成工具 7. 修复多处代码细节与空值处理逻辑
This commit is contained in:
@@ -72,6 +72,7 @@ func (s *Service) CreateWorkOrder(ctx context.Context, req WorkOrderReq, operato
|
||||
return err
|
||||
}
|
||||
s.ctx.EventLog.Write(ctx, "work.order.create", req.WorkOrderNo, operator, "work_order", req.WorkOrderNo, "创建工单", map[string]any{"quantity": req.Quantity})
|
||||
s.notifyDashboard()
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -120,6 +121,7 @@ func (s *Service) UpdateWorkOrder(ctx context.Context, req WorkOrderReq, operato
|
||||
if err == nil {
|
||||
s.ctx.EventLog.Write(ctx, "work.order.update", wo.WorkOrderNo, operator, "work_order", wo.WorkOrderNo, "更新工单", nil)
|
||||
}
|
||||
s.notifyDashboard()
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -201,6 +203,7 @@ func (s *Service) SetWorkOrderStatus(ctx context.Context, id int, status, reason
|
||||
map[string]any{"from": wo.Status, "to": status, "reason": reason})
|
||||
// 联动:DONE/CANCELLED → 该工单未完成排产批量取消;IN_PROGRESS → 排产置执行中
|
||||
s.syncPlansByOrderStatus(ctx, wo.WorkOrderNo, status, operator)
|
||||
s.notifyDashboard()
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -244,4 +247,4 @@ func (s *Service) DeleteWorkOrder(ctx context.Context, id int, operator string)
|
||||
}
|
||||
s.ctx.EventLog.Write(ctx, "work.order.delete", wo.WorkOrderNo, operator, "work_order", wo.WorkOrderNo, "删除工单", map[string]any{"status": wo.Status})
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user