diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Orders/PurchaseOrders/Inputs/PurchaseOrderImportInput.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Orders/PurchaseOrders/Inputs/PurchaseOrderImportInput.cs
index c3d4b92a8..827b3dead 100644
--- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Orders/PurchaseOrders/Inputs/PurchaseOrderImportInput.cs
+++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Orders/PurchaseOrders/Inputs/PurchaseOrderImportInput.cs
@@ -20,18 +20,21 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
///
[Display(Name = "采购订单号")]
[Key]
+ [Required(ErrorMessage = "{0}是必填项")]
public string Number { get; set; }
///
/// 供应商代码
///
[Display(Name = "供应商代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string SupplierCode { get; set; }
///
/// 订单类型
///
[Display(Name = "订单类型")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string PoType { get; set; }
///
@@ -52,6 +55,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 订单日期
///
[Display(Name = "订单日期")]
+ [Required(ErrorMessage = "{0}是必填项")]
[ImporterHeader(Name = "订单日期", Format = "yyyy/MM/dd")]
[ExporterHeader(DisplayName = "订单日期", Format = "yyyy/MM/dd")]
public DateTime OrderDate { get; set; }
@@ -60,6 +64,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 截止日期
///
[Display(Name = "截止日期")]
+ [Required(ErrorMessage = "{0}是必填项")]
[ImporterHeader(Name = "截止日期", Format = "yyyy/MM/dd")]
[ExporterHeader(DisplayName = "截止日期", Format = "yyyy/MM/dd")]
public DateTime DueDate { get; set; }
@@ -81,18 +86,21 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 仓库代码
///
[Display(Name = "仓库代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string WarehouseCode { get; set; }
///
/// 明细-订单行
///
[Display(Name = "明细-订单行")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string PoLine { get; set; }
///
/// 明细-物品代码
///
[Display(Name = "明细-物品代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string ItemCode { get; set; }
///
@@ -106,6 +114,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 数量计量单位
///
[Display(Name = "明细-数量计量单位")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string Uom { get; set; }
///
@@ -126,6 +135,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 明细-供应商包装单位
///
[Display(Name = "明细-供应商包装单位")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string SupplierPackUom { get; set; }
///
@@ -146,12 +156,14 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 筹措员代码
///
[Display(Name = "明细-筹措员代码")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string PlanUserCode { get; set; }
///
/// 生产批次
///
[Display(Name = "明细-生产批次")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string Lot { get; set; }
///
@@ -167,6 +179,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 明细-类型 暂定:备件是B 辅材是F 生产为空
///
[Display(Name = "明细-类型 备件是B 辅材是F 生产为空")]
+ [Required(ErrorMessage = "{0}是必填项")]
public string Ctype { get; set; }
///
@@ -182,6 +195,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase
/// 过期时间
///
[Display(Name = "明细-过期时间")]
+ [Required(ErrorMessage = "{0}是必填项")]
public DateTime ExpireDate { get; set; }
///