This commit is contained in:
24kycj
2025-07-04 08:53:36 +08:00
parent 3e0f72e334
commit ad73c96960
2 changed files with 40 additions and 39 deletions
+2 -1
View File
@@ -233,6 +233,7 @@ const defaultData = {
system_name: '', //主机名称 system_name: '', //主机名称
is_set_cddev: 0, is_set_cddev: 0,
serial_no: '', //设备序列号 serial_no: '', //设备序列号
test_use: '', //试用天数
// 左右光盘桶 // 左右光盘桶
strong_list: [ strong_list: [
{ {
@@ -481,7 +482,7 @@ const actions = {
if (req) { if (req) {
commit('setData', { name: 'printer_error', data: { type: 'error', confirm: Error[errors[i]], req: req, noJump: noJump, isClear: isClear } }) commit('setData', { name: 'printer_error', data: { type: 'error', confirm: Error[errors[i]], req: req, noJump: noJump, isClear: isClear } })
} else { } else {
commit('setData', { name: 'printer_error', data: { type: 'error', notify: Error[errors[i]], isClear: isClear } }) commit('setData', { name: 'printer_error', data: { type: 'error', notify: Error[errors[i]], isClear: isClear, noJump: noJump } })
} }
}, 500) }, 500)
} }
+38 -38
View File
@@ -156,11 +156,7 @@ export default {
}, },
{ {
id: 5, id: 5,
name: '校准打印头' name: '对齐打印机墨盒'
},
{
id: 6,
name: '清洗打印头'
} }
], ],
actionList: [ actionList: [
@@ -193,6 +189,10 @@ export default {
{ {
id: 5, id: 5,
name: '进入循环模式' name: '进入循环模式'
},
{
id: 6,
name: '清洗打印机墨头'
} }
], ],
refreshTime: 10, refreshTime: 10,
@@ -268,11 +268,7 @@ export default {
}, },
{ {
id: 5, id: 5,
name: '校准打印头' name: '对齐打印机墨盒'
},
{
id: 6,
name: '清洗打印头'
} }
] ]
this.cdOptions = [ this.cdOptions = [
@@ -301,6 +297,10 @@ export default {
{ {
id: 5, id: 5,
name: '进入循环模式' name: '进入循环模式'
},
{
id: 6,
name: '清洗打印机墨头'
} }
] ]
} else { } else {
@@ -323,11 +323,7 @@ export default {
}, },
{ {
id: 5, id: 5,
name: '校准打印头' name: '对齐打印机墨盒'
},
{
id: 6,
name: '清洗打印头'
} }
] ]
this.cdOptions = [ this.cdOptions = [
@@ -364,6 +360,10 @@ export default {
{ {
id: 5, id: 5,
name: '进入循环模式' name: '进入循环模式'
},
{
id: 6,
name: '清洗打印机墨头'
} }
] ]
} }
@@ -546,29 +546,6 @@ export default {
}) })
}) })
break break
case 6:
// 清洗墨盒上的打印头
that
.$confirm('请在进盘仓放入一张空白的可打印光盘,再点击确定', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CleanPrinterHead',
req_type: 2,
req_info: {}
})
.then(() => {
that.$message({
message: '已发送指令',
type: 'success'
})
})
})
break
} }
}, },
// 设置设备 // 设置设备
@@ -732,6 +709,29 @@ export default {
}) })
}) })
break break
case 6:
// 清洗墨盒上的打印头
that
.$confirm('请在进盘仓放入一张空白的可打印光盘,再点击确定', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.$store
.dispatch('chat/websocketsend', {
req_name: 'CleanPrinterHead',
req_type: 2,
req_info: {}
})
.then(() => {
that.$message({
message: '已发送指令',
type: 'success'
})
})
})
break
} }
}, },
cdChange(index, e) { cdChange(index, e) {