erp生产工单

This commit is contained in:
2024-07-03 17:02:05 +08:00
parent d2f3a7aff7
commit 2da3feb5e4
8 changed files with 138 additions and 35 deletions

View File

@@ -2071,6 +2071,11 @@ namespace Tnb.ProductionMgr
{
throw Oops.Bah($"提报失败,载具已绑定");
}
List<WmsCarryCode> wmsCarryCodes = await db.Queryable<WmsCarryCode>().Where(x=>x.carry_code==materialBoxCode).ToListAsync();
if (wmsCarryCodes != null && wmsCarryCodes.Count > 0)
{
Log.Error($"载具{materialBoxCode}状态为{wmsCarryH.carry_status},但有条码{JsonConvert.SerializeObject(wmsCarryCodes)}");
}
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
bindCarryCodeInput.carry_id = wmsCarryH.id;