From e764047684657f7ae9ba2b08489eda4dd7015e32 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 31 五月 2023 15:12:53 +0800
Subject: [PATCH] #盘点单导出Excel

---
 src/main/webapp/static/js/orderCheck/orderCheck.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/orderCheck/orderCheck.js b/src/main/webapp/static/js/orderCheck/orderCheck.js
index c27b889..22bd667 100644
--- a/src/main/webapp/static/js/orderCheck/orderCheck.js
+++ b/src/main/webapp/static/js/orderCheck/orderCheck.js
@@ -168,6 +168,8 @@
             });
         }else if (layEvent === 'wrkTrace'){
             showWrkTrace(data.id);
+        }else if (layEvent === 'printExcel'){
+            printExcel(data);
         }
     });
     //鍗曟嵁鏄庣粏琛� 瀹℃牳鎸夐挳
@@ -764,5 +766,16 @@
         console.log(obj.data)
     })
 
+    function printExcel(data){
+        layer.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){
+
+           // window.open("http://localhost:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo);
+            layer.closeAll();
+            layer.load(1, {shade: [0.1,'#fff']});
+            location.href = "http://localhost:8082/stwms/orderCheck/printExport/auth?orderNo="+data.orderNo;
+            layer.closeAll('loading');
+        });
+    }
+
 
 });

--
Gitblit v1.9.1