长管投料不解绑父载具

This commit is contained in:
2024-07-01 11:19:08 +08:00
parent 52f200d555
commit 46f7b4bf20
4 changed files with 79 additions and 17 deletions

View File

@@ -18,6 +18,7 @@ using Tnb.ProductionMgr.Entities.Dto;
using Tnb.ProductionMgr.Interfaces;
using Tnb.WarehouseMgr;
using Tnb.WarehouseMgr.Entities;
using Tnb.WarehouseMgr.Entities.Consts;
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
using Tnb.WarehouseMgr.Interfaces;
using Tnb.WarehouseMgr.Entities.Enums;
@@ -511,8 +512,13 @@ namespace Tnb.ProductionMgr
_ = await db.Insertable<PrdFeedingH>(prdFeedingH).ExecuteCommandAsync();
_ = await db.Insertable<PrdFeedingD>(list).ExecuteCommandAsync();
if (prdMaterialReceiptH == null)
{
throw Oops.Bah("未找到投料记录");
}
if (prdMaterialReceiptH.first_feed)
if (prdMaterialReceiptH.first_feed && carry.carrystd_id==WmsWareHouseConst.CARRY_LXSTD_ID)
{
await db.Updateable<PrdMaterialReceiptH>()
.SetColumns(x => x.first_feed == false)