feat: 完成多模块迭代更新
- 新增过程巡检按步骤上报、数量不符上报、工位退料功能 - 增加工单工程编号三级归属字段 - 新增物料安全库存与缺货预警 - 新增附件管理、退库单管理模块 - 优化生产看板展示逻辑与前端页面文案 - 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
@@ -37,6 +37,11 @@ type InspectionReq struct {
|
||||
Photo string `json:"photo"` // 拍照文件名
|
||||
Remark string `json:"remark"` // 文字描述/签字
|
||||
Operator string `json:"operator"` // 操作人
|
||||
// P0-4 过程巡检按步骤维度
|
||||
ProcessCode int `json:"processCode"` // 所属工位号
|
||||
StepId int `json:"stepId"` // 工艺步骤ID
|
||||
StepName string `json:"stepName"` // 工艺步骤名称
|
||||
MeasuredValue string `json:"measuredValue"` // 实测值
|
||||
}
|
||||
|
||||
// CreateInspection 提交巡检记录;ALARM 类型同时触发看板报警(SSE + 清缓存)
|
||||
@@ -66,6 +71,10 @@ func (s *Service) CreateInspection(ctx context.Context, req InspectionReq, opera
|
||||
SetPhoto(req.Photo).
|
||||
SetRemark(req.Remark).
|
||||
SetOperator(req.Operator).
|
||||
SetProcessCode(req.ProcessCode).
|
||||
SetStepId(req.StepId).
|
||||
SetStepName(req.StepName).
|
||||
SetMeasuredValue(req.MeasuredValue).
|
||||
Save(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user