Merge branch 'v1.0.5' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api into v1.0.5
This commit is contained in:
@@ -63,7 +63,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// 操作时间
|
||||
/// </summary>
|
||||
[Column("OperateTime")]
|
||||
public DateTime OperateTime { get; set; }
|
||||
public DateTime OperateTime { get; set; } = DateTime.Now;
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
@@ -72,6 +72,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
{
|
||||
this.CreatorId = creatorId;
|
||||
this.CreateTime = DateTime.Now;
|
||||
this.OperateTime = DateTime.Now;
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -507,6 +507,7 @@ namespace WMS.Web.Domain.Services
|
||||
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, detail.MaterialNumber),
|
||||
AccruedQty = entity.Details.FirstOrDefault(f => f.MaterialNumber == detail.MaterialNumber)?.AccruedQty ?? 0
|
||||
};
|
||||
response.Details.Add(infoDetail);
|
||||
}
|
||||
|
||||
return Result<OutStockTaskInfoResponse>.ReSuccess(response);
|
||||
|
||||
@@ -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, "序列号不存在于箱库存数据中");
|
||||
|
||||
@@ -174,7 +174,7 @@ namespace WMS.Web.Repositories
|
||||
}
|
||||
|
||||
var query = _context.SubscribeNotification
|
||||
.OrderByDescending(o => o.Id)
|
||||
.OrderByDescending(o => o.OperateTime)
|
||||
.Where(adv => 1 == 1 && adv.IsDelete != true);
|
||||
|
||||
if (!string.IsNullOrEmpty(dto.Creator))
|
||||
|
||||
Reference in New Issue
Block a user