feat: 新增收集式校验错误弹窗及工位报警语音播报
新增 ErrorListDialog 组件用于统一展示结构化校验错误信息,实现报错一次收全;新增工位报警语音播报功能,通过浏览器 SpeechSynthesis 播放本工位相关报警;调整物料类别及序列号字段文案,移除「其他」类别;新增工单实际开始字段及采集方式配置;优化 AGV 及 PlcSend 页签刷新逻辑;新增看板物料追溯及工位报警接口;删除 PLC 强制写 M 位及相关测试代码;同步数据库字段注释及补丁。
This commit is contained in:
@@ -133,6 +133,12 @@ export const offlineFinish = (data) => request.post('/api/workpiece/done', data)
|
||||
// → {hasMismatch, stationNo, plcBit, detail, options, graceWindow}
|
||||
export const mismatchCheck = (data) => request.post('/api/plc/mismatch/check', data)
|
||||
|
||||
// ---------- 本工位相关报警(谁受影响谁播报,2026-10-20) ----------
|
||||
// 终端 30 秒轮询:?stationNo=&minutes= → [ {id,type,level,target,title,content,createdAt} ]
|
||||
// 仅返回最近 minutes 分钟内 UNREAD 且命中「工位N」的报警;MES 不可达静默返回 []
|
||||
export const getStationAlerts = (stationNo, minutes = 10) =>
|
||||
request.get('/api/alerts/station', { params: { stationNo, minutes } })
|
||||
|
||||
// ---------- 工位停单 / 恢复接单(代理 MES 内部 API) ----------
|
||||
// 停单/恢复:{stationNo, paused, reason}(paused=true 停止接单,false 恢复)
|
||||
export const pauseStation = (data) => request.post('/api/station/pause', data)
|
||||
|
||||
Reference in New Issue
Block a user