feat: 新增收集式校验错误弹窗及工位报警语音播报

新增 ErrorListDialog 组件用于统一展示结构化校验错误信息,实现报错一次收全;新增工位报警语音播报功能,通过浏览器 SpeechSynthesis 播放本工位相关报警;调整物料类别及序列号字段文案,移除「其他」类别;新增工单实际开始字段及采集方式配置;优化 AGV 及 PlcSend 页签刷新逻辑;新增看板物料追溯及工位报警接口;删除 PLC 强制写 M 位及相关测试代码;同步数据库字段注释及补丁。
This commit is contained in:
SunYF
2026-10-20 16:36:26 +08:00
parent f743cf21fb
commit b0c048d9aa
126 changed files with 4603 additions and 1639 deletions
+9 -13
View File
@@ -1206,40 +1206,36 @@ func init() {
processstep.DefaultCollectType = processstepDescCollectType.Default.(string)
// processstep.CollectTypeValidator is a validator for the "collectType" field. It is called by the builders before save.
processstep.CollectTypeValidator = processstepDescCollectType.Validators[0].(func(string) error)
// processstepDescIsTorque is the schema descriptor for isTorque field.
processstepDescIsTorque := processstepFields[5].Descriptor()
// processstep.DefaultIsTorque holds the default value on creation for the isTorque field.
processstep.DefaultIsTorque = processstepDescIsTorque.Default.(bool)
// processstepDescNeedCheck is the schema descriptor for needCheck field.
processstepDescNeedCheck := processstepFields[6].Descriptor()
processstepDescNeedCheck := processstepFields[5].Descriptor()
// processstep.DefaultNeedCheck holds the default value on creation for the needCheck field.
processstep.DefaultNeedCheck = processstepDescNeedCheck.Default.(bool)
// processstepDescNeedOperatorSign is the schema descriptor for needOperatorSign field.
processstepDescNeedOperatorSign := processstepFields[7].Descriptor()
processstepDescNeedOperatorSign := processstepFields[6].Descriptor()
// processstep.DefaultNeedOperatorSign holds the default value on creation for the needOperatorSign field.
processstep.DefaultNeedOperatorSign = processstepDescNeedOperatorSign.Default.(bool)
// processstepDescNeedInspectorSign is the schema descriptor for needInspectorSign field.
processstepDescNeedInspectorSign := processstepFields[8].Descriptor()
processstepDescNeedInspectorSign := processstepFields[7].Descriptor()
// processstep.DefaultNeedInspectorSign holds the default value on creation for the needInspectorSign field.
processstep.DefaultNeedInspectorSign = processstepDescNeedInspectorSign.Default.(bool)
// processstepDescNeedAudit is the schema descriptor for needAudit field.
processstepDescNeedAudit := processstepFields[9].Descriptor()
processstepDescNeedAudit := processstepFields[8].Descriptor()
// processstep.DefaultNeedAudit holds the default value on creation for the needAudit field.
processstep.DefaultNeedAudit = processstepDescNeedAudit.Default.(bool)
// processstepDescAuditRole is the schema descriptor for auditRole field.
processstepDescAuditRole := processstepFields[10].Descriptor()
processstepDescAuditRole := processstepFields[9].Descriptor()
// processstep.DefaultAuditRole holds the default value on creation for the auditRole field.
processstep.DefaultAuditRole = processstepDescAuditRole.Default.(string)
// processstep.AuditRoleValidator is a validator for the "auditRole" field. It is called by the builders before save.
processstep.AuditRoleValidator = processstepDescAuditRole.Validators[0].(func(string) error)
// processstepDescRemark is the schema descriptor for remark field.
processstepDescRemark := processstepFields[12].Descriptor()
processstepDescRemark := processstepFields[11].Descriptor()
// processstep.DefaultRemark holds the default value on creation for the remark field.
processstep.DefaultRemark = processstepDescRemark.Default.(string)
// processstep.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
processstep.RemarkValidator = processstepDescRemark.Validators[0].(func(string) error)
// processstepDescCreatedAt is the schema descriptor for createdAt field.
processstepDescCreatedAt := processstepFields[13].Descriptor()
processstepDescCreatedAt := processstepFields[12].Descriptor()
// processstep.DefaultCreatedAt holds the default value on creation for the createdAt field.
processstep.DefaultCreatedAt = processstepDescCreatedAt.Default.(func() time.Time)
// processstepDescID is the schema descriptor for id field.
@@ -1809,11 +1805,11 @@ func init() {
// workorder.StatusValidator is a validator for the "status" field. It is called by the builders before save.
workorder.StatusValidator = workorderDescStatus.Validators[0].(func(string) error)
// workorderDescCreatedAt is the schema descriptor for createdAt field.
workorderDescCreatedAt := workorderFields[21].Descriptor()
workorderDescCreatedAt := workorderFields[22].Descriptor()
// workorder.DefaultCreatedAt holds the default value on creation for the createdAt field.
workorder.DefaultCreatedAt = workorderDescCreatedAt.Default.(func() time.Time)
// workorderDescUpdatedAt is the schema descriptor for updatedAt field.
workorderDescUpdatedAt := workorderFields[22].Descriptor()
workorderDescUpdatedAt := workorderFields[23].Descriptor()
// workorder.DefaultUpdatedAt holds the default value on creation for the updatedAt field.
workorder.DefaultUpdatedAt = workorderDescUpdatedAt.Default.(func() time.Time)
// workorder.UpdateDefaultUpdatedAt holds the default value on update for the updatedAt field.