feat&refactor: 2026-09-22 半成品业务模型重构与功能完善

- 重构半成品流转逻辑:进度权威源改为 workpiece.currentStationNo,新增 completedText 快照字段,废除 doneProcessCodes
- 清理物料品类中半成品类型,存量数据幂等清理,调整物料管理方式文案为批次/序列号
- 新增日排产状态专用更新接口,修复工单工艺校验逻辑
- 新增物料档案代理接口、深路径文件下载接口
- 优化前端界面文案与工位选择逻辑,补充追溯页半成品流转展示
- 调整WMS端物料品类校验与入库接口契约
- 新增/更新数据库表结构与实体类代码
This commit is contained in:
SunYF
2026-09-22 14:42:52 +08:00
parent 09cfc6ca1c
commit d3eda6b588
49 changed files with 1155 additions and 1122 deletions
+10 -4
View File
@@ -1171,26 +1171,32 @@ func init() {
semiflow.DefaultOrderNo = semiflowDescOrderNo.Default.(string)
// semiflow.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
semiflow.OrderNoValidator = semiflowDescOrderNo.Validators[0].(func(string) error)
// semiflowDescCompletedText is the schema descriptor for completedText field.
semiflowDescCompletedText := semiflowFields[4].Descriptor()
// semiflow.DefaultCompletedText holds the default value on creation for the completedText field.
semiflow.DefaultCompletedText = semiflowDescCompletedText.Default.(string)
// semiflow.CompletedTextValidator is a validator for the "completedText" field. It is called by the builders before save.
semiflow.CompletedTextValidator = semiflowDescCompletedText.Validators[0].(func(string) error)
// semiflowDescAction is the schema descriptor for action field.
semiflowDescAction := semiflowFields[4].Descriptor()
semiflowDescAction := semiflowFields[5].Descriptor()
// semiflow.DefaultAction holds the default value on creation for the action field.
semiflow.DefaultAction = semiflowDescAction.Default.(string)
// semiflow.ActionValidator is a validator for the "action" field. It is called by the builders before save.
semiflow.ActionValidator = semiflowDescAction.Validators[0].(func(string) error)
// semiflowDescTargetDock is the schema descriptor for targetDock field.
semiflowDescTargetDock := semiflowFields[5].Descriptor()
semiflowDescTargetDock := semiflowFields[6].Descriptor()
// semiflow.DefaultTargetDock holds the default value on creation for the targetDock field.
semiflow.DefaultTargetDock = semiflowDescTargetDock.Default.(string)
// semiflow.TargetDockValidator is a validator for the "targetDock" field. It is called by the builders before save.
semiflow.TargetDockValidator = semiflowDescTargetDock.Validators[0].(func(string) error)
// semiflowDescOperator is the schema descriptor for operator field.
semiflowDescOperator := semiflowFields[6].Descriptor()
semiflowDescOperator := semiflowFields[7].Descriptor()
// semiflow.DefaultOperator holds the default value on creation for the operator field.
semiflow.DefaultOperator = semiflowDescOperator.Default.(string)
// semiflow.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
semiflow.OperatorValidator = semiflowDescOperator.Validators[0].(func(string) error)
// semiflowDescCreatedAt is the schema descriptor for createdAt field.
semiflowDescCreatedAt := semiflowFields[7].Descriptor()
semiflowDescCreatedAt := semiflowFields[8].Descriptor()
// semiflow.DefaultCreatedAt holds the default value on creation for the createdAt field.
semiflow.DefaultCreatedAt = semiflowDescCreatedAt.Default.(func() time.Time)
// semiflowDescID is the schema descriptor for id field.