出库修复

This commit is contained in:
18942506660
2023-11-23 16:17:57 +08:00
parent 65bf0d273d
commit 6f9bc05ddf
2 changed files with 8 additions and 2 deletions

View File

@@ -32,6 +32,11 @@ namespace WMS.Web.Domain.Entitys
[Column("BillNo")] [Column("BillNo")]
public string BillNo { get; set; } public string BillNo { get; set; }
/// <summary> /// <summary>
/// 出货方式
/// </summary>
[Column("Method")]
public InventoryInOutMethod Method { get; set; } = InventoryInOutMethod.Box;
/// <summary>
/// 单据类型 /// 单据类型
/// </summary> /// </summary>
[Column("Type")] [Column("Type")]
@@ -99,10 +104,11 @@ namespace WMS.Web.Domain.Entitys
/// 创建(需要在明细都生成后最后调用) /// 创建(需要在明细都生成后最后调用)
/// </summary> /// </summary>
/// <param name="creatorId"></param> /// <param name="creatorId"></param>
public void Create(int creatorId, OutStockTask task) public void Create(int creatorId, OutStockTask task,int method)
{ {
this.TaskId = task.Id; this.TaskId = task.Id;
this.Type = task.Type; this.Type = task.Type;
this.Method = (InventoryInOutMethod)method;
this.DeliveryOrgId = task.DeliveryOrgId; this.DeliveryOrgId = task.DeliveryOrgId;
this.ReceiptCustomerId = task.ReceiptCustomerId; this.ReceiptCustomerId = task.ReceiptCustomerId;
this.CreatorId = creatorId; this.CreatorId = creatorId;

View File

@@ -133,7 +133,7 @@ namespace WMS.Web.Domain.Services
outd.SerialNumbers.AddRange(dtoDetails.SelectMany(s => s.SerialNumbers)); outd.SerialNumbers.AddRange(dtoDetails.SelectMany(s => s.SerialNumbers));
entity.Details.Add(outd); entity.Details.Add(outd);
} }
entity.Create(loginInfo.UserInfo.StaffId, outStockTask); entity.Create(loginInfo.UserInfo.StaffId, outStockTask,dto.Method);
#region dto #region dto
List<BoxInventoryGenerateDto> inventoryList = new List<BoxInventoryGenerateDto>(); List<BoxInventoryGenerateDto> inventoryList = new List<BoxInventoryGenerateDto>();