出入库,后道标签打印调整(后道标签打印有问题)

This commit is contained in:
2025-08-28 10:10:15 +08:00
parent 781a519803
commit 0350a43055
21 changed files with 1350 additions and 420 deletions

View File

@@ -58,9 +58,6 @@ namespace ZR.Model.MES.wms.Dto
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
/// <summary>
/// 出货单(物料+客户)输入输出对象
@@ -82,6 +79,27 @@ namespace ZR.Model.MES.wms.Dto
}
/// <summary>
/// 出货单详细信息,绑定的物料清单
/// </summary>
public class WmOutOrderMaterialDto
{
/// <summary>
/// 出库单号
/// </summary>
public string FkShipmentNum { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string FkMaterialCode { get; set; }
/// <summary>
/// 出货数量
/// </summary>
public int Number { get; set; } = 0;
}
// 出货到出货记录表
public class WmDoMaterialOut_Dto
{
@@ -163,4 +181,101 @@ namespace ZR.Model.MES.wms.Dto
}
/// <summary>
/// PDA 出库单列表
/// </summary>
public class WmPDAOutOrderListDto
{
// 出库单号
public string ShipmentNum { get; set; }
// 客户编号
public string CustomName { get; set; }
// 出库单状态1-出库中 2-出库完成 3-弃用)
public int Type { get; set; }
// 先进先出检查0-停用 1-启用)
public int? Status { get; set; }
// 计划出库数量
// public int PlanOutNumber { get; set; } = 0;
// 实际出库数量
// public int ActualOutNumber { get; set; } = 0;
}
/// <summary>
/// PDA 出库计划列表
/// </summary>
public class WmPDAOutPlanListDto
{
// 出库单号
public string ShipmentNum { get; set; }
// 物料号
public string MaterialCode { get; set; }
// 物料描述
public string Description { get; set; } = "无描述";
// 批次号
public string BatchCode { get; set; }
// 仓库号
public string WarehouseCode { get; set; }
// 计划出库零件数
public int PlanOutNumber { get; set; } = 0;
// 库存零件数
public int InventoryNumber { get; set; } = 0;
// 实际出库零件数
public int ActualOutNumber { get; set; } = 0;
// 计划出库箱
public int PlanOutPackage { get; set; } = 0;
// 库存箱数
public int InventoryPackage { get; set; } = 0;
// 实际出库箱
public int ActualOutPackage { get; set; } = 0;
}
/// <summary>
/// PDA 获取某出库计划已出库数量
/// </summary>
public class WmPDAOutOnePlanActualDataDto
{
// 出库单号
public string ShipmentNum { get; set; }
// 物料号
public string MaterialCode { get; set; }
// 批次号
public string BatchCode { get; set; }
// 库存零件数
public int InventoryNumber { get; set; } = 0;
// 实际出库零件数
public int ActualOutNumber { get; set; } = 0;
// 库存箱数
public int InventoryPackage { get; set; } = 0;
// 实际出库箱
public int ActualOutPackage { get; set; } = 0;
}
/// <summary>
/// PDA 出库请求
/// </summary>
public class WmPDAOutboundDto
{
// 严格模式
public bool IsStrict { get; set; } = true;
// 出库单号
public string ShipmentNum { get; set; }
// 物料号
public string MaterialCode { get; set; }
// 批次号
public string BatchCode { get; set; }
// 当前出库箱
public int CurrentOutPackage { get; set; } = 0;
// 当前出库零件数
public int CurrentOutNumber { get; set; } = 0;
// 计划出库箱
public int PlanOutPackage { get; set; } = 0;
// 计划出库零件数
public int PlanOutNumber { get; set; } = 0;
// 出库清单
public List<string> PackageCodeList { get; set; }
// 出库人
public string Operator { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.MES.wms.Dto
{
/// <summary>
/// PDA 出库单列表查询对象
/// </summary>
public class WmPDAOutOrderPageQueryDto : PagerInfo
{
// 出库单状态1-出库中 2-出库完成 3-弃用)
public string Type { get; set; }
// 出库单号
public string ShipmentNum { get; set; }
}
/// <summary>
/// PDA 出库计划列表查询对象
/// </summary>
public class WmPDAOutOrderPlanPageQueryDto : PagerInfo
{
// 出库单号
public string ShipmentNum { get; set; }
// 物料号
public string MaterialCode { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
namespace ZR.Model.MES.wms
{
/// <summary>
/// 物料表和出库单关联表
/// </summary>
[SugarTable("wm_out_order_material_rel")]
public class WmOutOrderMaterialRel
{
/// <summary>
/// 出库单号
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "fk_shipment_num")]
public string FkShipmentNum { get; set; }
/// <summary>
/// 物料编码
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "fk_material_code")]
public string FkMaterialCode { get; set; }
/// <summary>
/// 出货数量
/// </summary>
[SugarColumn(ColumnName = "number")]
public int Number { get; set; }
}
}