From 75b62c70cb63bc3ed438485573dacce93b43d55c Mon Sep 17 00:00:00 2001
From: Demo <Demo@DESKTOP-CPA90BF>
Date: 星期六, 03 二月 2024 10:25:26 +0800
Subject: [PATCH] 添加生成标签按钮权限,修改获取入库单明细信息

---
 HTML/views/ASNSetting/LabelPrint.html |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/HTML/views/ASNSetting/LabelPrint.html b/HTML/views/ASNSetting/LabelPrint.html
index 1704e72..0dc83e6 100644
--- a/HTML/views/ASNSetting/LabelPrint.html
+++ b/HTML/views/ASNSetting/LabelPrint.html
@@ -117,16 +117,42 @@
             
             var productionTime = getQueryString('ProductionTime');
             var expirationTime = getQueryString('ExpirationTime');
-            var storeTime = getQueryString('StoreTime'); 
-            // var level = getQueryString('Level');
-            // var type = getQueryString('Type'); 
-            // var boxType = getQueryString('BoxType');
-            // var qty = getQueryString('Qty');
+            var storeTime = getQueryString('StoreTime');  
             
             console.log(productionTime);
             console.log(expirationTime);
             console.log(storeTime);
 
+            //鐢熸垚
+            $('#btnAdd').on('click', function () {
+                var param = {
+                    Id: parseInt(id),
+                    IsReset:reset, 
+                    ArriveQty:arriveQty,  
+                    ProductionTime:productionTime,
+                    ExpirationTime:expirationTime,
+                    StoreTime:storeTime
+                };
+                console.log(param);
+                synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) {
+                    if (res.code == 0) { //鎴愬姛  
+                        layer.msg(res.msg, {
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        }, function () {
+                            parent.location.reload();
+                            parent.layer.close(layer.index);
+                        });
+                        
+                    } else { //涓嶆垚鍔�
+                        layer.msg(res.msg, {
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        }, function () { });
+                    }
+                });
+            });
+            //鎵撳嵃
             $('#btnPrint').on('click', function () {
                 var param = {
                     ImportId: id,

--
Gitblit v1.8.0