From e50fa16b6dbc4e7c50d5fbdbc04d2a556ca01c4e Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 02 十二月 2024 11:26:36 +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