From 66132ad089d8044646ec49bbfaaef7b5fe10a2a2 Mon Sep 17 00:00:00 2001
From: yuyou_x <2336760928@qq.com>
Date: 星期日, 04 二月 2024 10:36:39 +0800
Subject: [PATCH] 托盘绑定页面合并,入库单据与明细调整,增加托盘绑定托盘数量超出限制
---
HTML/views/ASNSetting/ArrivalNoticeDetail.html | 63 ++++++++++++++++++++++++++++++-
1 files changed, 60 insertions(+), 3 deletions(-)
diff --git a/HTML/views/ASNSetting/ArrivalNoticeDetail.html b/HTML/views/ASNSetting/ArrivalNoticeDetail.html
index 11938fc..7d53f60 100644
--- a/HTML/views/ASNSetting/ArrivalNoticeDetail.html
+++ b/HTML/views/ASNSetting/ArrivalNoticeDetail.html
@@ -62,7 +62,7 @@
</select>
</div>
- <label class="layui-form-label">瀹㈡埛鍚嶇О</label>
+ <label class="layui-form-label" style="width: 70px;"><p id="CustomerNamep">瀹㈡埛鍚嶇О</p></label>
<div class="layui-input-inline">
<select name="CustomerName" id="CustomerName" lay-verify="" lay-search>
<option value=""></option>
@@ -143,6 +143,10 @@
});
var arr = [];
var TypeValue=$("#Type").val();
+
+ var type0 = [3]; //瀹㈡埛
+ var type1 = [1,5]; //渚涘簲鍟�
+ var type2 = [0,2,4,6]; //璐т富
// 鍔犺浇涓嬫媺淇℃伅
getCustomerList();
@@ -463,6 +467,7 @@
var value = data.value;
if(value!=TypeValue){
console.log(value);
+ getCustomerList();
arr = [];
// 娓叉煋Table
refreshTable(null);
@@ -584,13 +589,65 @@
// 缁戝畾涓嬫媺淇℃伅
function getCustomerList() {
+ /*
+ 0锛氬鎴�
+ 閫�璐у叆搴�
+ 3
+ 1锛氫緵搴斿晢
+ 閲囪喘鍏ュ簱銆佸叾瀹冨叆搴�
+ 1銆�5
+ 2锛氳揣涓�
+ 鎴愬搧鍏ュ簱銆佷腑闂村搧鍏ュ簱銆佽溅闂翠綑鏂欏叆搴撱�佷唬鍌ㄥ叆搴�
+ 0銆�2銆�4銆�6
+ */
sendData(IP + "/Basis/GetCustomerSelect", {}, 'get', function (res) {
if (res.code == 0) { //鎴愬姛
$("#CustomerName").empty();
$("#CustomerName").append('<option value =""></option>');
for (var i = 0; i < res.data.length; i++) {
- $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
- res.data[i].CustomerName + '</option>');
+ //鍒ゆ柇鍗曟嵁绫诲瀷
+ if (type0[0] == $("#Type").val())
+ {
+ /*
+ 0锛氬鎴�
+ 閫�璐у叆搴�
+ 3
+ */
+ if (res.data[i].Type == 0)
+ {
+ $("#CustomerNamep").html("瀹㈡埛閫夋嫨");
+ $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
+ res.data[i].CustomerName + '</option>');
+ }
+ }
+ else if (type1[0] == $("#Type").val() || type1[1] == $("#Type").val())
+ {
+ /*
+ 1锛氫緵搴斿晢
+ 閲囪喘鍏ュ簱銆佸叾瀹冨叆搴�
+ 1銆�5
+ */
+ if (res.data[i].Type == 1)
+ {
+ $("#CustomerNamep").html("渚涘簲鍟嗛�夋嫨");
+ $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
+ res.data[i].CustomerName + '</option>');
+ }
+ }
+ else if (type2[0] == $("#Type").val() || type2[1] == $("#Type").val() || type2[2] == $("#Type").val() || type2[3] == $("#Type").val())
+ {
+ /*
+ 2锛氳揣涓�
+ 鎴愬搧鍏ュ簱銆佷腑闂村搧鍏ュ簱銆佽溅闂翠綑鏂欏叆搴撱�佷唬鍌ㄥ叆搴�
+ 0銆�2銆�4銆�6
+ */
+ if (res.data[i].Type == 2)
+ {
+ $("#CustomerNamep").html("璐т富閫夋嫨");
+ $("#CustomerName").append('<option value =' + res.data[i].CustomerNo + '>' +
+ res.data[i].CustomerName + '</option>');
+ }
+ }
}
form.render('select');
} else { //涓嶆垚鍔�
--
Gitblit v1.8.0