生产提报判定载具是否绑定
This commit is contained in:
@@ -46,6 +46,7 @@ using Tnb.WarehouseMgr.Entities.Dto;
|
|||||||
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
|
||||||
using Tnb.WarehouseMgr.Interfaces;
|
using Tnb.WarehouseMgr.Interfaces;
|
||||||
using Tnb.WarehouseMgr;
|
using Tnb.WarehouseMgr;
|
||||||
|
using Tnb.WarehouseMgr.Entities.Enums;
|
||||||
|
|
||||||
// using Tnb.PerMgr.Entities;
|
// using Tnb.PerMgr.Entities;
|
||||||
|
|
||||||
@@ -1958,6 +1959,10 @@ namespace Tnb.ProductionMgr
|
|||||||
WmsCarryH wmsCarryH = await db.Queryable<WmsCarryH>().SingleAsync((x => x.carry_code == materialBoxCode));
|
WmsCarryH wmsCarryH = await db.Queryable<WmsCarryH>().SingleAsync((x => x.carry_code == materialBoxCode));
|
||||||
if (wmsCarryH == null)
|
if (wmsCarryH == null)
|
||||||
throw Oops.Bah($"未找到{materialBoxCode}载具");
|
throw Oops.Bah($"未找到{materialBoxCode}载具");
|
||||||
|
if (wmsCarryH.carry_status == ((int)EnumCarryStatus.占用).ToString())
|
||||||
|
{
|
||||||
|
throw Oops.Bah($"提报失败,载具已绑定");
|
||||||
|
}
|
||||||
|
|
||||||
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
|
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
|
||||||
bindCarryCodeInput.carry_id = wmsCarryH.id;
|
bindCarryCodeInput.carry_id = wmsCarryH.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user