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

update:合并生产报工

parent 1ee48538
...@@ -1770,51 +1770,55 @@ export default { ...@@ -1770,51 +1770,55 @@ export default {
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.proVisible = false; this.proVisible = false;
if (res.msg === '操作成功') { if (res.msg === '操作成功') {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
if(item.printTemplate) { if(item.printTemplate) {
let params = {} let params = {}
res.data.forEach(datas => { res.data.forEach(datas => {
params = { params = {
reportName: 'mysql:'+item.printTemplate, reportName: 'mysql:'+item.printTemplate,
values: { values: {
proWorkorder: datas.proWorkorder, proWorkorder: datas.proWorkorder,
size: datas.size, size: datas.size,
directive: datas.directive directive: datas.directive
}
} }
} datas.packagePrintList.forEach(v => {
datas.packagePrintList.forEach(v => { params.values.packagePrint = v
params.values.packagePrint = v 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',
values: { values: {
detail: [ detail: [
{ {
barcode: item.printContents, barcode: item.printContents,
gp: item.printContents gp: item.printContents
},
],
}, },
}) ],
} },
if (res.msg === '') { })
this.$u.toast('上报成功'); }
} else { }
if (!res.msg) {
this.$u.toast('上报成功');
} else {
this.$u.toast(res.msg); this.$u.toast(res.msg);
} }
this.getTaskList(); this.getTaskList();
}
}); }
});
});
})
}, },
feedingInspectionShow() { feedingInspectionShow() {
this.feedingInspectionVisible = true; this.feedingInspectionVisible = true;
......
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