This commit is contained in:
2024-07-01 14:55:00 +08:00
parent 46f7b4bf20
commit fd42810269
2 changed files with 5 additions and 1 deletions

View File

@@ -1698,7 +1698,6 @@ namespace Tnb.ProductionMgr
report.reported_qty = input.reported_qty; report.reported_qty = input.reported_qty;
report.weight = input.weight; report.weight = input.weight;
report.material_box_code = input.material_box_code; report.material_box_code = input.material_box_code;
Log.Information($"任务单数据:{JsonConvert.SerializeObject(prdMoTask)}");
if (prdMoTask.schedule_type == 2) if (prdMoTask.schedule_type == 2)
{ {
// if (dic.TryGetValue(prdMoTask.workline_id, out string value)) // if (dic.TryGetValue(prdMoTask.workline_id, out string value))

View File

@@ -95,6 +95,7 @@ namespace Tnb.WarehouseMgr
}, true) }, true)
.ToListAsync(); .ToListAsync();
if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID && mCarryIdDic?.Count > 0) if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID && mCarryIdDic?.Count > 0)
{ {
if (carryCodes.Count < mCarryIdDic.Keys?.Count) if (carryCodes.Count < mCarryIdDic.Keys?.Count)
@@ -118,6 +119,10 @@ namespace Tnb.WarehouseMgr
data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>(); data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>();
foreach (CarryCodeQueryOutput carryCodeQueryOutput in data.wmsCarryCodes) foreach (CarryCodeQueryOutput carryCodeQueryOutput in data.wmsCarryCodes)
{ {
if (carryCodeQueryOutput.member_carrycode == null)
{
throw new AppFriendlyException("载具与条码数量可能不匹配", 500);
}
carryCodeQueryOutput.member_carryid = mCarryIdDic2.GetOrDefault(carryCodeQueryOutput.member_carrycode).ToString(); carryCodeQueryOutput.member_carryid = mCarryIdDic2.GetOrDefault(carryCodeQueryOutput.member_carrycode).ToString();
} }
return data; return data;