fix:玻纤原料单件打印时添加材料名称
This commit is contained in:
parent
3164bca91a
commit
3ae9e207f3
|
|
@ -615,6 +615,7 @@ export default {
|
|||
},
|
||||
//打印物料标签
|
||||
printMaterial(row,type){
|
||||
console.log('打印物料标签',row);
|
||||
let that = this;
|
||||
let is_mainso = this.url_code.includes('mainso');
|
||||
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){
|
||||
|
|
@ -635,7 +636,7 @@ export default {
|
|||
let params = {};
|
||||
let name = that.printMaterialName.split('|')[0];
|
||||
params.label_template_name = is_mainso?'原料单件打印模板': '单件打印模板';
|
||||
params.data = {number:row.number,name:name};
|
||||
params.data = {number:row.number,name:name,oname:that.printMaterialName};
|
||||
that.$API.cm.labeltemplate.commands.req(params).then((res) => {
|
||||
let obj = {};
|
||||
obj.printer_commands = res.commands;
|
||||
|
|
|
|||
Loading…
Reference in New Issue