From 76b08b437e41cb6a3118c87636bc1777a110185a Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期六, 18 一月 2025 11:44:06 +0800
Subject: [PATCH] 修改异常问题

---
 HTML/views/WareHouseSetting/StorageLegend.html |   45 +++++++++++++++++++++++++++++++++------------
 1 files changed, 33 insertions(+), 12 deletions(-)

diff --git a/HTML/views/WareHouseSetting/StorageLegend.html b/HTML/views/WareHouseSetting/StorageLegend.html
index 7629f74..459e2a6 100644
--- a/HTML/views/WareHouseSetting/StorageLegend.html
+++ b/HTML/views/WareHouseSetting/StorageLegend.html
@@ -55,21 +55,21 @@
 		}
 
 		.one {
-			background-color: #91cc75;
+			background-color: #75bfcc;
 			Opacity: .8;
 		}
 
 		.two {
-			background-color: #ffdc60;
+			background-color: #89a297;
 		}
 
 		.three {
-			background-color: #ee6666;
+			background-color: #8ef0f0;
 			Opacity: .8;
 		}
 
 		.four {
-			background-color: #ffff7f;
+			background-color: #f0b9f9;
 			Opacity: .8;
 		}
 
@@ -369,11 +369,11 @@
 					$("#Row").empty();//娓呯┖涓婁竴涓煡璇笅鎷夊��
 					$("#Row option[value ='19']").attr("selected", "selected")
 					$("#Row").append('<option value =19>绗�19鎺�</option>');
-					$("#Row").append('<option value =>绗�20鎺�</option>');
+					$("#Row").append('<option value =20>绗�20鎺�</option>');
 					form.render('select');
 				}
-				GetSlotChartz($("#WareHouseNo").val(), $("#RoadwayNo").val())
-
+				funLayer();
+				GetSlotChartz($("#WareHouseNo").val(), $("#RoadwayNo").val());
 				GetSlotVm($("#WareHouseNo").val(), $("#RoadwayNo").val(), $("#Row").val(), $("#Depth").val());
 				
 			})
@@ -397,6 +397,24 @@
 			form.on('select(SelectDepth)', function (data) {
 				GetSlotVm($("#WareHouseNo").val(), $("#RoadwayNo").val(), $("#Row").val(), $("#Depth").val());
 			});
+			function funLayer()
+			{
+				if($("#Row").val() == "2" || $("#Row").val() == "5" || $("#Row").val() == "9" || $("#Row").val() == "13" || $("#Row").val() == "17")
+				{
+					$("#Depth").empty();//娓呯┖涓婁竴涓煡璇笅鎷夊��
+					$("#Depth option[value ='01']").attr("selected", "selected")
+					$("#Depth").append('<option value =01>娣卞害1</option>');
+				}
+				else
+				{
+					$("#Depth").empty();//娓呯┖涓婁竴涓煡璇笅鎷夊��
+					$("#Depth option[value ='01']").attr("selected", "selected")
+					$("#Depth").append('<option value =01>娣卞害1</option>');
+					$("#Depth").append('<option value =02>娣卞害2</option>');
+				}
+				form.render('select');
+				GetSlotVm($("#WareHouseNo").val(), $("#RoadwayNo").val(), $("#Row").val(), $("#Depth").val());
+			}
 
 			//鑾峰彇浠撳簱宸烽亾
 			function getRoadway() {
@@ -507,9 +525,12 @@
 							xiangb = "宸烽亾20鎺�";
 							$("#Row option[value ='19']").attr("selected", "selected")
 							$("#Row").append('<option value =19>绗�19鎺�</option>');
-							$("#Row").append('<option value =>绗�20鎺�</option>');
+							$("#Row").append('<option value =20>绗�20鎺�</option>');
 							form.render('select');
 						}
+						funLayer();
+						GetSlotChartz($("#WareHouseNo").val(), $("#RoadwayNo").val());
+						GetSlotVm($("#WareHouseNo").val(), $("#RoadwayNo").val(), $("#Row").val(), $("#Depth").val());
 					} else { //涓嶆垚鍔�
 						layer.msg(res.msg, {
 							icon: 2,
@@ -638,10 +659,10 @@
 						var option2 = {
 							color: [
 								'#5470c6',
-								'#91cc75',
-								'#ffdc60',
-								'#ee6666',
-								'#ffff7f',
+								'#75bfcc',
+								'#89a297',
+								'#8ef0f0',
+								'#f0b9f9',
 								'#ee23ee',
 								'#808080',
 							],

--
Gitblit v1.8.0