增强原材料卡片管理功能,新增免密接口和数据处理逻辑,支持原材料卡片的增删改查操作。更新前端视图以支持多行拆码明细拼接,优化用户体验和系统实时数据同步能力。
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
namespace YY.Admin.Core.Entity;
|
||||
|
||||
public class MesXslRawMaterialCard
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string? Barcode { get; set; }
|
||||
public string? BatchNo { get; set; }
|
||||
public DateTime? EntryDate { get; set; }
|
||||
public string? MaterialId { get; set; }
|
||||
public string? MaterialName { get; set; }
|
||||
public string? MaterialDesc { get; set; }
|
||||
public string? SupplierId { get; set; }
|
||||
public string? SupplierName { get; set; }
|
||||
public string? ManufacturerMaterialName { get; set; }
|
||||
public string? ShelfLife { get; set; }
|
||||
public decimal? TotalWeight { get; set; }
|
||||
public decimal? RemainingWeight { get; set; }
|
||||
public int? RemainingQuantity { get; set; }
|
||||
|
||||
/// <summary>状态:1正常 0异常(字典 xslmes_card_status)</summary>
|
||||
public string? Status { get; set; }
|
||||
|
||||
/// <summary>检测结果:0未检 1合格 2不合格(字典 xslmes_test_result)</summary>
|
||||
public string? TestResult { get; set; }
|
||||
|
||||
public string? WarehouseArea { get; set; }
|
||||
public string? UnloadOperator { get; set; }
|
||||
|
||||
/// <summary>优先出库:1是 0否</summary>
|
||||
public string? PriorityPickup { get; set; }
|
||||
|
||||
public string? CreateBy { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public string? UpdateBy { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public int? TenantId { get; set; }
|
||||
|
||||
public string StatusText => Status switch
|
||||
{
|
||||
"1" => "正常",
|
||||
"0" => "异常",
|
||||
_ => Status ?? ""
|
||||
};
|
||||
|
||||
public string TestResultText => TestResult switch
|
||||
{
|
||||
"0" => "未检",
|
||||
"1" => "合格",
|
||||
"2" => "不合格",
|
||||
_ => TestResult ?? ""
|
||||
};
|
||||
|
||||
public bool PriorityPickupBool => PriorityPickup == "1";
|
||||
public string PriorityPickupText => PriorityPickup == "1" ? "是" : "否";
|
||||
|
||||
public string EntryDateText => EntryDate.HasValue ? EntryDate.Value.ToString("yyyy-MM-dd") : "";
|
||||
}
|
||||
Reference in New Issue
Block a user