wms扫码入库逻辑代码提交

This commit is contained in:
alex
2023-06-16 15:10:11 +08:00
parent c0c3996690
commit 034d5746de
8 changed files with 96 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ using Aop.Api.Domain;
using Aspose.Cells.Drawing;
using Dm;
using JNPF.Common.Contracts;
using JNPF.Common.Core.Manager;
using JNPF.Common.Enums;
using JNPF.Common.Extension;
using JNPF.Common.Security;
@@ -49,11 +50,13 @@ namespace Tnb.WarehouseMgr
private readonly ISqlSugarClient _db;
private readonly IDictionaryDataService _dictionaryDataService;
private readonly IBillRullService _billRullService;
public WareHouseService(ISqlSugarRepository<WmsInstockH> repository, IDictionaryDataService dictionaryDataService, IBillRullService billRullService)
private readonly IUserManager _userManager;
public WareHouseService(ISqlSugarRepository<WmsInstockH> repository, IDictionaryDataService dictionaryDataService, IBillRullService billRullService, IUserManager userManager)
{
_db = repository.AsSugarClient();
_dictionaryDataService = dictionaryDataService;
_billRullService = billRullService;
_userManager = userManager;
}
/// <summary>
/// 根据载具Id带出库位、仓库信息
@@ -438,9 +441,9 @@ namespace Tnb.WarehouseMgr
{
foreach (var dt in disTasks)
{
if (!input.prefix.IsNullOrWhiteSpace())
if (_userManager.User.LoginType == "App")
{
dt.biz_type = $"{input.prefix}{dt.biz_type}";
dt.biz_type = $"pda{dt.biz_type}";
}
var upInput = new WareHouseUpInput { bizTypeId = dt.biz_type, requireId = dt.require_id };
if (dt.is_chain == 0)