Commit 51b1b54a authored by 张海景's avatar 张海景

update:联调打印模板接口

parent a0b8234b
......@@ -1652,13 +1652,37 @@ export default {
workorderSoSizeItemId: item.workorderSoSizeItemId,
netWeight: item.netWeight,
printContents: item.whether=='1'?item.printContents: null
})
.then((res) => {
if (res.code === 200) {
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
},
],
},
}
res.data.forEach(item => {
params = {
reportName: 'mysql:'+item.printTemplate,
values: {
proWorkorder: item.proWorkorder,
size: item.size,
directive: item.directive
}
}
item.packagePrintList.forEach(v => {
params.values.packagePrint = v
this.printPdfSocket(params)
})
})
if(item.whether=='1'){
this.printPdfSocket({
reportName: 'mysql:qrcode-50*50-2',
......@@ -1672,7 +1696,6 @@ export default {
},
})
}
} else {
this.$u.toast(res.msg);
}
......
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