From a6ac97a906406959615b8527cd065fe4148d4d25 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 8 Dec 2025 14:15:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E5=BA=8F=E5=B8=A6=E6=9D=BF?= =?UTF-8?q?=E6=AE=B5=E5=8F=B7=E6=89=93=E5=8D=B0=E6=A8=A1=E6=9D=BF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=87=E7=89=87=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/inmIn.vue | 6 ++++-- src/views/wpm_bx/inmOut.vue | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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;