生产提报判定载具是否绑定

This commit is contained in:
2024-06-21 14:08:28 +08:00
parent c9ad81052e
commit c0bb859f56

View File

@@ -46,6 +46,7 @@ using Tnb.WarehouseMgr.Entities.Dto;
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
using Tnb.WarehouseMgr.Interfaces;
using Tnb.WarehouseMgr;
using Tnb.WarehouseMgr.Entities.Enums;
// using Tnb.PerMgr.Entities;
@@ -1958,6 +1959,10 @@ namespace Tnb.ProductionMgr
WmsCarryH wmsCarryH = await db.Queryable<WmsCarryH>().SingleAsync((x => x.carry_code == materialBoxCode));
if (wmsCarryH == null)
throw Oops.Bah($"未找到{materialBoxCode}载具");
if (wmsCarryH.carry_status == ((int)EnumCarryStatus.).ToString())
{
throw Oops.Bah($"提报失败,载具已绑定");
}
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
bindCarryCodeInput.carry_id = wmsCarryH.id;