From d91db25ed67488cd1f12084c5c4319946daeb855 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 29 Oct 2024 13:54:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:fmlogs=E6=89=93=E5=8D=B0=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/fmlog_detail.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue index 4d972469..bbc2c2eb 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -178,7 +178,7 @@ > - + From 7ed39bb24afae4b8d73b2d3b13fe6eaf266dd33e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 29 Oct 2024 14:24:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=E6=A0=87=E7=AD=BE=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/template/printmaterial.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/template/printmaterial.vue b/src/views/template/printmaterial.vue index 24426209..24c60183 100644 --- a/src/views/template/printmaterial.vue +++ b/src/views/template/printmaterial.vue @@ -105,13 +105,16 @@ export default { let obj = {}; obj.printer_commands = str; obj.printer_name = that.printer_name; - if(that.$INTERVAL == null){ - that.$INTERVAL = setInterval(() => { + let printerInterval = that.$TOOL.data.get('printerInterval'); + if(printerInterval==null){ + let intervalID = setInterval(() => { that.printLabel(obj) }, 2000); that.visible = false; + that.$TOOL.data.set('printerInterval',intervalID ); + }else{ - that.$message.warning("请等待当前打印任务完成") + that.$message.warning("请等待当前打印任务完成"); } }) }, @@ -123,8 +126,9 @@ export default { that.$API.wpm.prints.req(obj).then((response) => { that.count_printed ++ if (that.count_printed >= that.print_count){ - clearInterval(that.$INTERVAL); - that.$INTERVAL = null; + let printerInterval = that.$TOOL.data.get('printerInterval'); + clearInterval(printerInterval); + that.$TOOL.data.set('printerInterval',null); } }); } From 6f476c2740023016721daad40ac16a4ed64be840 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 29 Oct 2024 15:29:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E4=B8=AD=E7=89=A9?= =?UTF-8?q?=E6=96=99=E6=A0=87=E7=AD=BE=E7=9A=84=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover_form.vue | 14 +++------- src/views/wpm_gx/inm.vue | 1 - src/views/wpm_gx/inm_record.vue | 40 ++++++++++++++-------------- src/views/wpm_gx/mlog_detail.vue | 42 ++++++++++++++---------------- 4 files changed, 43 insertions(+), 54 deletions(-) diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index 9a904e4d..a40c8648 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -182,12 +182,6 @@ 取消 -