From f4bb9bfee217eb0004ad121a6ad92065fc2acb4f Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期四, 18 九月 2025 14:24:23 +0800 Subject: [PATCH] 修改PDA拣货出库功能,合并箱码盒码支码输入框 --- Wms/WMS.BLL/Logic/AllotLocation.cs | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Wms/WMS.BLL/Logic/AllotLocation.cs b/Wms/WMS.BLL/Logic/AllotLocation.cs index 2a5c1f1..10284fe 100644 --- a/Wms/WMS.BLL/Logic/AllotLocation.cs +++ b/Wms/WMS.BLL/Logic/AllotLocation.cs @@ -43,7 +43,7 @@ { // 鍒ゆ柇褰撳墠宸烽亾(缁�)鏄惁鏈夌┖浣欏偍浣� - var locateCount = db.Queryable<SysStorageLocat>().Count(m => m.Status == "0" && m.Flag == "0" && areaList.Contains(m.AreaNo) && m.RoadwayNo == l); + var locateCount = db.Queryable<SysStorageLocat>().Count(m => m.IsDel=="0" && m.Status == "0" && m.Flag == "0" && areaList.Contains(m.AreaNo) && m.RoadwayNo == l); var bindNum = db.Queryable<LogTask>().Where(m => m.IsDel == "0" && (m.Status == "0" || m.Status == "1") && m.EndRoadway == l) .GroupBy(m => m.PalletNo).Select(m => m.PalletNo).Count(); @@ -312,6 +312,22 @@ var roadList = db.Queryable<SysStorageLocat>().Where(m => m.WareHouseNo == houseNo && areaList.Contains(m.AreaNo) ) .GroupBy(m=>m.RoadwayNo).Select(m=>m.RoadwayNo).ToList(); + + if (houseNo == "W02") + { + //涓�妤煎贩閬� + var conveyList1 = new List<string>() { "LR01", "LR02", "LR03", "LR04", "LR05", "LR06", "LR07", "LR08" }; + //浜屾ゼ宸烽亾 + var conveyList2 = new List<string>() { "LR09", "LR10", "LR11", "LR12" }; + if (ceng == "1") + { + roadList = roadList.Where(m => conveyList1.Contains(m)).ToList(); + } + else if (ceng == "2") + { + roadList = roadList.Where(m => conveyList2.Contains(m)).ToList(); + } + } //鏁版嵁瀛楀吀(鑾峰彇瀛楀吀涓粨搴撶被鍨�) var dic = db.Queryable<SysDictionary>().First(m => m.Id.ToString() == house.Type); @@ -601,10 +617,10 @@ foreach (var area in areaList) { var sql = $@"select * from SysStorageLocat where IsDel = 0 and Layer!= '3' and Flag = 0 and [Status] = 0 and RoadwayNo = '{roadwayNo}' and AreaNo = '{area}' and LocatNo not in({str}) "; - if (!string.IsNullOrWhiteSpace(ceng)) - { - sql += $"and Layer = '{ceng}' "; - } + //if (!string.IsNullOrWhiteSpace(ceng)) + //{ + // sql += $"and Layer = '{ceng}' "; + //} sql += "order by "; sql += topOrBom == 0 ? "Layer desc, " : "Layer, "; sql += leftOrRight == 0 ? "[Column], " : "[Column] desc, "; -- Gitblit v1.8.0