Commit 7e2e582b authored by chenzj's avatar chenzj

报工的二维码优化

parent f0af1f79
...@@ -2531,12 +2531,13 @@ export default { ...@@ -2531,12 +2531,13 @@ export default {
} }
let workunitName=''; let workunitName='';
console.log(item.taskId); console.log(item.taskId);
if (item.whether == '1') {
this.$u.api.getNextProcess({taskId:item.taskId}).then(workunit =>{ this.$u.api.getNextProcess({taskId:item.taskId}).then(workunit =>{
workunitName=workunit.data.workunitName; workunitName=workunit.data.workunitName;
console.log(item.arrangeCode,item.workorderCode,item.quantityQualify,workunitName); console.log(item.arrangeCode,item.workorderCode,item.quantityQualify,workunitName);
let aa='编排单号:'+item.arrangeCode+'\n工单号:'+item.workorderCode+'\n数量:'+item.quantityQualify+'\n下一道工序:'+workunitName; let aa='编排单号:'+item.arrangeCode+'\n工单号:'+item.workorderCode+'\n数量:'+item.quantityQualify+'\n下一道工序:'+workunitName;
console.log(aa); console.log(aa);
if (item.whether == '1') {
this.printPdfSocket({ this.printPdfSocket({
reportName: 'mysql:qrcode-50*50-2', reportName: 'mysql:qrcode-50*50-2',
values: { values: {
...@@ -2554,8 +2555,8 @@ export default { ...@@ -2554,8 +2555,8 @@ export default {
] ]
} }
}); });
} });
}); }
if (!res.msg) { if (!res.msg) {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
} else { } else {
......
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