From 6f9bc05ddf3ca80483eace1a5840ec8deebcf240 Mon Sep 17 00:00:00 2001
From: 18942506660 <18942506660@A18942506660>
Date: Thu, 23 Nov 2023 16:17:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/WMS.Web.Domain/Entitys/OutStock.cs | 8 +++++++-
src/WMS.Web.Domain/Services/OutStockService.cs | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
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();