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

update:联调打印模板接口

parent a0b8234b
...@@ -1651,32 +1651,55 @@ export default { ...@@ -1651,32 +1651,55 @@ export default {
workorderSoDirectiveId: item.workorderSoDirectiveId, workorderSoDirectiveId: item.workorderSoDirectiveId,
workorderSoSizeItemId: item.workorderSoSizeItemId, workorderSoSizeItemId: item.workorderSoSizeItemId,
netWeight: item.netWeight, netWeight: item.netWeight,
printContents: item.whether=='1'?item.printContents: null printContents: item.whether=='1'?item.printContents: null
}) })
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.open = false; this.open = false;
if (res.msg === '操作成功') { if (res.msg === '操作成功') {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
if(item.whether=='1'){ let params = {
this.printPdfSocket({ reportName: 'mysql:qrcode-50*50-2',
reportName: 'mysql:qrcode-50*50-2', values: {
values: { detail: [
detail: [ {
{ barcode: item.printContents,
barcode: item.printContents, gp: item.printContents
gp: item.printContents },
}, ],
], },
}, }
}) res.data.forEach(item => {
} params = {
reportName: 'mysql:'+item.printTemplate,
} else { values: {
this.$u.toast(res.msg); proWorkorder: item.proWorkorder,
} size: item.size,
this.getTaskList(); 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',
values: {
detail: [
{
barcode: item.printContents,
gp: item.printContents
},
],
},
})
}
} else {
this.$u.toast(res.msg);
}
this.getTaskList();
} }
}); });
}); });
......
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