盘料出库1对多工位出库

This commit is contained in:
zgf committed 2023-11-21 23:37:55 +08:00
1 parent 30f1e69664
commit 2cae99cb34
12 files changed
+308 -59

No files matched your search

@@ -45,13 +45,19 @@ public class ReceiptSLInController : BaseController
&& x.Status != LocationStatus.任务锁
&& x.Status != LocationStatus.满货
&& x.Status != LocationStatus.空仓位
&& x.Row == stations.First().Row).FirstOrDefault();
&& x.Row == stations.First().Row)
.OrderBy(x => x.Layer)
.ThenByDescending(x => x.Line)
.FirstOrDefault();
if (box == null && stations.Count == 2)
box = _unitWork.Find<Location>(x => (x.ZoneCode == ZoneCodeEnum.散料库)
&& x.Status != LocationStatus.任务锁
&& x.Status != LocationStatus.满货
&& x.Status != LocationStatus.空仓位
&& x.Row == stations.Last().Row).FirstOrDefault();
&& x.Row == stations.Last().Row)
.OrderBy(x => x.Layer)
.ThenByDescending(x => x.Line)
.FirstOrDefault();
if (box == null) return JsonMore(null, 500, "库内没有可用散料箱!");