From 87110c04df904eb4947587a34f3fc5a1eb45eb7e Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 12 十月 2025 16:21:11 +0800
Subject: [PATCH] 入库单据开发导入入库单功能;
---
Pda/View/SoSetting/ExNoticeOut.html | 31 ++++++++++++++++++++++++++-----
1 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/Pda/View/SoSetting/ExNoticeOut.html b/Pda/View/SoSetting/ExNoticeOut.html
index 0643eae..c37f187 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')
@@ -233,7 +253,7 @@
} else {
if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
- $("#goodSelect").append('<option value =' + res.data[i].ISoDetailIdd+ i + '>' + res.data[i]
+ $("#goodSelect").append('<option value =' + res.data[i].SoDetailId + '>' + res.data[i]
.SkuName +
'</option>');
} else {
@@ -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