Commit 9f50868e authored by 张海景's avatar 张海景

update:修改打印的判断逻辑

parent 945cbeb8
...@@ -1622,6 +1622,10 @@ export default { ...@@ -1622,6 +1622,10 @@ export default {
return; return;
} }
} }
if((item.printTemplate || item.whether=='1') && !this.vuex_printConnect) {
this.$u.toast('打印机连接失败');
return
}
//工单 //工单
this.$u.api this.$u.api
.feedback({ .feedback({
...@@ -1657,10 +1661,6 @@ export default { ...@@ -1657,10 +1661,6 @@ export default {
if (res.code === 200) { if (res.code === 200) {
if (res.msg === '操作成功') { if (res.msg === '操作成功') {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
if((item.printTemplate || item.whether=='1') && !this.vuex_printConnect) {
this.$u.toast('打印机连接失败');
return
}
this.open = false; this.open = false;
if(item.printTemplate) { if(item.printTemplate) {
let params = {} let params = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment