From fef4a39d606932ebb2f7ae7d58c8ddcdd3e3b9db Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期六, 20 九月 2025 14:43:07 +0800
Subject: [PATCH] PDA-AGV转运功能增加指定目标储位功能

---
 Pda/View/HouseDataSetting/agvTransport.html |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/Pda/View/HouseDataSetting/agvTransport.html b/Pda/View/HouseDataSetting/agvTransport.html
index 09a4011..0d7e32e 100644
--- a/Pda/View/HouseDataSetting/agvTransport.html
+++ b/Pda/View/HouseDataSetting/agvTransport.html
@@ -138,6 +138,15 @@
                                 <img src="/assets/down_arraw.png">
                             </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">
@@ -447,6 +456,45 @@
                     }
                 });
             }
+             //閫変腑鍑哄簱鍗曚簨浠�
+             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() {});
+                    }
+                });
+            }
 
             //鐐瑰嚮鍑哄簱鍗曟嵁涓嬫媺妗嗕簨浠�
             $("#selectOutNo").click(function () {
@@ -652,6 +700,7 @@
                     var param = {
                         PalletNo: $("#STOCKCODE").val(),
                         AreaNo: $("#Quyu").val(),
+                        LocatNoEnd: $("#LocatNoEnd").val(),
                         Ruku: $("#Ruku").val()
                     }
                     //鍛煎彨灏忚溅

--
Gitblit v1.8.0