From e5ea2c30e33f280ffc8a0ce78224ef99fb6679b1 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 30 十二月 2025 08:16:06 +0800
Subject: [PATCH] 在制品报表导出修改

---
 north-glass-erp/northglass-erp/src/hook/queue.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/hook/queue.js b/north-glass-erp/northglass-erp/src/hook/queue.js
index 594105b..c4503dc 100644
--- a/north-glass-erp/northglass-erp/src/hook/queue.js
+++ b/north-glass-erp/northglass-erp/src/hook/queue.js
@@ -2,7 +2,7 @@
  * Queue hook
  * 鎵撳嵃闃熷垪鏂规硶
  */
-export default function QueuePrinter(list,hiprintTemplate,columnsNum){
+export default function QueuePrinter(list,hiprintTemplate,columnsNum,printer){
     const queue = JSON.parse(JSON.stringify(list));
     // 娣诲姞鎵撳嵃浠诲姟
     this.printJob = function(job) {
@@ -13,8 +13,7 @@
     this.tick = setInterval(()=>{
 
                 if(typeof queue === 'object' && Array.isArray(queue)){
-                    if (queue.length > 0) {
-                        hiprintTemplate.value.print2(queue[0])
+                    if (queue.length > 0) {hiprintTemplate.value.print2(queue[0],{printer:printer})
                         queue.shift(); // 鎵撳嵃浠诲姟锛屽苟浠庨槦鍒椾腑绉婚櫎
                     }else{
                         clearInterval(this.tick)
@@ -29,6 +28,6 @@
                 }
 
         },
-        5000)
+        500)
 };
 

--
Gitblit v1.8.0