feat: 新增收集式校验错误弹窗及工位报警语音播报
新增 ErrorListDialog 组件用于统一展示结构化校验错误信息,实现报错一次收全;新增工位报警语音播报功能,通过浏览器 SpeechSynthesis 播放本工位相关报警;调整物料类别及序列号字段文案,移除「其他」类别;新增工单实际开始字段及采集方式配置;优化 AGV 及 PlcSend 页签刷新逻辑;新增看板物料追溯及工位报警接口;删除 PLC 强制写 M 位及相关测试代码;同步数据库字段注释及补丁。
This commit is contained in:
@@ -472,7 +472,7 @@ var (
|
||||
{Name: "spec", Type: field.TypeString, Size: 128, Comment: "规格型号", Default: ""},
|
||||
{Name: "unit", Type: field.TypeString, Size: 32, Comment: "计量单位", Default: ""},
|
||||
{Name: "description", Type: field.TypeString, Size: 255, Comment: "说明", Default: ""},
|
||||
{Name: "item_type", Type: field.TypeInt, Comment: "物料类别 1原材料/3成品/4其他(半成品不是物料物料类别)", Default: 1},
|
||||
{Name: "item_type", Type: field.TypeInt, Comment: "物料类别 1原材料/3成品(半成品不是物料类别,「其他」已移除)", Default: 1},
|
||||
{Name: "manage_mode", Type: field.TypeInt, Comment: "类型 1结构件/2电气件/3其他(仅分类,不决定SN行为)", Default: 1},
|
||||
{Name: "sn_mode", Type: field.TypeInt, Comment: "是否逐件SN管理 0未选择(必填)/1序列号=是(录SN)/2序列号=否(不录SN)", Default: 0},
|
||||
{Name: "template_code", Type: field.TypeString, Size: 64, Comment: "模板编码", Default: ""},
|
||||
@@ -698,8 +698,7 @@ var (
|
||||
{Name: "flow_id", Type: field.TypeInt, Nullable: true, Comment: "所属工艺流程图ID"},
|
||||
{Name: "seq", Type: field.TypeInt, Comment: "步骤序号", Default: 1},
|
||||
{Name: "name", Type: field.TypeString, Size: 128, Comment: "步骤名称"},
|
||||
{Name: "collect_type", Type: field.TypeString, Size: 20, Comment: "AUTO/MANUAL/NONE", Default: "NONE"},
|
||||
{Name: "is_torque", Type: field.TypeBool, Comment: "是否拧紧采集", Default: false},
|
||||
{Name: "collect_type", Type: field.TypeString, Size: 20, Comment: "采集方式 AUTO(拧紧枪自动)/MANUAL(手填)/SCAN(扫码,与手填等价采一串字符串)/NONE(仅记录)", Default: "NONE"},
|
||||
{Name: "need_check", Type: field.TypeBool, Comment: "是否需要检测确认(报工前须检验通过)", Default: false},
|
||||
{Name: "need_operator_sign", Type: field.TypeBool, Comment: "是否需要操作工签字(报工前须签字确认)", Default: false},
|
||||
{Name: "need_inspector_sign", Type: field.TypeBool, Comment: "是否需要检验员签字(审核通过并签字后放行)", Default: false},
|
||||
@@ -1142,6 +1141,7 @@ var (
|
||||
{Name: "plan_end", Type: field.TypeTime, Nullable: true, Comment: "计划结束"},
|
||||
{Name: "context", Type: field.TypeJSON, Nullable: true, Comment: "扩展字段", SchemaType: map[string]string{"postgres": "jsonb"}},
|
||||
{Name: "completed_at", Type: field.TypeTime, Nullable: true},
|
||||
{Name: "actual_start", Type: field.TypeTime, Nullable: true, Comment: "实际开始"},
|
||||
{Name: "created_at", Type: field.TypeTime},
|
||||
{Name: "updated_at", Type: field.TypeTime, Nullable: true},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user