feat: 新增工件生命周期状态流水表及工单状态流转逻辑
新增工件生命周期状态流水表,记录所有工件状态变更动作,替代原半成品质检计数源 调整工单状态流转,将「下发工单」与「开始执行」合并为「下发并开工」,自动启用关联排产 新增工件物理位置字段,区分业务位置与实际物理工位,解决工位对账滞后问题 统一物料类别处理,避免 WMS 同步时覆盖合法值或错误设置为 0 移除已废弃的返修状态,更新相关显示与逻辑
This commit is contained in:
@@ -78,6 +78,8 @@ type Tx struct {
|
||||
Workpiece *WorkpieceClient
|
||||
// WorkpieceBind is the client for interacting with the WorkpieceBind builders.
|
||||
WorkpieceBind *WorkpieceBindClient
|
||||
// WorkpieceLifecycleLog is the client for interacting with the WorkpieceLifecycleLog builders.
|
||||
WorkpieceLifecycleLog *WorkpieceLifecycleLogClient
|
||||
// WorkpieceProcess is the client for interacting with the WorkpieceProcess builders.
|
||||
WorkpieceProcess *WorkpieceProcessClient
|
||||
|
||||
@@ -244,6 +246,7 @@ func (tx *Tx) init() {
|
||||
tx.WorkOrder = NewWorkOrderClient(tx.config)
|
||||
tx.Workpiece = NewWorkpieceClient(tx.config)
|
||||
tx.WorkpieceBind = NewWorkpieceBindClient(tx.config)
|
||||
tx.WorkpieceLifecycleLog = NewWorkpieceLifecycleLogClient(tx.config)
|
||||
tx.WorkpieceProcess = NewWorkpieceProcessClient(tx.config)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user