出入库回退上下架

This commit is contained in:
tongfei
2023-10-31 10:42:11 +08:00
parent bcedfe0189
commit ddd67065dc
17 changed files with 439 additions and 12 deletions

View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WMS.Web.Core.Dto.BackRecord
{
/// <summary>
/// 保存出入库回退上下架明细:请求对象
/// </summary>
public class SaveBackRecordDetailsRequest
{
/// <summary>
/// 所属箱号ID
/// </summary>
[Required(ErrorMessage = "箱号不能为空")]
public int BoxId { get; set; }
/// <summary>
/// 物料ID
/// </summary>
[Required(ErrorMessage = "物料不能为空")]
public int MaterialId { get; set; }
/// <summary>
/// 数量
/// </summary>
[Required(ErrorMessage = "数量不能为空")]
public decimal Qty { get; set; }
/// <summary>
/// 仓位ID
/// </summary>
[Required(ErrorMessage = "仓位不能为空")]
public int SubStockId { get; set; }
/// <summary>
/// 序列号集
/// </summary>
[Required(ErrorMessage = "序列号不能为空")]
public string SerialNumbers { get; set; }
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WMS.Web.Core.Dto.BackRecord
{
/// <summary>
/// 保存出入库回退上下架:请求对象
/// </summary>
public class SaveBackRecordRequest
{
/// <summary>
/// 类型1为入库回退下架2为出库回退上架
/// </summary>
[Required(ErrorMessage = "类型不能为空")]
public int Type { get; set; }
/// <summary>
/// 明细
/// </summary>
public List<SaveBackRecordDetailsRequest> Details { get; set; } = new List<SaveBackRecordDetailsRequest>();
}
}

View File

@@ -30,6 +30,10 @@ namespace WMS.Web.Core.Dto
/// 入库状态
/// </summary>
public Dictionary<string, string> InstockStatus { get; set; } = new Dictionary<string, string>();
/// <summary>
/// 类型1为入库回退下架2为出库回退上架
/// </summary>
public Dictionary<string, string> BackRecordType { get; set; } = new Dictionary<string, string>();