From ad9930c5cf8624b8056bb9fda164fa65e66ef9cd Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 26 三月 2025 13:30:11 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop

---
 rsf-admin/src/page/asnOrder/AsnOrderList.jsx |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/rsf-admin/src/page/asnOrder/AsnOrderList.jsx b/rsf-admin/src/page/asnOrder/AsnOrderList.jsx
index 095bde5..39e22a4 100644
--- a/rsf-admin/src/page/asnOrder/AsnOrderList.jsx
+++ b/rsf-admin/src/page/asnOrder/AsnOrderList.jsx
@@ -111,29 +111,29 @@
   const inspection = () => { };
 
   const print = () => {
-    const imageUrls = ['https://www.baidu.com/img/flexible/logo/pc/result@2.png',]
-    const iframe = document.createElement('iframe');
-    iframe.style.display = 'none';
-    document.body.appendChild(iframe);
+    // const imageUrls = ['https://www.baidu.com/img/flexible/logo/pc/result@2.png',]
+    // const iframe = document.createElement('iframe');
+    // iframe.style.display = 'none';
+    // document.body.appendChild(iframe);
 
-    const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
-    iframeDoc.open();
-    iframeDoc.write('<html><head><title>Print Images</title></head><body>');
+    // const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
+    // iframeDoc.open();
+    // iframeDoc.write('<html><head><title>Print Images</title></head><body>');
 
-    // 灏嗗浘鐗囨彃鍏ュ埌 iframe 涓�
-    imageUrls.forEach((imageUrl) => {
-      iframeDoc.write(`<img src="${imageUrl}" style="margin: 10px;">`);
-    });
+    // // 灏嗗浘鐗囨彃鍏ュ埌 iframe 涓�
+    // imageUrls.forEach((imageUrl) => {
+    //   iframeDoc.write(`<img src="${imageUrl}" style="margin: 10px;">`);
+    // });
 
-    iframeDoc.write('</body></html>');
-    iframeDoc.close();
+    // iframeDoc.write('</body></html>');
+    // iframeDoc.close();
 
-    // 绛夊緟鍥剧墖鍔犺浇瀹屾垚鍚庤Е鍙戞墦鍗�
-    iframe.contentWindow.onload = () => {
-      iframe.contentWindow.print();
-      // 鎵撳嵃瀹屾垚鍚庣Щ闄� iframe
-      document.body.removeChild(iframe);
-    };
+    // // 绛夊緟鍥剧墖鍔犺浇瀹屾垚鍚庤Е鍙戞墦鍗�
+    // iframe.contentWindow.onload = () => {
+    //   iframe.contentWindow.print();
+    //   // 鎵撳嵃瀹屾垚鍚庣Щ闄� iframe
+    //   document.body.removeChild(iframe);
+    // };
   };
 
 

--
Gitblit v1.9.1