| | |
| | | { |
| | | throw new Exception("未查询到出库单据信息"); |
| | | } |
| | | if (notice.Status != "4") |
| | | //2025年12月08日可户要求少拣货也可以正常关单 |
| | | List<string> statusList = new List<string>() { "3", "4" }; |
| | | if (!statusList.Contains(notice.Status)) |
| | | { |
| | | throw new Exception("参数异常,请检查状态是否为执行完成或订单关闭"); |
| | | } |
| | |
| | | CreateUser = userId, |
| | | CreateTime = DateTime.Now |
| | | }; |
| | | if (s.WareHouseNo == "W04") |
| | | //2025年12月08日货架库和平库,直接待拣货 |
| | | List<string> wareHouseList = new List<string>() { "W02", "W04" }; |
| | | if (wareHouseList.Contains(s.WareHouseNo)) |
| | | { |
| | | allot.Status = "2";//待拣货 |
| | | xQty += allot.Qty; |
| | |
| | | CreateUser = userId, |
| | | CreateTime = DateTime.Now |
| | | }; |
| | | if (stock.WareHouseNo == "W04") |
| | | //2025年12月08日货架库和平库,直接待拣货 |
| | | List<string> wareHouseList = new List<string>() { "W02", "W04" }; |
| | | if (wareHouseList.Contains(stock.WareHouseNo)) |
| | | { |
| | | allot.Status = "2";//待拣货 |
| | | xQty += allot.Qty; |