修改
This commit is contained in:
1 parent
c494b7b1ef
commit
523dee5e38
15 files changed
+304
-128
No files matched your search
@@ -135,22 +135,30 @@ namespace HHWMS.Web.Controllers
|
||||
var detailList = new List<ReceiptDetail>();
|
||||
foreach(var item in plList)
|
||||
{
|
||||
detailList.Add(new ReceiptDetail
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "PL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
detailList.Add(new ReceiptDetail
|
||||
{
|
||||
UniqueCode = item,
|
||||
Status = 0,
|
||||
MaterialType = "PL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in slList)
|
||||
{
|
||||
detailList.Add(new ReceiptDetail
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "SL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
detailList.Add(new ReceiptDetail
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "SL",
|
||||
Status = 0,
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
}
|
||||
}
|
||||
_unitwork.BatchAdd(detailList.ToArray());
|
||||
return FFResult().CloseDialog().RefreshGrid(index: 1);
|
||||
|
||||
@@ -36,7 +36,8 @@ public class ReceiptSLInController : BaseController
|
||||
// 查询站台占用
|
||||
var stations = _unitWork.Find<Location>(x => (x.Code == StationCode.散料库左抽屉
|
||||
|| x.Code == StationCode.散料库右抽屉)
|
||||
&& x.Status != LocationStatus.任务锁).ToList();
|
||||
&& x.Status == LocationStatus.空仓位
|
||||
).ToList();
|
||||
if (stations.Count == 0) return JsonMore(null, 500, "无可用站台!");
|
||||
|
||||
// 查找没任务的仓位,分两边查,那边站台能用 查哪边
|
||||
|
||||
Reference in new issue
Block a user