From 77c7984fb636f81a87208aea2bcffc701f6419e8 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 23 十月 2024 16:01:26 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/src/hook/queue.js |    5 +++--
 1 files changed, 3 insertions(+), 2 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..1dab2e2 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) {
@@ -14,7 +14,8 @@
 
                 if(typeof queue === 'object' && Array.isArray(queue)){
                     if (queue.length > 0) {
-                        hiprintTemplate.value.print2(queue[0])
+                        console.log(printer)
+                        hiprintTemplate.value.print2(queue[0],{printer:printer})
                         queue.shift(); // 鎵撳嵃浠诲姟锛屽苟浠庨槦鍒椾腑绉婚櫎
                     }else{
                         clearInterval(this.tick)

--
Gitblit v1.8.0