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

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

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