feat: 两库对等物料管理及产品工号贯通全流程
- 新增 MES 本地物料表及双向同步接口,WMS 物料变更自动同步 - 全流程新增产品工号字段,贯通入库/库存/出库/检验环节 - 工单管理支持多工单混产,移除单工单互斥限制 - 新增批次号/SN 字段支持质量检验联动 WMS 库存处置 - 修复权限规则,仅内置管理员账号不允许修改删除 - 工位终端新增 SN 扫码自动切换所属工单功能
This commit is contained in:
@@ -221,6 +221,20 @@ func (_c *InboundOrderCreate) SetNillableOwnershipNo(v *string) *InboundOrderCre
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetProductWorkNo sets the "product_work_no" field.
|
||||
func (_c *InboundOrderCreate) SetProductWorkNo(v string) *InboundOrderCreate {
|
||||
_c.mutation.SetProductWorkNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetNillableProductWorkNo sets the "product_work_no" field if the given value is not nil.
|
||||
func (_c *InboundOrderCreate) SetNillableProductWorkNo(v *string) *InboundOrderCreate {
|
||||
if v != nil {
|
||||
_c.SetProductWorkNo(*v)
|
||||
}
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetQualityStatus sets the "quality_status" field.
|
||||
func (_c *InboundOrderCreate) SetQualityStatus(v string) *InboundOrderCreate {
|
||||
_c.mutation.SetQualityStatus(v)
|
||||
@@ -486,6 +500,10 @@ func (_c *InboundOrderCreate) createSpec() (*InboundOrder, *sqlgraph.CreateSpec)
|
||||
_spec.SetField(inboundorder.FieldOwnershipNo, field.TypeString, value)
|
||||
_node.OwnershipNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.ProductWorkNo(); ok {
|
||||
_spec.SetField(inboundorder.FieldProductWorkNo, field.TypeString, value)
|
||||
_node.ProductWorkNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.QualityStatus(); ok {
|
||||
_spec.SetField(inboundorder.FieldQualityStatus, field.TypeString, value)
|
||||
_node.QualityStatus = value
|
||||
@@ -820,6 +838,24 @@ func (u *InboundOrderUpsert) ClearOwnershipNo() *InboundOrderUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetProductWorkNo sets the "product_work_no" field.
|
||||
func (u *InboundOrderUpsert) SetProductWorkNo(v string) *InboundOrderUpsert {
|
||||
u.Set(inboundorder.FieldProductWorkNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateProductWorkNo sets the "product_work_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsert) UpdateProductWorkNo() *InboundOrderUpsert {
|
||||
u.SetExcluded(inboundorder.FieldProductWorkNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// ClearProductWorkNo clears the value of the "product_work_no" field.
|
||||
func (u *InboundOrderUpsert) ClearProductWorkNo() *InboundOrderUpsert {
|
||||
u.SetNull(inboundorder.FieldProductWorkNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetQualityStatus sets the "quality_status" field.
|
||||
func (u *InboundOrderUpsert) SetQualityStatus(v string) *InboundOrderUpsert {
|
||||
u.Set(inboundorder.FieldQualityStatus, v)
|
||||
@@ -1269,6 +1305,27 @@ func (u *InboundOrderUpsertOne) ClearOwnershipNo() *InboundOrderUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetProductWorkNo sets the "product_work_no" field.
|
||||
func (u *InboundOrderUpsertOne) SetProductWorkNo(v string) *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.SetProductWorkNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateProductWorkNo sets the "product_work_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsertOne) UpdateProductWorkNo() *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.UpdateProductWorkNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearProductWorkNo clears the value of the "product_work_no" field.
|
||||
func (u *InboundOrderUpsertOne) ClearProductWorkNo() *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.ClearProductWorkNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetQualityStatus sets the "quality_status" field.
|
||||
func (u *InboundOrderUpsertOne) SetQualityStatus(v string) *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
@@ -1900,6 +1957,27 @@ func (u *InboundOrderUpsertBulk) ClearOwnershipNo() *InboundOrderUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetProductWorkNo sets the "product_work_no" field.
|
||||
func (u *InboundOrderUpsertBulk) SetProductWorkNo(v string) *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.SetProductWorkNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateProductWorkNo sets the "product_work_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsertBulk) UpdateProductWorkNo() *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.UpdateProductWorkNo()
|
||||
})
|
||||
}
|
||||
|
||||
// ClearProductWorkNo clears the value of the "product_work_no" field.
|
||||
func (u *InboundOrderUpsertBulk) ClearProductWorkNo() *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.ClearProductWorkNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetQualityStatus sets the "quality_status" field.
|
||||
func (u *InboundOrderUpsertBulk) SetQualityStatus(v string) *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user