feat&refactor: 完成多模块功能迭代与配置优化
本次提交覆盖多个业务模块的功能完善与体验优化:
1. **鉴权与配置调整**:
- 统一JWT滑动续签逻辑,简化Token存储,移除RefreshToken相关冗余代码
- 调整多项目配置文件中JWT过期时间为3600秒,统一会话闲置窗口
- 工位配置放开1~12限制,改为仅校验大于0
2. **术语统一替换**:全链路将"精密件"替换为"电气件",修正物料管理描述
3. **功能新增**:
- 新增工位类型、工艺路线与产线点位台账模块
- 添加工艺PDF预览面板、工位终端代理转发接口
- 新增操作日志按操作人列表筛选、工位登出日志记录
- 新增PLC移料指令与产线点位状态管理
4. **业务流程优化**:
- 调整BOM物料删除校验逻辑,优化工单备料计算
- 补充物料图号、检测单号等追溯字段
- 完善工艺流程图与工位绑定关系说明
- 优化前端页面文案与交互细节
5. **代码规范与维护**:
- 新增通用工具函数与前端静态资源
- 整理路由权限与中间件逻辑
- 修复部分接口与配置的不兼容问题
This commit is contained in:
@@ -145,6 +145,12 @@ func (_c *InboundOrderCreate) SetNillableRemark(v *string) *InboundOrderCreate {
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (_c *InboundOrderCreate) SetInspectionNo(v string) *InboundOrderCreate {
|
||||
_c.mutation.SetInspectionNo(v)
|
||||
return _c
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (_c *InboundOrderCreate) SetCreatedAt(v int64) *InboundOrderCreate {
|
||||
_c.mutation.SetCreatedAt(v)
|
||||
@@ -229,6 +235,9 @@ func (_c *InboundOrderCreate) check() error {
|
||||
if _, ok := _c.mutation.Quantity(); !ok {
|
||||
return &ValidationError{Name: "quantity", err: errors.New(`ent: missing required field "InboundOrder.quantity"`)}
|
||||
}
|
||||
if _, ok := _c.mutation.InspectionNo(); !ok {
|
||||
return &ValidationError{Name: "inspection_no", err: errors.New(`ent: missing required field "InboundOrder.inspection_no"`)}
|
||||
}
|
||||
if _, ok := _c.mutation.CreatedAt(); !ok {
|
||||
return &ValidationError{Name: "created_at", err: errors.New(`ent: missing required field "InboundOrder.created_at"`)}
|
||||
}
|
||||
@@ -299,6 +308,10 @@ func (_c *InboundOrderCreate) createSpec() (*InboundOrder, *sqlgraph.CreateSpec)
|
||||
_spec.SetField(inboundorder.FieldRemark, field.TypeString, value)
|
||||
_node.Remark = value
|
||||
}
|
||||
if value, ok := _c.mutation.InspectionNo(); ok {
|
||||
_spec.SetField(inboundorder.FieldInspectionNo, field.TypeString, value)
|
||||
_node.InspectionNo = value
|
||||
}
|
||||
if value, ok := _c.mutation.CreatedAt(); ok {
|
||||
_spec.SetField(inboundorder.FieldCreatedAt, field.TypeInt64, value)
|
||||
_node.CreatedAt = value
|
||||
@@ -517,6 +530,18 @@ func (u *InboundOrderUpsert) ClearRemark() *InboundOrderUpsert {
|
||||
return u
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (u *InboundOrderUpsert) SetInspectionNo(v string) *InboundOrderUpsert {
|
||||
u.Set(inboundorder.FieldInspectionNo, v)
|
||||
return u
|
||||
}
|
||||
|
||||
// UpdateInspectionNo sets the "inspection_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsert) UpdateInspectionNo() *InboundOrderUpsert {
|
||||
u.SetExcluded(inboundorder.FieldInspectionNo)
|
||||
return u
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *InboundOrderUpsert) SetCreatedAt(v int64) *InboundOrderUpsert {
|
||||
u.Set(inboundorder.FieldCreatedAt, v)
|
||||
@@ -764,6 +789,20 @@ func (u *InboundOrderUpsertOne) ClearRemark() *InboundOrderUpsertOne {
|
||||
})
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (u *InboundOrderUpsertOne) SetInspectionNo(v string) *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.SetInspectionNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateInspectionNo sets the "inspection_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsertOne) UpdateInspectionNo() *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.UpdateInspectionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *InboundOrderUpsertOne) SetCreatedAt(v int64) *InboundOrderUpsertOne {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
@@ -1178,6 +1217,20 @@ func (u *InboundOrderUpsertBulk) ClearRemark() *InboundOrderUpsertBulk {
|
||||
})
|
||||
}
|
||||
|
||||
// SetInspectionNo sets the "inspection_no" field.
|
||||
func (u *InboundOrderUpsertBulk) SetInspectionNo(v string) *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.SetInspectionNo(v)
|
||||
})
|
||||
}
|
||||
|
||||
// UpdateInspectionNo sets the "inspection_no" field to the value that was provided on create.
|
||||
func (u *InboundOrderUpsertBulk) UpdateInspectionNo() *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
s.UpdateInspectionNo()
|
||||
})
|
||||
}
|
||||
|
||||
// SetCreatedAt sets the "created_at" field.
|
||||
func (u *InboundOrderUpsertBulk) SetCreatedAt(v int64) *InboundOrderUpsertBulk {
|
||||
return u.Update(func(s *InboundOrderUpsert) {
|
||||
|
||||
Reference in New Issue
Block a user