fix:永丰售后修复BUG,

1,物料库存获取不到ERP:重新调整触发查询逻辑
2,工序变更导致物料无法出库:配置旧工序
3,测试出库订单ERP推送,任务下发
This commit is contained in:
sunwang committed 2026-10-29 13:12:11 +08:00
1 parent b2a9a38f38
commit c76e7bb681
69 files changed
+5510 -157

No files matched your search

+5 -4
View File
@@ -172,10 +172,10 @@ namespace HHWMS.Web
var data = new List<ChartData>();
var locations = Wtm.DC.Set<Location>()
.AsEnumerable()
.GroupBy(x => x.ContainerStatus).ToList()
.GroupBy(x => x.ContainerStatus ?? LocationStatus.空仓位).ToList()
.Select(x => new { status = statusMap.TryGetValue(x.Key, out var chineseName)
? chineseName
: x.Key.ToString(), count = x.Count() });
: x.Key, count = x.Count() });
foreach (var item in locations)
{
data.Add(new ChartData
@@ -227,12 +227,13 @@ namespace HHWMS.Web
foreach (var loc in group)
{
statusMap.TryGetValue(loc.ContainerStatus, out var statusInfo);
var statusKey = loc.ContainerStatus ?? LocationStatus.空仓位;
statusMap.TryGetValue(statusKey, out var statusInfo);
heatmap.Points.Add(new HeatmapPointDto
{
Line = loc.Line,
Layer = loc.Layer,
Status = statusInfo.name ?? loc.ContainerStatus ?? "未知",
Status = statusInfo.name ?? statusKey,
Color = statusInfo.color ?? "#909399",
ContainerCode = loc.ContainerCode,
LocationCode = loc.Code