From cfdbd0eadeb5dbe4ff8872bb67f43ae8f323a799 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期一, 13 十月 2025 09:35:13 +0800
Subject: [PATCH] 优化入库单导入功能
---
HTML/views/ASNSetting/PalletBind.html | 35 ++++++++---------------------------
1 files changed, 8 insertions(+), 27 deletions(-)
diff --git a/HTML/views/ASNSetting/PalletBind.html b/HTML/views/ASNSetting/PalletBind.html
index 83dcf1e..580dc24 100644
--- a/HTML/views/ASNSetting/PalletBind.html
+++ b/HTML/views/ASNSetting/PalletBind.html
@@ -331,24 +331,7 @@
{{ GetBtn11(d) }}
</script>
- <script type="text/html" id="RoadwayButton">
- {{#
- switch (d.RoadwayNo) {
- case "R01": return '01宸烽亾';
- case "R02": return '02宸烽亾';
- case "R03": return '03宸烽亾';
- case "R04": return '04宸烽亾';
- case "R05": return '05宸烽亾';
- case "R06": return '06宸烽亾';
- case "R07": return '07宸烽亾';
- case "R08": return '08宸烽亾';
- case "R09": return '09宸烽亾';
- case "R10": return '10宸烽亾';
- default: return "";
- }
-
- }}
- </script>
+
<!-- #endregion -->
</div>
@@ -417,9 +400,12 @@
// 鏌ヨ浜嬩欢
form.on('select(getWareHouseNo)', function (data) {
- if ($("#WareHouseNo").val() == "W01") {
+ $("#RoadwayNo").html('');
+ $("#RoadwayNo").append('<option value=""></option>');
+ form.render('select');
+ if ($("#WareHouseNo").val() != "") {
//鑾峰彇宸烽亾涓嬫媺妗嗕俊鎭�
- synData(IP + "/Sys/GetRoadwayList", {}, 'get', function (res) {
+ synData(IP + "/Sys/GetStorageRoadwayByHouseNo", {wareHouseNo:$("#WareHouseNo").val()}, 'get', function (res) {
if (res.code == 0) { //鎴愬姛
for (var i = 0; i < res.data.length; i++) {
@@ -436,12 +422,7 @@
}
});
}
- else {
- $("#RoadwayNo").html('');
- $("#RoadwayNo").append('<option value=""></option>');
- form.render('select');
- }
-
+
});
// 娓叉煋鎬昏〃
@@ -454,7 +435,7 @@
{ field: 'PalletNo2', title: '鎵樼洏鍙稬V2', align: 'center' },
{ field: 'PalletNo3', title: '鎵樼洏鍙稬V3', align: 'center' },
{ field: 'LocatNo', title: '鍌ㄤ綅鍦板潃', align: 'center', width: 90 },
- { field: 'RoadwayNo', title: '鎵�灞炲贩閬�', align: 'center', width: 90, templet: '#RoadwayButton' },
+ { field: 'RoadwayName', title: '鎵�灞炲贩閬�', align: 'center', width: 90 },
{ field: 'WareHouseName', title: '鎵�灞炰粨搴�', align: 'center', width: 90 },
{ field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 110 },
{ field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center' },
--
Gitblit v1.8.0