增加提示

This commit is contained in:
18942506660
2024-03-27 14:58:37 +08:00
parent e3730f19ab
commit 2ae1f6e97c
2 changed files with 7 additions and 0 deletions

View File

@@ -75,6 +75,12 @@ namespace WMS.Web.Domain.Services
var dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
if (dBox == null)
{
//V01.05.00如果扫的内容不是CTN开头则提示"请扫描箱码作为箱号"
if (string.IsNullOrEmpty(d.DestBoxBillNo) || d.DestBoxBillNo.Length <= 3)
return Result.ReFailure(ResultCodes.BoxBillNoError);
if (d.DestBoxBillNo.Substring(0, 3) != "CTN")
return Result.ReFailure(ResultCodes.BoxBillNoError);
var res = await CreateBox(d);
if (!res.IsSuccess) return res;
dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);

View File

@@ -45,6 +45,7 @@ namespace WMS.Web.Domain.Values
public static ValueTuple<int, string> BoxIsTrueShelf = (80000, "箱号已上架入库");
public static ValueTuple<int, string> BoxNoData = (80000, "系统找不到该箱号");
public static ValueTuple<int, string> InStockTaskBoxIsHaveData = (80000, "该箱已收货");
public static ValueTuple<int, string> BoxBillNoError = (80000, "请扫描箱码作为箱号");
public static ValueTuple<int, string> BoxMateriaNoData = (800010, "箱对应物料信息不存在");
public static ValueTuple<int, string> MateriaNoData = (800011, "产品信息不存在");
public static ValueTuple<int, string> BoxInventorySerialNumbersNoData = (800012, "序列号不存在于箱库存数据中");