From a40eb0941c2dfa793aa0987d26093d965a1fa60b Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期四, 21 八月 2025 09:46:22 +0800
Subject: [PATCH] 修改PDA托盘绑定页面,成品单据绑定不可连组

---
 Pda/View/AsnSetting/productEnterQuantity.html |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 50 insertions(+), 3 deletions(-)

diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html
index 2824b47..5c3f2d4 100644
--- a/Pda/View/AsnSetting/productEnterQuantity.html
+++ b/Pda/View/AsnSetting/productEnterQuantity.html
@@ -582,6 +582,18 @@
                     checkBoxInfo()
                 }
             });
+            //绠辩爜澶卞幓鐒︾偣浜嬩欢
+            $("#BOXCODE").blur(function(){
+				 if ($("#BOXCODE").val() == "") {
+                    layer.msg('璇峰厛鎵弿绠辩爜', {
+                        icon: 2,
+                        time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    });
+                    return
+                }
+
+                checkBoxInfo()
+			})	
 
 
             //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠�
@@ -1205,9 +1217,44 @@
 
             form.on('switch(IsLianXu)', function (obj) {
                 if (obj.elem.checked) {
-                    $('#BOX2').attr("style", "display:block")
-                    $('#zongDiv').attr("style", "height: 315px;")
-                    isContinue = "1";
+                    if ($("#bar").val() == "") {
+                        $('#IsLianXu').prop('checked',false);
+                        layui.form.render();
+                        layer.msg('璇烽�夋嫨鍏ュ簱鍗�', {
+                            icon: 2,
+                            time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        });
+                        return;
+                    }
+                    var param = {
+						ASNNo: $("#bar").val()
+					};
+					sendData(IP + "/PdaAsn/GetArrivalNotice", param, 'post', function (res) {
+						if (res.code == 0) { //鎴愬姛
+							if(res.data[0].Type=="0"){
+                                $('#IsLianXu').prop('checked',false);
+                                layui.form.render();
+                                layer.msg('鎴愬搧鍏ュ簱鍗曚笉鑳藉紑鍚繛缁勶紒', {
+                                    icon: 2,
+                                    time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                                });
+                                return;
+                            }else{
+                                $('#BOX2').attr("style", "display:block")
+                                $('#zongDiv').attr("style", "height: 315px;")
+                                isContinue = "1";
+                            }
+						} else { //涓嶆垚鍔�
+							layer.msg('鍏ュ簱鍗曚俊鎭笉瀛樺湪', {
+								icon: 2,
+								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+							}, function() {
+                                $('#IsLianXu').prop('checked',false);
+                                layui.form.render();
+                            });
+						}
+					});
+                    
                 } else {
                     $('#BOX2').attr("style", "display:none")
                     $('#zongDiv').attr("style", "height: 285px;")

--
Gitblit v1.8.0