feat(入库流程): 实现完整的入库流程逻辑
1. 在IUnitWork接口和实现中添加Save方法用于保存更改 2. 完善WCS任务状态处理逻辑,区分线边库和成品库的不同处理流程 3. 实现入库控制器SubmitReceipt方法,包含库位分配、任务创建、库存记录等完整流程 4. 修改LocationTypeEnum枚举值定义,将L改为C表示成品库位 5. 优化库位查询逻辑,增加高度和类型过滤条件 6. 修改容器类型从枚举改为静态类定义 7. 修复LocationController中库位编码生成格式 8. 在WcsRequest中添加LocationType字段用于库位类型区分
This commit is contained in:
1 parent
2b01cc7584
commit
42c26b2800
9 files changed
+322
-32
No files matched your search
@@ -73,19 +73,19 @@ public class Location : BasePoco
|
||||
public enum LocationTypeEnum : short
|
||||
{
|
||||
/// <summary>
|
||||
/// 立库
|
||||
/// 成品库位
|
||||
/// </summary>
|
||||
[Display(Name = "LocationTypeEnum.L")]
|
||||
L = 0,
|
||||
C = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 模具库
|
||||
/// 模具库位
|
||||
/// </summary>
|
||||
[Display(Name = "LocationTypeEnum.M")]
|
||||
M = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 线边库
|
||||
/// 线边库位
|
||||
/// </summary>
|
||||
[Display(Name = "LocationTypeEnum.X")]
|
||||
X = 2
|
||||
|
||||
@@ -29,13 +29,13 @@ namespace HHWMS.Web.Models
|
||||
/// 入库任务
|
||||
/// </summary>
|
||||
[Display(Name = "TaskType.In")]
|
||||
盘料盒入库 = 1,
|
||||
入库 = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 出库任务
|
||||
/// </summary>
|
||||
[Display(Name = "TaskType.Out")]
|
||||
盘料盒出库 = 2,
|
||||
出库 = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 盘料入库
|
||||
@@ -104,16 +104,11 @@ namespace HHWMS.Web.Models
|
||||
/// <summary>
|
||||
/// 容器类型
|
||||
/// </summary>
|
||||
public enum ContainerTypeEnum : int
|
||||
public static class ContainerTypeEnum
|
||||
{
|
||||
//// 11:23格料盒; 12:13格料盒; 13:16格料盒; 14:19格料盒
|
||||
格料盒23 = 11,
|
||||
|
||||
格料盒13 = 12,
|
||||
|
||||
格料盒16 = 13,
|
||||
|
||||
格料盒19 = 14,
|
||||
public const string 线边库 = "X";
|
||||
public const string 成品库 = "L";
|
||||
public const string 模具库 = "M";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public class WcsRequest
|
||||
@@ -10,5 +12,6 @@ namespace HHWMS.Web
|
||||
public decimal? Length { get; set; }
|
||||
public decimal? Width { get; set; }
|
||||
public decimal? Height { get; set; }
|
||||
public LocationTypeEnum LocationType { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user