改了提示换行

This commit is contained in:
2025-08-08 11:48:13 +08:00
parent 6a60c68537
commit 8324794a0f
2 changed files with 11 additions and 11 deletions

View File

@@ -505,12 +505,12 @@ namespace BarCode.Web.Domain.Services
if (spec == "")
{
spec = y[0].Specifications;
spec = y[0].Specifications+" 序列码存在已使用, 请选择未使用序列码的数据 </br>";
// _logger.LogInformation($"获取到specA:{y[0].Specifications}");
}
else
{
spec = spec + "," + y[0].Specifications;
spec = spec + y[0].Specifications + " 序列码存在已使用, 请选择未使用序列码的数据 </br>";
// _logger.LogInformation($"获取到spec:{spec}");
}
}
@@ -538,12 +538,12 @@ namespace BarCode.Web.Domain.Services
var y = dto.ids.Where(x => x.Id == generateRecords[i].Id).ToList();
if (specNum == "")
{
specNum = y[0].Specifications;
specNum = y[0].Specifications + " 序列码存在已使用, 不支持转两件装!<br>";
// _logger.LogInformation($"获取到specA:{y[0].Specifications}");
}
else
{
specNum = specNum + "," + y[0].Specifications;
specNum = specNum + y[0].Specifications + " 序列码存在已使用, 不支持转两件装!<br>";
// _logger.LogInformation($"获取到spec:{spec}");
}
@@ -552,18 +552,18 @@ namespace BarCode.Web.Domain.Services
}
if (strMes != "" && specNum != "")
{
ValueTuple<int, string> IsUseError = (70003, specNum + " 条码个数为单数, 不支持转两件装!" + strMes + " 序列码存在已使用, 不支持转两件装!");
ValueTuple<int, string> IsUseError = (70003, specNum + strMes );
return Result.ReFailure(IsUseError);
}
else if (specNum != "")
{
ValueTuple<int, string> strMesError = (70005, specNum + " 条码个数为单数, 不支持转两件装!");
ValueTuple<int, string> strMesError = (70005, specNum );
return Result.ReFailure(strMesError);
}
else if (strMes != "")
{
ValueTuple<int, string> strMesError = (70004, strMes + " 序列码存在已使用, 不支持转两件装!");
ValueTuple<int, string> strMesError = (70004, strMes );
return Result.ReFailure(strMesError);
}