feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段

This commit is contained in:
SunYF
2026-10-29 18:16:53 +08:00
parent 4d3c4e2c3a
commit 11dbdaae75
75 changed files with 6801 additions and 965 deletions
@@ -338,6 +338,12 @@ func (s *Service) SaveStation(ctx context.Context, req StationReq, operator stri
st, err := s.ctx.EntClient.Station.Query().Where(station.StationNo(req.StationNo)).First(ctx)
if err != nil {
// 新增工位:工位号不存在即创建(字段错误收集式列出)
// 物理产线工位(1~12)为内置硬件锁定(G1~G12 各连 PLC、须按工位号顺序流转),
// 禁止通过本接口新增或占用,避免与内置物理工位冲突、或绕过前端改物理工位号。
// 物理工位号只能由种子/初始化数据产生;页面新增请使用虚拟工位(0)或扩展工位号(≥13)。
if req.StationNo >= 1 && req.StationNo <= 12 {
return errors.New("工位号 1~12 为内置物理产线工位(硬件锁定),不可通过本接口新增或占用;新增工位请使用虚拟工位(0)或扩展工位号(≥13)")
}
ve := verr.New()
if req.Name == "" {
ve.Add("name", "请填写工位名称", "在「工位名称」输入框填写名称后保存")