feat(库存管理): 添加出货操作功能
实现物料出货功能,包括库存校验、事务处理、单据生成和关联订单/工单更新 支持蓝单正向和红单逆向操作,包含完整的参数校验和错误处理
This commit is contained in:
52
DOAN.Model/MES/Material/Dto/ShipmentDto.cs
Normal file
52
DOAN.Model/MES/Material/Dto/ShipmentDto.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DOAN.Model.BZFM.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 出货请求参数
|
||||
/// </summary>
|
||||
public class ShipmentDto
|
||||
{
|
||||
[Required(ErrorMessage = "物料编码不能为空")]
|
||||
public string MaterialCode { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "出货数量不能为空")]
|
||||
public decimal Quantity { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "仓库编码不能为空")]
|
||||
public string WarehouseCode { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "库位编码不能为空")]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
public string BatchNo { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "操作员不能为空")]
|
||||
public string Operator { get; set; }
|
||||
|
||||
public string Workorder { get; set; }
|
||||
|
||||
public string WorkorderRaw { get; set; }
|
||||
|
||||
public string OrderNo { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "交易类型不能为空")]
|
||||
public string TransactionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remarks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户订单号
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "客户订单号不能为空")]
|
||||
public string CustomerOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据类型:1-蓝单正向,2-红单逆向
|
||||
/// </summary>
|
||||
public int ReceiptType { get; set; } = 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user