From 444d2d9c002664edb9437861f298175b4dea209c Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期三, 17 十二月 2025 14:01:25 +0800
Subject: [PATCH] 格式化代码

---
 Pda/View/HouseDataSetting/agvTransport.html |   99 +++++++++++++++++++++++++++++++++++++------------
 1 files changed, 74 insertions(+), 25 deletions(-)

diff --git a/Pda/View/HouseDataSetting/agvTransport.html b/Pda/View/HouseDataSetting/agvTransport.html
index 09a4011..beb4ab0 100644
--- a/Pda/View/HouseDataSetting/agvTransport.html
+++ b/Pda/View/HouseDataSetting/agvTransport.html
@@ -139,6 +139,15 @@
                             </div>
                         </div>
                         <div id="" class="layui-form-item layout-dropdownlist">
+                            <label class="layui-form-label" lang>鐩爣鍌ㄤ綅锛�</label>
+                            <div class="layui-input-block" id="selectLocatNoEnd">
+                                <select id="LocatNoEnd" lay-filter="getLocatNoEnd" lay-search>
+                                    <option value=""></option>
+                                </select>
+                                <img src="/assets/down_arraw.png">
+                            </div>
+                        </div>
+                        <div id="" class="layui-form-item layout-dropdownlist">
                             <label class="layui-form-label" lang>鍏ュ簱鍙o細</label>
                             <div class="layui-input-block" id="selectRuku">
                                 <select id="Ruku" lay-filter="getRuku" lay-search>
@@ -229,7 +238,7 @@
                                 </select>
                                 <img src="/assets/down_arraw.png">
                             </div>
-                        </div>                        
+                        </div>
 
                         <table class="layout-tbl-submit" border="" cellspacing="" cellpadding="">
                             <tr>
@@ -331,7 +340,7 @@
 
             //褰撳墠鍒嗛〉
             var curPageIndex = 1;
-            
+
             // 鎵樼洏鐮佹枃鏈敼鍙樻椂瑙﹀彂
             $("#STOCKCODE").on('input', function () {
                 if ($("#STOCKCODE").val() == "" || $("#STOCKCODE").val().length < 8) {
@@ -382,7 +391,7 @@
                     });
                 }
                 else if (xianshiyemian == 1) {
-                    
+
                 }
 
             }
@@ -426,7 +435,7 @@
                     if (res.code == 0) { //鎴愬姛
                         for (var i = 0; i < res.data.length; i++) {
                             $("#Quyu").append('<option value =' + res.data[i].AreaNo + '>' + res.data[i]
-                                .AreaNo + '-'+res.data[i].AreaName+
+                                .AreaNo + '-' + res.data[i].AreaName +
                                 '</option>');
                         }
                         form.render('select');
@@ -441,9 +450,48 @@
                         callback(res.data)
                     } else { //涓嶆垚鍔�
                         layer.msg(res.msg, {
-                        	icon: 2,
-                        	time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-                        }, function() {});
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        }, function () { });
+                    }
+                });
+            }
+            //閫変腑鍑哄簱鍗曚簨浠�
+            form.on('select(getQuyu)', function (data) {
+                //鍏堟洿鏂颁竴涓嬬洰鏍囧尯鍩�
+                updateLocatNoEndList()
+            });
+            //鐐瑰嚮鐩爣鍌ㄤ綅涓嬫媺妗嗕簨浠�
+            $("#selectLocatNoEnd").click(function () {
+                if ($("#Quyu").val() == "") {
+                    layer.msg('璇峰厛閫夋嫨鐩爣鍖哄煙', {
+                        icon: 2,
+                        time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    });
+                    return
+                }
+
+            })
+            /* 缁戝畾鐩爣鍌ㄤ綅淇℃伅 */
+            function updateLocatNoEndList() {
+                $("#LocatNoEnd").empty()
+                $("#LocatNoEnd").append('<option value =>' + '</option>');
+                form.render('select');
+
+                var param = {
+                    "AreaNo": $("#Quyu").val()
+                };
+                sendData(IP + "/PdaCr/GetLocatByArea", param, 'get', function (res) {
+                    if (res.code == 0) { //鎴愬姛
+                        for (var i = 0; i < res.data.length; i++) {
+                            $("#LocatNoEnd").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>');
+                        }
+                        form.render('select');
+                    } else { //涓嶆垚鍔�
+                        layer.msg(res.msg, {
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        }, function () { });
                     }
                 });
             }
@@ -473,7 +521,7 @@
                 sendData(IP + "/PdaCr/GetRunSoNoticeList", param, 'get', function (res) {
                     if (res.code == 0) { //鎴愬姛
                         for (var i = 0; i < res.data.length; i++) {
-                            $("#OutNo").append('<option value =' + res.data[i] + '>' + res.data[i]+
+                            $("#OutNo").append('<option value =' + res.data[i] + '>' + res.data[i] +
                                 '</option>');
                         }
                         form.render('select');
@@ -494,8 +542,8 @@
                     }
                 });
             }
-             //閫変腑鍑哄簱鍗曚簨浠�
-             form.on('select(getOutNo)', function (data) {
+            //閫変腑鍑哄簱鍗曚簨浠�
+            form.on('select(getOutNo)', function (data) {
                 $("#PalletNo").empty()
                 $("#PalletNo").append('<option value =>' + '</option>');
                 form.render('select');
@@ -534,12 +582,12 @@
                 form.render('select');
 
                 var param = {
-                    soNo:$("#OutNo").val()
+                    soNo: $("#OutNo").val()
                 };
                 sendData(IP + "/PdaCr/GetPalletNoListBySoNo", param, 'get', function (res) {
                     if (res.code == 0) { //鎴愬姛
                         for (var i = 0; i < res.data.length; i++) {
-                            $("#PalletNo").append('<option value =' + res.data[i] + '>' + res.data[i]+
+                            $("#PalletNo").append('<option value =' + res.data[i] + '>' + res.data[i] +
                                 '</option>');
                         }
                         form.render('select');
@@ -603,7 +651,7 @@
                     if (res.code == 0) { //鎴愬姛
                         for (var i = 0; i < res.data.length; i++) {
                             $("#Quyu2").append('<option value =' + res.data[i].AreaNo + '>' + res.data[i]
-                                .AreaNo + '-'+res.data[i].AreaName+
+                                .AreaNo + '-' + res.data[i].AreaName +
                                 '</option>');
                         }
                         form.render('select');
@@ -618,9 +666,9 @@
                         callback(res.data)
                     } else { //涓嶆垚鍔�
                         layer.msg(res.msg, {
-                        	icon: 2,
-                        	time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-                        }, function() {});
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        }, function () { });
                     }
                 });
             }
@@ -652,6 +700,7 @@
                     var param = {
                         PalletNo: $("#STOCKCODE").val(),
                         AreaNo: $("#Quyu").val(),
+                        LocatNoEnd: $("#LocatNoEnd").val(),
                         Ruku: $("#Ruku").val()
                     }
                     //鍛煎彨灏忚溅
@@ -661,7 +710,7 @@
                                 icon: 1,
                                 time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
                             }, function () {
-                               
+
                             });
                         } else { //涓嶆垚鍔�
                             layer.msg(res.msg, {
@@ -680,7 +729,7 @@
                             time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
                         });
                         return;
-                    }                    
+                    }
                     // if ($("#PalletNo").val() == "") {
                     //     layer.msg('璇锋壂鎻忔墭鐩樻潯鐮�', {
                     //         icon: 2,
@@ -707,7 +756,7 @@
                                 icon: 1,
                                 time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
                             }, function () {
-                               
+
                             });
                         } else { //涓嶆垚鍔�
                             layer.msg(res.msg, {
@@ -734,13 +783,13 @@
                     for (i = len - 1; i >= 2; i--) {
                         trs[i].remove();
                     }
-                    if($("#STOCKCODE").val()==''){
+                    if ($("#STOCKCODE").val() == '') {
                         return;
                     }
 
                     var param = {
                         PalletNo: $("#STOCKCODE").val(),
-                        IsHuiKu:1
+                        IsHuiKu: 1
                     };
                     //  鏍规嵁鎵樼洏鍙疯幏鍙栫鐮佷俊鎭�
                     sendData(IP + "/PdaCr/GetSkuInfoByPalletNo", param, 'get', function (res) {
@@ -756,10 +805,10 @@
                                 tr.attr('BindNo', res.data[i].BindNo)
                                 idx++;
                                 tr.attr('index', idx)
-                                tr.find("td[name='code']").html(res.data[i].BoxNo);
+                                tr.find("td[name='code']").html(res.data[i].SkuNo);
                                 tr.find("td[name='name']").html(res.data[i].SkuName);
                                 tr.find("td[name='lotNo']").html(res.data[i].LotNo);
-                                tr.find("td[name='num']").html(res.data[i].Qty);                                
+                                tr.find("td[name='num']").html(res.data[i].Qty);
                                 tr.show();
                                 arrTrs[i] = tr
                             }
@@ -782,7 +831,7 @@
                     for (i = len - 1; i >= 2; i--) {
                         trs[i].remove();
                     }
-                    if($("#PalletNo").val()==''){
+                    if ($("#PalletNo").val() == '') {
                         return;
                     }
                     var param = {
@@ -805,7 +854,7 @@
                                 tr.find("td[name='code']").html(res.data[i].SkuNo);
                                 tr.find("td[name='name']").html(res.data[i].SkuName);
                                 tr.find("td[name='lotNo']").html(res.data[i].LotNo);
-                                tr.find("td[name='num']").html(res.data[i].Qty);                                
+                                tr.find("td[name='num']").html(res.data[i].Qty);
                                 tr.show();
                                 arrTrs[i] = tr
                             }

--
Gitblit v1.8.0