Commit abd6aaf0 authored by 沈翠玲's avatar 沈翠玲

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-pad into dev

parents 997697c7 a9e115e5
...@@ -161,6 +161,7 @@ const install = (Vue, vm) => { ...@@ -161,6 +161,7 @@ const install = (Vue, vm) => {
params params
), ),
/** /**
* 工艺工序相关API * 工艺工序相关API
*/ */
...@@ -277,6 +278,10 @@ const install = (Vue, vm) => { ...@@ -277,6 +278,10 @@ const install = (Vue, vm) => {
genCode: (ruleCode) => vm.$u.get(config.adminPath + genCode: (ruleCode) => vm.$u.get(config.adminPath +
'/system/autocode/get/' + ruleCode '/system/autocode/get/' + ruleCode
), ),
//获取最后一道工序
getNextProcess: (params = {}) =>
vm.$u.get(config.adminPath + '/mobile/pro/protask/feedBackNextProcess', params),
//首页相关api //首页相关api
......
...@@ -2529,26 +2529,33 @@ export default { ...@@ -2529,26 +2529,33 @@ export default {
}); });
}); });
} }
console.log('item', item) let workunitName='';
if (item.whether == '1') { console.log(item.taskId);
this.printPdfSocket({ this.$u.api.getNextProcess({taskId:item.taskId}).then(workunit =>{
reportName: 'mysql:qrcode-50*50-2', workunitName=workunit.data.workunitName;
values: { console.log(item.arrangeCode,item.workorderCode,item.quantityQualify,workunitName);
detail: [ let aa='编排单号:'+item.arrangeCode+'\n工单号:'+item.workorderCode+'\n数量:'+item.quantityQualify+'\n下一道工序:'+workunitName;
{ console.log(aa);
barcode: item.printContents, if (item.whether == '1') {
showText: '单号:'+item.printContents, this.printPdfSocket({
gp: 1 reportName: 'mysql:qrcode-50*50-2',
}, values: {
{ detail: [
barcode: item.printContents, {
showText: '单号:'+item.printContents, barcode: item.printContents,
gp: 1 showText: '编排单号:'+item.arrangeCode+'\n数量:'+item.quantityQualify+'\n工单号:'+item.workorderCode+'\n下一道工序:'+workunitName,
} gp: 1
] },
} {
}); barcode: item.printContents,
} showText: '编排单号:'+item.arrangeCode+'\n数量:'+item.quantityQualify+'\n工单号:'+item.workorderCode+'\n下一道工序:'+workunitName,
gp: 1
}
]
}
});
}
});
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