优化bug
This commit is contained in:
@@ -57,18 +57,13 @@ const Error = {
|
||||
5: '机械臂移动错误,请按功能按钮重试。',
|
||||
6: '设备处于离线状态',
|
||||
7: '设备门盖被打开',
|
||||
8: '从打印托盘上抓取光盘错误,请手动将光盘取走',
|
||||
9: '多张光盘被抓取或移动,请手动取出所有光盘后重试。',
|
||||
10: '从进盘仓到光驱的过程中,抓取错误,请手动将光盘放回进盘仓后重试。',
|
||||
11: '从进盘仓到打印托盘的过程中,抓取错误,请手动将光盘放回进盘仓后重试。',
|
||||
12: '从光驱到打印托盘的过程中,抓取错误,请手动将光盘放回光驱后重试。',
|
||||
13: '打印机需要校准',
|
||||
14: '检测墨盒错误',
|
||||
8: '从打印托盘上抓取光盘时错误,请手动将光盘取走再点击重试。',
|
||||
9: '多张光盘被抓取或移动,请检查后手动将光盘放回原处再点重试,如重试后继续错误,则需校准设备后再来重试。',
|
||||
15: '校准光盘桶失败',
|
||||
16: '等待打印完成超时',
|
||||
17: '打印托盘中未放置光盘。',
|
||||
18: '设备清洗 ',
|
||||
19: '从光驱上抓取光盘到错误,请手动将光盘取走',
|
||||
17: '从打印托盘抓取光盘时未找到光盘。',
|
||||
18: '设备清洗',
|
||||
19: '从光驱上抓取光盘时错误,请手动将光盘取走再点击重试',
|
||||
32: '其他错误',
|
||||
}
|
||||
const Error1 = {
|
||||
@@ -107,7 +102,8 @@ const CDStatus = {
|
||||
1: '没有光盘',
|
||||
2: '光驱托盘打开',
|
||||
3: '光驱未准备好',
|
||||
4: '光盘状态正常,光盘已插入'
|
||||
4: '光盘状态正常,光盘已插入',
|
||||
5: '校验中'
|
||||
}
|
||||
|
||||
// 光盘类型
|
||||
@@ -461,7 +457,7 @@ const actions = {
|
||||
let error = data.resp_info
|
||||
if (error.error) {
|
||||
let errors = error.error
|
||||
let continues = [8, 9, 10, 11, 12, 19]
|
||||
let continues = [8, 9, 10, 11, 12, 17, 19]
|
||||
for (let i = 0; i < errors.length; i++) {
|
||||
setTimeout(() => {
|
||||
let req = continues.indexOf(errors[i]) > -1 ? 'continue_task' : ''
|
||||
@@ -513,59 +509,17 @@ const actions = {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: printer_errors[error.printer_error] } })
|
||||
}
|
||||
}
|
||||
}
|
||||
// 执行错误提示
|
||||
} else if (data.resp_name === 'autoSetCDDevRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
// 执行错误提示
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '自动设置驱动失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'setCDStrongRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '设置光盘桶失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'setCDDeviceRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '设置光驱失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'cleanErrorRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '清除错误失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'CaliCDStoneRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '校准光盘桶失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'CaliPrinterRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '校准打印机失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'TransportModeRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '进入运输模式失败' } })
|
||||
}
|
||||
} else if (data.resp_name === 'RefreshCdNumRes') {
|
||||
if (data.resp_info.res_code === 0) {
|
||||
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '刷新CD数量失败' } })
|
||||
} else {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: data.resp_info.res_msg || '操作失败' } })
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 未知消息
|
||||
console.log('未知消息: ' + JSON.stringify(data))
|
||||
console.log('报错信息: ' + JSON.stringify(data))
|
||||
}
|
||||
},
|
||||
// 心跳检测重连
|
||||
|
||||
Reference in New Issue
Block a user