Commit a9e115e5 authored by chenzj's avatar chenzj

报工的二维码打印新增字段

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