From 2056ae6f3d8243b0555f437ec6d214666d5bde53 Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期一, 02 六月 2025 09:43:19 +0800
Subject: [PATCH] 修改问题

---
 Pda/View/SoSetting/ExNoticeOut.html |   29 +++++++++++++++++++++++++----
 1 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/Pda/View/SoSetting/ExNoticeOut.html b/Pda/View/SoSetting/ExNoticeOut.html
index 0643eae..26b6c46 100644
--- a/Pda/View/SoSetting/ExNoticeOut.html
+++ b/Pda/View/SoSetting/ExNoticeOut.html
@@ -147,13 +147,22 @@
 
             //閫変腑鍗曟嵁浜嬩欢
 			form.on('select(getbar)', function (data) {
-				
+				$("#PalletNo").empty()
+                $("#PalletNo").append('<option value =>' + '</option>');
+                form.render('select');
 				if (data.value == "") {
 					return;
 				}
 				updateGoodList();
+				
 			});
-
+			//閫変腑鍗曟嵁鏄庣粏浜嬩欢
+			form.on('select(goodSelect)', function (data) {
+				
+				$("#PalletNo").empty()
+                $("#PalletNo").append('<option value =>' + '</option>');
+                form.render('select');
+			});
 			$("#selectDiv").click(function () {
 				var input = $('select[id="bar"]').next().find('.layui-select-title input')
 				var val = input.val()
@@ -163,6 +172,17 @@
 					$('select[id="bar"]').next().find('.layui-select-title input').val(val)
 				})
 			})
+
+			$("#selectPalletNo").click(function () {
+				var input = $('select[id="PalletNo"]').next().find('.layui-select-title input')
+				var val = input.val()
+				//鍏堟洿鏂颁竴涓嬪嚭搴撳崟
+				updatePalletNoList(function (data) {
+					$('select[id="PalletNo"]').next().addClass('layui-form-selected')
+					$('select[id="PalletNo"]').next().find('.layui-select-title input').val(val)
+				})
+			})
+
 			//鍒濆鍖栨覆鏌� 鍑哄簱鍗�
 			function updateBillList(callback) {
 				var input = $('select[id="bar"]').next().find('.layui-select-title input')
@@ -271,9 +291,10 @@
                 form.render('select');
 
                 var param = {
-                    soNo:$("#bar").val()
+                    SoNo:$("#bar").val(),
+                    SoDetailId:$("#goodSelect").val(),
                 };
-                sendData(IP + "/PdaCr/GetPalletNoListBySoNo", param, 'get', function (res) {
+                sendData(IP + "/PdaSo/GetPalletListBySo", param, 'post', 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]+

--
Gitblit v1.8.0