feat: 大屏多订单改为同屏并列展示,物料申请新增跨工位借料来源并移除工单完成日期

This commit is contained in:
SunYF
2026-11-02 19:17:05 +08:00
parent 0c03d32682
commit fd2f0e2767
77 changed files with 1773 additions and 664 deletions
+36
View File
@@ -520,6 +520,18 @@ func (_u *OutboundOrderUpdate) ClearContractNo() *OutboundOrderUpdate {
return _u
}
// SetBorrowFrom sets the "borrowFrom" field.
func (_u *OutboundOrderUpdate) SetBorrowFrom(v map[string]int) *OutboundOrderUpdate {
_u.mutation.SetBorrowFrom(v)
return _u
}
// ClearBorrowFrom clears the value of the "borrowFrom" field.
func (_u *OutboundOrderUpdate) ClearBorrowFrom() *OutboundOrderUpdate {
_u.mutation.ClearBorrowFrom()
return _u
}
// SetInspectionNo sets the "inspection_no" field.
func (_u *OutboundOrderUpdate) SetInspectionNo(v string) *OutboundOrderUpdate {
_u.mutation.SetInspectionNo(v)
@@ -763,6 +775,12 @@ func (_u *OutboundOrderUpdate) sqlSave(ctx context.Context) (_node int, err erro
if _u.mutation.ContractNoCleared() {
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
}
if value, ok := _u.mutation.BorrowFrom(); ok {
_spec.SetField(outboundorder.FieldBorrowFrom, field.TypeJSON, value)
}
if _u.mutation.BorrowFromCleared() {
_spec.ClearField(outboundorder.FieldBorrowFrom, field.TypeJSON)
}
if value, ok := _u.mutation.InspectionNo(); ok {
_spec.SetField(outboundorder.FieldInspectionNo, field.TypeString, value)
}
@@ -1294,6 +1312,18 @@ func (_u *OutboundOrderUpdateOne) ClearContractNo() *OutboundOrderUpdateOne {
return _u
}
// SetBorrowFrom sets the "borrowFrom" field.
func (_u *OutboundOrderUpdateOne) SetBorrowFrom(v map[string]int) *OutboundOrderUpdateOne {
_u.mutation.SetBorrowFrom(v)
return _u
}
// ClearBorrowFrom clears the value of the "borrowFrom" field.
func (_u *OutboundOrderUpdateOne) ClearBorrowFrom() *OutboundOrderUpdateOne {
_u.mutation.ClearBorrowFrom()
return _u
}
// SetInspectionNo sets the "inspection_no" field.
func (_u *OutboundOrderUpdateOne) SetInspectionNo(v string) *OutboundOrderUpdateOne {
_u.mutation.SetInspectionNo(v)
@@ -1567,6 +1597,12 @@ func (_u *OutboundOrderUpdateOne) sqlSave(ctx context.Context) (_node *OutboundO
if _u.mutation.ContractNoCleared() {
_spec.ClearField(outboundorder.FieldContractNo, field.TypeString)
}
if value, ok := _u.mutation.BorrowFrom(); ok {
_spec.SetField(outboundorder.FieldBorrowFrom, field.TypeJSON, value)
}
if _u.mutation.BorrowFromCleared() {
_spec.ClearField(outboundorder.FieldBorrowFrom, field.TypeJSON)
}
if value, ok := _u.mutation.InspectionNo(); ok {
_spec.SetField(outboundorder.FieldInspectionNo, field.TypeString, value)
}