Commit 11607f42 authored by liudong1993's avatar liudong1993

物料返回 商品信息

parent 6226ec89
...@@ -181,5 +181,26 @@ namespace Property.Model.Entity ...@@ -181,5 +181,26 @@ namespace Property.Model.Entity
get; get;
set; set;
} }
/// <summary>
/// 商品id
/// </summary>
public int? GoodsId { get; set; }
/// <summary>
/// 规格名称
/// </summary>
public string SpecificationName { get; set; }
/// <summary>
/// 规格Key
/// </summary>
public string SpecificationKey { get; set; }
/// <summary>
/// 商品分类ids
/// </summary>
public string GoodsCategoryIds { get; set; }
/// <summary>
/// 商品分类名称
/// </summary>
public string GoodsCategoryName { get; set; }
} }
} }
\ No newline at end of file
...@@ -39,5 +39,13 @@ namespace Property.Model.Extend ...@@ -39,5 +39,13 @@ namespace Property.Model.Extend
/// 档案ids /// 档案ids
/// </summary> /// </summary>
public string SuppliesIdStr { get; set; } public string SuppliesIdStr { get; set; }
/// <summary>
/// 商品规格
/// </summary>
public List<string> GoodsSpecificationList { get; set; }
/// <summary>
/// 商品分类
/// </summary>
public List<string> GoodsCategoryList { get; set; }
} }
} }
\ No newline at end of file
...@@ -120,6 +120,16 @@ namespace Property.Module.FixedAssets ...@@ -120,6 +120,16 @@ namespace Property.Module.FixedAssets
item.ImageList.Add(Config.GetFileUrl(img)); item.ImageList.Add(Config.GetFileUrl(img));
} }
item.InventoryNum = iList.Where(x => x.SuppliesId == item.Id).FirstOrDefault()?.Number ?? 0; item.InventoryNum = iList.Where(x => x.SuppliesId == item.Id).FirstOrDefault()?.Number ?? 0;
item.GoodsSpecificationList = new List<string>();
item.GoodsCategoryList = new List<string>();
if (!string.IsNullOrEmpty(item.SpecificationName))
{
item.GoodsSpecificationList = JsonConvert.DeserializeObject<List<string>>(item.SpecificationName);
}
if (!string.IsNullOrEmpty(item.GoodsCategoryName))
{
item.GoodsCategoryList = JsonConvert.DeserializeObject<List<string>>(item.GoodsCategoryName);
}
} }
return list; return list;
} }
......
...@@ -50,6 +50,8 @@ namespace Property.WebApi.Controllers.User ...@@ -50,6 +50,8 @@ namespace Property.WebApi.Controllers.User
x.SuppliesModel, x.SuppliesModel,
x.SuppliesNum, x.SuppliesNum,
x.InventoryNum, x.InventoryNum,
x.GoodsSpecificationList,
x.GoodsCategoryList,
UpdateBy = CacheManager.User.UserReidsCache.GetEmployee(x.UpdateBy)?.EmName ?? "", UpdateBy = CacheManager.User.UserReidsCache.GetEmployee(x.UpdateBy)?.EmName ?? "",
UpdateDate = x.UpdateDate.Value.ToString("yyyy-MM-dd") UpdateDate = x.UpdateDate.Value.ToString("yyyy-MM-dd")
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment