Commit b0617d60 authored by 张海景's avatar 张海景

update:修改打印提示逻辑

parent d4b28719
......@@ -1607,10 +1607,6 @@ export default {
this.open = false;
},
handleSubmitfeedback() {
if (!this.vuex_printConnect) {
this.$u.toast('打印机连接失败');
return
}
this.open = true;
this.feedbackForms.forEach((item) => {
if (item.quantityQualify === 0 && item.quantityUnqualify === 0) {
......@@ -1662,6 +1658,12 @@ export default {
this.open = false;
if (res.msg === '操作成功') {
this.$u.toast('上报成功');
if(item.printTemplate || item.whether=='1') {
if (!this.vuex_printConnect) {
this.$u.toast('打印机连接失败');
return
}
}
if(item.printTemplate) {
let params = {}
res.data.forEach(item => {
......
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