feat: 完成多模块迭代更新

- 新增过程巡检按步骤上报、数量不符上报、工位退料功能
- 增加工单工程编号三级归属字段
- 新增物料安全库存与缺货预警
- 新增附件管理、退库单管理模块
- 优化生产看板展示逻辑与前端页面文案
- 清理冗余的工艺路线相关代码与备份文件
This commit is contained in:
SunYF
2026-09-15 16:37:39 +08:00
parent 951f3dfecd
commit 4a5e2d7bac
494 changed files with 24702 additions and 139223 deletions
+86
View File
@@ -225,6 +225,40 @@ func (_u *InboundOrderUpdate) SetNillableInspectionNo(v *string) *InboundOrderUp
return _u
}
// SetOwnershipType sets the "ownership_type" field.
func (_u *InboundOrderUpdate) SetOwnershipType(v string) *InboundOrderUpdate {
_u.mutation.SetOwnershipType(v)
return _u
}
// SetNillableOwnershipType sets the "ownership_type" field if the given value is not nil.
func (_u *InboundOrderUpdate) SetNillableOwnershipType(v *string) *InboundOrderUpdate {
if v != nil {
_u.SetOwnershipType(*v)
}
return _u
}
// SetOwnershipNo sets the "ownership_no" field.
func (_u *InboundOrderUpdate) SetOwnershipNo(v string) *InboundOrderUpdate {
_u.mutation.SetOwnershipNo(v)
return _u
}
// SetNillableOwnershipNo sets the "ownership_no" field if the given value is not nil.
func (_u *InboundOrderUpdate) SetNillableOwnershipNo(v *string) *InboundOrderUpdate {
if v != nil {
_u.SetOwnershipNo(*v)
}
return _u
}
// ClearOwnershipNo clears the value of the "ownership_no" field.
func (_u *InboundOrderUpdate) ClearOwnershipNo() *InboundOrderUpdate {
_u.mutation.ClearOwnershipNo()
return _u
}
// SetCreatedAt sets the "created_at" field.
func (_u *InboundOrderUpdate) SetCreatedAt(v int64) *InboundOrderUpdate {
_u.mutation.ResetCreatedAt()
@@ -341,6 +375,15 @@ func (_u *InboundOrderUpdate) sqlSave(ctx context.Context) (_node int, err error
if value, ok := _u.mutation.InspectionNo(); ok {
_spec.SetField(inboundorder.FieldInspectionNo, field.TypeString, value)
}
if value, ok := _u.mutation.OwnershipType(); ok {
_spec.SetField(inboundorder.FieldOwnershipType, field.TypeString, value)
}
if value, ok := _u.mutation.OwnershipNo(); ok {
_spec.SetField(inboundorder.FieldOwnershipNo, field.TypeString, value)
}
if _u.mutation.OwnershipNoCleared() {
_spec.ClearField(inboundorder.FieldOwnershipNo, field.TypeString)
}
if value, ok := _u.mutation.CreatedAt(); ok {
_spec.SetField(inboundorder.FieldCreatedAt, field.TypeInt64, value)
}
@@ -565,6 +608,40 @@ func (_u *InboundOrderUpdateOne) SetNillableInspectionNo(v *string) *InboundOrde
return _u
}
// SetOwnershipType sets the "ownership_type" field.
func (_u *InboundOrderUpdateOne) SetOwnershipType(v string) *InboundOrderUpdateOne {
_u.mutation.SetOwnershipType(v)
return _u
}
// SetNillableOwnershipType sets the "ownership_type" field if the given value is not nil.
func (_u *InboundOrderUpdateOne) SetNillableOwnershipType(v *string) *InboundOrderUpdateOne {
if v != nil {
_u.SetOwnershipType(*v)
}
return _u
}
// SetOwnershipNo sets the "ownership_no" field.
func (_u *InboundOrderUpdateOne) SetOwnershipNo(v string) *InboundOrderUpdateOne {
_u.mutation.SetOwnershipNo(v)
return _u
}
// SetNillableOwnershipNo sets the "ownership_no" field if the given value is not nil.
func (_u *InboundOrderUpdateOne) SetNillableOwnershipNo(v *string) *InboundOrderUpdateOne {
if v != nil {
_u.SetOwnershipNo(*v)
}
return _u
}
// ClearOwnershipNo clears the value of the "ownership_no" field.
func (_u *InboundOrderUpdateOne) ClearOwnershipNo() *InboundOrderUpdateOne {
_u.mutation.ClearOwnershipNo()
return _u
}
// SetCreatedAt sets the "created_at" field.
func (_u *InboundOrderUpdateOne) SetCreatedAt(v int64) *InboundOrderUpdateOne {
_u.mutation.ResetCreatedAt()
@@ -711,6 +788,15 @@ func (_u *InboundOrderUpdateOne) sqlSave(ctx context.Context) (_node *InboundOrd
if value, ok := _u.mutation.InspectionNo(); ok {
_spec.SetField(inboundorder.FieldInspectionNo, field.TypeString, value)
}
if value, ok := _u.mutation.OwnershipType(); ok {
_spec.SetField(inboundorder.FieldOwnershipType, field.TypeString, value)
}
if value, ok := _u.mutation.OwnershipNo(); ok {
_spec.SetField(inboundorder.FieldOwnershipNo, field.TypeString, value)
}
if _u.mutation.OwnershipNoCleared() {
_spec.ClearField(inboundorder.FieldOwnershipNo, field.TypeString)
}
if value, ok := _u.mutation.CreatedAt(); ok {
_spec.SetField(inboundorder.FieldCreatedAt, field.TypeInt64, value)
}