From e7cfae909181ab9e7ffacd0370b0ad9d4ad50123 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 30 六月 2023 20:15:09 +0800
Subject: [PATCH] 质检管理

---
 igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.js |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.js b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.js
index 69a988a..02c20df 100644
--- a/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.js
+++ b/igds-inout/src/main/java/com/ld/igds/inout/view/InoutHand.js
@@ -18,9 +18,37 @@
 	LODOP.PREVIEW();
 };
 
+/**
+ * 鎵撳嵃璐ㄦ鍗�
+ */
+printCheckBill = function(htmlStr) {
+	var LODOP = CLODOP;
+	LODOP.PRINT_INIT("璐ㄦ鍗�");
+	LODOP.SET_PRINT_PAGESIZE(1,2100,2970, "A4");
+	LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
+	LODOP.PREVIEW();
+};
+print5016CheckBill = function(htmlStr) {
+	var LODOP = CLODOP;
+	LODOP.PRINT_INIT("璐ㄦ鍗�");
+	LODOP.SET_PRINT_PAGESIZE(1, 1050, 1400, "");
+	LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
+	LODOP.PREVIEW();
+};
+
 //鎵撳嵃鎵︽牱鍗�
 printCheck = function(){
-	$alert("鎵撳嵃妯$増鏈畾涔夆�︹��");
+	var data = view.get("#dsMain.data");
+	if(!data) return;
+	var companyId = data.get("companyId");
+	console.log(companyId);
+	view.get("#ajaxPrintCheckBill").set("parameter",data).execute(function(result){
+		if(companyId && companyId == "5016"){
+			print5016ShipBill(result);
+		}else {
+			printCheckBill(result);
+		}
+	});
 };
 
 //鎵撳嵃绉伴噸鍗�

--
Gitblit v1.9.3