diff --git a/src/WMS.Web.Domain/Entitys/OutStock.cs b/src/WMS.Web.Domain/Entitys/OutStock.cs index 251c0fea..b6715c98 100644 --- a/src/WMS.Web.Domain/Entitys/OutStock.cs +++ b/src/WMS.Web.Domain/Entitys/OutStock.cs @@ -32,6 +32,11 @@ namespace WMS.Web.Domain.Entitys [Column("BillNo")] public string BillNo { get; set; } /// + /// 出货方式 + /// + [Column("Method")] + public InventoryInOutMethod Method { get; set; } = InventoryInOutMethod.Box; + /// /// 单据类型 /// [Column("Type")] @@ -99,10 +104,11 @@ namespace WMS.Web.Domain.Entitys /// 创建(需要在明细都生成后最后调用) /// /// - public void Create(int creatorId, OutStockTask task) + public void Create(int creatorId, OutStockTask task,int method) { this.TaskId = task.Id; this.Type = task.Type; + this.Method = (InventoryInOutMethod)method; this.DeliveryOrgId = task.DeliveryOrgId; this.ReceiptCustomerId = task.ReceiptCustomerId; this.CreatorId = creatorId; diff --git a/src/WMS.Web.Domain/Services/OutStockService.cs b/src/WMS.Web.Domain/Services/OutStockService.cs index b9f62ea2..64142994 100644 --- a/src/WMS.Web.Domain/Services/OutStockService.cs +++ b/src/WMS.Web.Domain/Services/OutStockService.cs @@ -133,7 +133,7 @@ namespace WMS.Web.Domain.Services outd.SerialNumbers.AddRange(dtoDetails.SelectMany(s => s.SerialNumbers)); entity.Details.Add(outd); } - entity.Create(loginInfo.UserInfo.StaffId, outStockTask); + entity.Create(loginInfo.UserInfo.StaffId, outStockTask,dto.Method); #region 组装库存dto List inventoryList = new List();