Commit 8a1821eb authored by 张海景's avatar 张海景

update:修改生产打印模板判断条件

parent a091d076
...@@ -1662,17 +1662,8 @@ export default { ...@@ -1662,17 +1662,8 @@ export default {
this.open = false; this.open = false;
if (res.msg === '操作成功') { if (res.msg === '操作成功') {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
let params = { if(item.printTemplate) {
reportName: 'mysql:qrcode-50*50-2', let params = {}
values: {
detail: [
{
barcode: item.printContents,
gp: item.printContents
},
],
},
}
res.data.forEach(item => { res.data.forEach(item => {
params = { params = {
reportName: 'mysql:'+item.printTemplate, reportName: 'mysql:'+item.printTemplate,
...@@ -1687,6 +1678,7 @@ export default { ...@@ -1687,6 +1678,7 @@ export default {
this.printPdfSocket(params) this.printPdfSocket(params)
}) })
}) })
}
if(item.whether=='1'){ if(item.whether=='1'){
this.printPdfSocket({ this.printPdfSocket({
reportName: 'mysql:qrcode-50*50-2', reportName: 'mysql:qrcode-50*50-2',
......
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