From 1c2541b283ce6ba855e67c476412dffe2c693480 Mon Sep 17 00:00:00 2001 From: chengsc <11752@DESKTOP-DS49RCP> Date: 星期三, 11 六月 2025 13:56:23 +0800 Subject: [PATCH] Merge branch 'csc' --- 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