From bd984ed0aa6ed9f8ea917d47916bd43a69725c17 Mon Sep 17 00:00:00 2001 From: chenwenkai <1084072318@qq.com> Date: Mon, 28 Oct 2024 15:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=A1=91=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E6=8F=90=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 81a5d52a..b4f40568 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -2025,6 +2025,15 @@ namespace Tnb.ProductionMgr PrdMo mo = await _db.Queryable().SingleAsync(x => x.id == prdMoTask.mo_id); + #region 注塑生产任务提报时,如果起始库位( 当前设备的下料点)已经存在业务类型为配送申请,并且实际开始配送时间为空的任务执行,则不能提报,并提示 + if (mo.mo_type == DictConst.PrdMoTypeZS) + { + var wmsDistaskHs = _db.Queryable().Where(r => r.startlocation_id == equip.downmat_location_id && r.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID && !r.act_start_date.HasValue); + if (wmsDistaskHs != null && wmsDistaskHs.Count() > 0) + throw Oops.Bah("请等待AGV配送完成后提报"); + } + #endregion + bool changeBatchFlag = false; int changeCountNumByDay = 0; int changeCountNumByQty = 0;