From e561870f9644a5e80925346485fe623da678177f Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期二, 14 十月 2025 10:20:57 +0800
Subject: [PATCH] 调整WMS出库逻辑,原辅料可选择成品库出库;
---
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