feat: 完成MES工位终端系统全量功能迭代

本次提交包含以下核心变更:
1. 新增按钮级权限控制框架与前端权限校验
2. 新增工位管理、工艺流程、巡检终端等核心业务模块
3. 完善用户体系,支持工位终端专属登录权限
4. 新增文件上传下载、报表查询等配套功能
5. 修复多系统兼容性与交互体验问题
6. 完成所有文档与配置项的规范化更新
This commit is contained in:
SunYF
2026-08-31 08:06:55 +08:00
parent dab03ac0cf
commit 4ec6784629
99 changed files with 17436 additions and 479 deletions
+72
View File
@@ -28,6 +28,33 @@ func (_u *ProcessStepUpdate) Where(ps ...predicate.ProcessStep) *ProcessStepUpda
return _u
}
// SetFlowId sets the "flowId" field.
func (_u *ProcessStepUpdate) SetFlowId(v int) *ProcessStepUpdate {
_u.mutation.ResetFlowId()
_u.mutation.SetFlowId(v)
return _u
}
// SetNillableFlowId sets the "flowId" field if the given value is not nil.
func (_u *ProcessStepUpdate) SetNillableFlowId(v *int) *ProcessStepUpdate {
if v != nil {
_u.SetFlowId(*v)
}
return _u
}
// AddFlowId adds value to the "flowId" field.
func (_u *ProcessStepUpdate) AddFlowId(v int) *ProcessStepUpdate {
_u.mutation.AddFlowId(v)
return _u
}
// ClearFlowId clears the value of the "flowId" field.
func (_u *ProcessStepUpdate) ClearFlowId() *ProcessStepUpdate {
_u.mutation.ClearFlowId()
return _u
}
// SetProcessCode sets the "processCode" field.
func (_u *ProcessStepUpdate) SetProcessCode(v int) *ProcessStepUpdate {
_u.mutation.ResetProcessCode()
@@ -196,6 +223,15 @@ func (_u *ProcessStepUpdate) sqlSave(ctx context.Context) (_node int, err error)
}
}
}
if value, ok := _u.mutation.FlowId(); ok {
_spec.SetField(processstep.FieldFlowId, field.TypeInt, value)
}
if value, ok := _u.mutation.AddedFlowId(); ok {
_spec.AddField(processstep.FieldFlowId, field.TypeInt, value)
}
if _u.mutation.FlowIdCleared() {
_spec.ClearField(processstep.FieldFlowId, field.TypeInt)
}
if value, ok := _u.mutation.ProcessCode(); ok {
_spec.SetField(processstep.FieldProcessCode, field.TypeInt, value)
}
@@ -242,6 +278,33 @@ type ProcessStepUpdateOne struct {
modifiers []func(*sql.UpdateBuilder)
}
// SetFlowId sets the "flowId" field.
func (_u *ProcessStepUpdateOne) SetFlowId(v int) *ProcessStepUpdateOne {
_u.mutation.ResetFlowId()
_u.mutation.SetFlowId(v)
return _u
}
// SetNillableFlowId sets the "flowId" field if the given value is not nil.
func (_u *ProcessStepUpdateOne) SetNillableFlowId(v *int) *ProcessStepUpdateOne {
if v != nil {
_u.SetFlowId(*v)
}
return _u
}
// AddFlowId adds value to the "flowId" field.
func (_u *ProcessStepUpdateOne) AddFlowId(v int) *ProcessStepUpdateOne {
_u.mutation.AddFlowId(v)
return _u
}
// ClearFlowId clears the value of the "flowId" field.
func (_u *ProcessStepUpdateOne) ClearFlowId() *ProcessStepUpdateOne {
_u.mutation.ClearFlowId()
return _u
}
// SetProcessCode sets the "processCode" field.
func (_u *ProcessStepUpdateOne) SetProcessCode(v int) *ProcessStepUpdateOne {
_u.mutation.ResetProcessCode()
@@ -440,6 +503,15 @@ func (_u *ProcessStepUpdateOne) sqlSave(ctx context.Context) (_node *ProcessStep
}
}
}
if value, ok := _u.mutation.FlowId(); ok {
_spec.SetField(processstep.FieldFlowId, field.TypeInt, value)
}
if value, ok := _u.mutation.AddedFlowId(); ok {
_spec.AddField(processstep.FieldFlowId, field.TypeInt, value)
}
if _u.mutation.FlowIdCleared() {
_spec.ClearField(processstep.FieldFlowId, field.TypeInt)
}
if value, ok := _u.mutation.ProcessCode(); ok {
_spec.SetField(processstep.FieldProcessCode, field.TypeInt, value)
}