增加提示
This commit is contained in:
@@ -75,6 +75,12 @@ namespace WMS.Web.Domain.Services
|
|||||||
var dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
var dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
||||||
if (dBox == null)
|
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);
|
var res = await CreateBox(d);
|
||||||
if (!res.IsSuccess) return res;
|
if (!res.IsSuccess) return res;
|
||||||
dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ namespace WMS.Web.Domain.Values
|
|||||||
public static ValueTuple<int, string> BoxIsTrueShelf = (80000, "箱号已上架入库");
|
public static ValueTuple<int, string> BoxIsTrueShelf = (80000, "箱号已上架入库");
|
||||||
public static ValueTuple<int, string> BoxNoData = (80000, "系统找不到该箱号");
|
public static ValueTuple<int, string> BoxNoData = (80000, "系统找不到该箱号");
|
||||||
public static ValueTuple<int, string> InStockTaskBoxIsHaveData = (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> BoxMateriaNoData = (800010, "箱对应物料信息不存在");
|
||||||
public static ValueTuple<int, string> MateriaNoData = (800011, "产品信息不存在");
|
public static ValueTuple<int, string> MateriaNoData = (800011, "产品信息不存在");
|
||||||
public static ValueTuple<int, string> BoxInventorySerialNumbersNoData = (800012, "序列号不存在于箱库存数据中");
|
public static ValueTuple<int, string> BoxInventorySerialNumbersNoData = (800012, "序列号不存在于箱库存数据中");
|
||||||
|
|||||||
Reference in New Issue
Block a user