diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 63331af3..7df7f0d0 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -557,9 +557,10 @@ export default { params.tid = row.id; let materialname = row.material_.name + '|' + row.material_.process_name; let specification = row.material_.specification; - if(that.route_code=='reyatuihuo'||that.route_code=='banduangunyuan'){ + if(that.route_code=='reyatuihuo'||that.route_code=='banduangunyuan'||that.route_code=='tuomoceliang'){ params.label_template_name = '工序带板段号打印模板'; that.wprParams.wm = row.id; + let totalcount = 0; let numbers = ['','','','','','','']; this.$API.wpm.wpr.list.req(that.wprParams).then((res) => { let leng = res.length; @@ -571,6 +572,7 @@ export default { } } if(leng>0){ + totalcount = leng*slice_count; let nums = leng/3; for(let i=0;i { let obj = {}; obj.printer_commands = res.commands; diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index 6d75e000..1da2472c 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -586,10 +586,11 @@ export default { params.tid = row.id; let materialname = row.material_.name + '|' + row.material_.process_name; let specification = row.material_.specification; - if(that.route_code=='tuomoceliang'||that.route_code=='reyatuihuo'){ + if(that.route_code=='tuomoceliang'||that.route_code=='reyatuihuo'||that.route_code=='tuomoceliang'){ console.log('route_code',that.route_code); params.label_template_name = '工序带板段号打印模板'; that.wprParams.wm = row.id; + let totalcount = 0; let numbers = ['','','','','','','']; this.$API.wpm.wpr.list.req(that.wprParams).then((res) => { let leng = res.length; @@ -601,6 +602,7 @@ export default { } } if(leng>0){ + totalcount = leng*slice_count; let nums = leng/3; for(let i=0;i { let obj = {}; obj.printer_commands = res.commands;