生产投料解绑载具物料

This commit is contained in:
2024-06-24 11:55:44 +08:00
parent a5eb93809d
commit 7358039095
2 changed files with 58 additions and 48 deletions

View File

@@ -16,6 +16,8 @@ using Tnb.ProductionMgr.Entities;
using Tnb.ProductionMgr.Entities.Dto;
using Tnb.ProductionMgr.Interfaces;
using Tnb.WarehouseMgr.Entities;
using Tnb.WarehouseMgr.Entities.Dto.Inputs;
using Tnb.WarehouseMgr.Interfaces;
namespace Tnb.ProductionMgr
{
@@ -31,6 +33,7 @@ namespace Tnb.ProductionMgr
private readonly IPrdMoTaskService _prdMoTaskService;
private readonly IBillRullService _billRullService;
private readonly IDictionaryDataService _dictionaryDataService;
private readonly IWmsCarryBindService _wmsCarryBindService;
// private readonly WmsSignForDeliveryService _wmsSignForDeliveryService;
@@ -41,6 +44,7 @@ namespace Tnb.ProductionMgr
IPrdMoTaskService prdMoTaskService,
// WmsSignForDeliveryService wmsSignForDeliveryService,
IDictionaryDataService dictionaryDataService,
IWmsCarryBindService wmsCarryBindService,
IUserManager userManager
)
{
@@ -50,6 +54,7 @@ namespace Tnb.ProductionMgr
// _wmsSignForDeliveryService = _wmsSignForDeliveryService;
_dictionaryDataService = dictionaryDataService;
_billRullService = billRullService;
_wmsCarryBindService = wmsCarryBindService;
}
@@ -452,6 +457,10 @@ namespace Tnb.ProductionMgr
_ = await db.Insertable<PrdFeedingH>(prdFeedingH).ExecuteCommandAsync();
_ = await db.Insertable<PrdFeedingD>(list).ExecuteCommandAsync();
_wmsCarryBindService.CarryCodeUnbind(new CarryCodeUnbindInput()
{
carry_id = carry.id
});
});