From f2b3c45b78bb9fc021869c4ae35e6de039b50bbf Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期五, 18 十月 2024 18:40:52 +0800
Subject: [PATCH] 修改问题

---
 HTML/views/ASNSetting/LabelPrint.html |   69 ++++++++++++++++++++--------------
 1 files changed, 41 insertions(+), 28 deletions(-)

diff --git a/HTML/views/ASNSetting/LabelPrint.html b/HTML/views/ASNSetting/LabelPrint.html
index 7c4577e..e6fe72b 100644
--- a/HTML/views/ASNSetting/LabelPrint.html
+++ b/HTML/views/ASNSetting/LabelPrint.html
@@ -118,39 +118,52 @@
             var productionTime = getQueryString('ProductionTime');
             var expirationTime = getQueryString('ExpirationTime');
             var storeTime = getQueryString('StoreTime');  
-            
+
+            var supplierLot=getQueryString('SupplierLot'); //鍘熷巶鎵瑰彿
+            $("#SupplierLot").html(supplierLot);
+            console.log(supplierLot);
+            var doing = true;
             // 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: 1,
-                            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 () { });
-                    }
-                });
+                if(doing){
+                    doing= false;
+
+                
+                    var param = {
+                        Id: parseInt(id),
+                        IsReset:reset, 
+                        ArriveQty:arriveQty,  
+                        ProductionTime:productionTime,
+                        ExpirationTime:expirationTime,
+                        StoreTime:storeTime,
+                        SupplierLot:supplierLot//鍘熷巶鎵瑰彿
+                    };
+                    // console.log(param);
+                    synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) {
+                        if (res.code == 0) { //鎴愬姛  
+                            layer.msg(res.msg, {
+                                icon: 1,
+                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            }, function () {
+                                parent.location.reload();
+                                parent.layer.close(layer.index);
+                                doing = true;
+                            });
+                            
+                        } else { //涓嶆垚鍔�
+                            layer.msg(res.msg, {
+                                icon: 2,
+                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            }, function () { 
+                                doing = true;
+                            });
+                        }
+                    });
+                }
             });
             //鎵撳嵃
             $('#btnPrint').on('click', function () {
@@ -173,7 +186,7 @@
                         $("#Standard").html(res.data.Standard);
                         $("#PackageStandard").html(res.data.PackageStandard);
                         $("#SkuNo").html(res.data.SkuNo);
-                        $("#SupplierLot").html(res.data.SupplierLot);
+                        
                         $("#ExpirationTime").html(expirationTime);
                         $("#StoreTime").html( storeTime);
                         

--
Gitblit v1.8.0