From 46adcbf7494340a495539708210bb39110bdc33b Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期六, 29 十一月 2025 17:35:03 +0800
Subject: [PATCH] 快速登记、化验及称重作业页面提交1

---
 fzzy-igdss-web/src/main/resources/static/inout/inout-print.js |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/inout/inout-print.js b/fzzy-igdss-web/src/main/resources/static/inout/inout-print.js
new file mode 100644
index 0000000..56d0513
--- /dev/null
+++ b/fzzy-igdss-web/src/main/resources/static/inout/inout-print.js
@@ -0,0 +1,53 @@
+/**
+ * 鎵撳嵃杩囩鍗�
+ */
+printWeight = function (htmlStr) {
+    // var LODOP = CLODOP
+    var LODOP = getLodop();
+    if ("5016" == companyId || "5326" == companyId || "5347" == companyId || "5352" == companyId) {
+        LODOP.PRINT_INIT("绉伴噸鍗�");
+        //鍊间负1--绾靛悜鎵撳嵃锛屽浐瀹氱焊寮�;
+        // 鍊间负2--妯悜鎵撳嵃锛屽浐瀹氱焊寮�;
+        // 鍊间负3--绾靛悜鎵撳嵃锛屽浐瀹氬搴︼紝楂樺害鎸夋墦鍗板唴瀹圭殑楂樺害鑷�傚簲;
+        LODOP.SET_PRINT_PAGESIZE(1, 1050, 1400, "");
+        LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
+        LODOP.PREVIEW();
+    } else {
+        LODOP.PRINT_INIT("杩囩鍗�");
+        //LODOP.SET_PRINT_PAGESIZE(1, 0, '90mm', "A4");
+        LODOP.SET_PRINT_PAGESIZE(1, '210mm', '140mm', "A4");
+        LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
+        //鎵撳嵃澶氫唤
+        // LODOP.SET_PRINT_COPIES(3);
+        LODOP.PREVIEW();
+    }
+};
+
+//鎵撳嵃鎵︽牱鍗曟潯褰㈢爜,checkId-鏉″舰鐮侊紝html-搴撳尯鍚嶇О鍜屾墻鏍锋椂闂�
+printBar = function (checkId, html) {
+    var LODOP = getLodop();
+
+    if(companyId && "5317" == companyId){
+        LODOP.PRINT_INIT("");
+        LODOP.SET_PRINT_PAGESIZE(1, '60mm', '40mm', '');
+
+        LODOP.ADD_PRINT_BARCODE(20, 30, '50mm', 80, "128A", checkId);
+        LODOP.ADD_PRINT_HTM(110, 20, '50mm', 80, html);
+        LODOP.SET_PRINT_STYLEA(0, "FontSize", 18);
+
+        LODOP.SET_PRINTER_INDEX("鏉$爜鎵撳嵃鏈�");//鎸囧畾鎵撳嵃鏈�
+        LODOP.PREVIEW();
+    }else {
+        LODOP.PRINT_INIT("");
+        LODOP.SET_PRINT_PAGESIZE(1, '80mm', '60mm', '');
+
+        LODOP.ADD_PRINT_BARCODE(20, 30, '70mm', 80, "128A", checkId);
+        LODOP.ADD_PRINT_HTM(110, 10, '70mm', 80, html);
+        LODOP.SET_PRINT_STYLEA(0, "FontSize", 18);
+
+        LODOP.SET_PRINTER_INDEX("鏉$爜鎵撳嵃鏈�");//鎸囧畾鎵撳嵃鏈�
+        LODOP.PREVIEW();
+    }
+};
+
+

--
Gitblit v1.9.3