客户端版本更新为V1.0.3

批量导入默认批次+输入批次格式校验
This commit is contained in:
hehaibing-1996
2025-04-02 14:11:34 +08:00
parent 7bd48ebe63
commit 5a074ee3d6
2 changed files with 22 additions and 1 deletions

View File

@ -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) //if (!string.IsNullOrEmpty(matDetailCurrentInfo.货架编码) && matDetailCurrentInfo.货架编码 == shelfInfo.ShelfCode)
//{ //{

View File

@ -8,7 +8,7 @@
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<Company>重庆盟讯电子科技有限公司</Company> <Company>重庆盟讯电子科技有限公司</Company>
<Copyright>Copyright © 2025</Copyright> <Copyright>Copyright © 2025</Copyright>
<AssemblyVersion>1.0.2</AssemblyVersion> <AssemblyVersion>1.0.3</AssemblyVersion>
<FileVersion>1.0.2</FileVersion> <FileVersion>1.0.2</FileVersion>
<ApplicationIcon>Resources\Logo.ico</ApplicationIcon> <ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
<Authors>重庆盟讯电子科技有限公司</Authors> <Authors>重庆盟讯电子科技有限公司</Authors>