客户端版本更新为V1.0.3
批量导入默认批次+输入批次格式校验
This commit is contained in:
@ -354,6 +354,27 @@ namespace WCS.BLL.Services.Service
|
||||
};
|
||||
}
|
||||
|
||||
//物料批次
|
||||
//如果未填写 默认为当前日期
|
||||
matDetailCurrentInfo.物料批次 = matDetailCurrentInfo.物料批次.Trim();
|
||||
if (string.IsNullOrEmpty(matDetailCurrentInfo.物料批次))
|
||||
{
|
||||
matDetailCurrentInfo.物料批次 = DateTime.Now.ToString("yyMMdd");
|
||||
}
|
||||
//如果填写 校验其必须为6位数字
|
||||
else
|
||||
{
|
||||
if (!Regex.IsMatch(matDetailCurrentInfo.物料批次, @"^\d{6}$"))
|
||||
{
|
||||
return new ResponseCommon<List<string>>()
|
||||
{
|
||||
Code = 201,
|
||||
Message = $"导入失败:批次应输入六位数字!\r\n(如20250101)",
|
||||
Data = null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
//不校验货架
|
||||
//if (!string.IsNullOrEmpty(matDetailCurrentInfo.货架编码) && matDetailCurrentInfo.货架编码 == shelfInfo.ShelfCode)
|
||||
//{
|
||||
|
@ -8,7 +8,7 @@
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Company>重庆盟讯电子科技有限公司</Company>
|
||||
<Copyright>Copyright © 2025</Copyright>
|
||||
<AssemblyVersion>1.0.2</AssemblyVersion>
|
||||
<AssemblyVersion>1.0.3</AssemblyVersion>
|
||||
<FileVersion>1.0.2</FileVersion>
|
||||
<ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
|
||||
<Authors>重庆盟讯电子科技有限公司</Authors>
|
||||
|
Reference in New Issue
Block a user