feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能

This commit is contained in:
SunYF
2026-10-17 17:49:47 +08:00
parent f65a52d9e1
commit f743cf21fb
96 changed files with 6130 additions and 1781 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ func statusTextCN(s string) string {
// DeleteWorkOrder 删除工单(方案 A:仅「已创建」可删)。
// 安全条件:① 状态仅限 CREATED;② 无日排产记录;③ 未生成备料单;
// ④ 无任何 SN 进入生产(状态≠NEW)。仅预生成的 NEW SN 不阻止删除(二.3 边界#2)。
// ④ 无任何 SN 进入生产(状态≠NEW)。仅预生成的 NEW SN 不阻止删除(业务定稿·一.2 边界#2)。
func (s *Service) DeleteWorkOrder(ctx context.Context, id int, operator string) error {
if id <= 0 {
return errors.New("缺少 id")