fix:标签打印模板调整
This commit is contained in:
parent
6270b2344d
commit
6f5bb4a897
|
@ -465,6 +465,8 @@ export default {
|
|||
if(type=='wm'){
|
||||
let params = {};
|
||||
params.tid = row.id;
|
||||
let materialname = row.material_.name + '|' + row.material_.process_name;
|
||||
let modelspecification = row.material_.model + '|' + row.material_.specification;
|
||||
if(that.route_code=='reyatuihuo'||that.route_code=='banduangunyuan'){
|
||||
params.label_template_name = '工序带板段号打印模板';
|
||||
that.wprParams.wm = row.id;
|
||||
|
@ -491,7 +493,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
params.extra_data={count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]};
|
||||
params.extra_data={materialname:materialname,modelspecification:modelspecification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]};
|
||||
that.apiObjPrint.req(params).then((res) => {
|
||||
let obj = {};
|
||||
obj.printer_commands = res.commands;
|
||||
|
|
|
@ -466,7 +466,8 @@ export default {
|
|||
if(type=='wm'){
|
||||
let params = {};
|
||||
params.tid = row.id;
|
||||
console.log('route_code',that.route_code);
|
||||
let materialname = row.material_.name + '|' + row.material_.process_name;
|
||||
let modelspecification = row.material_.model + '|' + row.material_.specification;
|
||||
if(that.route_code=='tuomoceliang'||that.route_code=='reyatuihuo'){
|
||||
console.log('route_code',that.route_code);
|
||||
params.label_template_name = '工序带板段号打印模板';
|
||||
|
@ -494,7 +495,7 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
params.extra_data={count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]};
|
||||
params.extra_data={materialname:materialname,modelspecification:modelspecification,count:row.count,slicecount:slice_count,numbers0:numbers[0],numbers1:numbers[1],numbers2:numbers[2],numbers3:numbers[3],numbers4:numbers[4],numbers5:numbers[5],numbers6:numbers[6]};
|
||||
that.apiObjPrint.req(params).then((res) => {
|
||||
let obj = {};
|
||||
obj.printer_commands = res.commands;
|
||||
|
|
Loading…
Reference in New Issue