BIP异常信息接口:采购订单删除,修改接口

This commit is contained in:
2024-10-29 10:31:39 +08:00
parent bd984ed0aa
commit 45d5eff708
4 changed files with 173 additions and 4 deletions

View File

@@ -2025,10 +2025,10 @@ namespace Tnb.ProductionMgr
PrdMo mo = await _db.Queryable<PrdMo>().SingleAsync(x => x.id == prdMoTask.mo_id);
#region
#region ,
if (mo.mo_type == DictConst.PrdMoTypeZS)
{
var wmsDistaskHs = _db.Queryable<WmsDistaskH>().Where(r => r.startlocation_id == equip.downmat_location_id && r.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID && !r.act_start_date.HasValue);
var wmsDistaskHs = _db.Queryable<WmsDistaskH>().Where(r => r.startlocation_id == equip.downmat_location_id && r.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID && !r.act_start_date.HasValue && r.status!=WmsWareHouseConst.TASK_BILL_STATUS_CANCEL_ID);
if (wmsDistaskHs != null && wmsDistaskHs.Count() > 0)
throw Oops.Bah("请等待AGV配送完成后提报");
}