Commit 41b9ae7d by guanzhenshan

解决库龄列表库存数据无法排序的问题

parent 7d03b805
...@@ -236,7 +236,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -236,7 +236,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
a.bailun_sku, a.bailun_sku,
a.warehouse_code, a.warehouse_code,
a.warehouse_name, a.warehouse_name,
quantity_stock = a.stock.ToString("N0"), stock = a.stock.ToString("N0"),
amount = a.amount.ToString("N2"), amount = a.amount.ToString("N2"),
stock_time = (DateTime.Now-a.day).Days +"d", stock_time = (DateTime.Now-a.day).Days +"d",
a.sku_name, a.sku_name,
...@@ -248,7 +248,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -248,7 +248,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return JsonConvert.SerializeObject(new { total = total, rows = list, return JsonConvert.SerializeObject(new { total = total, rows = list,
count_row = new { count_row = new {
warehouse_name = "总计", warehouse_name = "总计",
quantity_stock = objCount.stock.ToString("N0"), stock = objCount.stock.ToString("N0"),
amount = objCount.amount.ToString("N2"), amount = objCount.amount.ToString("N2"),
}, },
isexport = Services.UserAuthorityServices.checkUserExportAuthority("ExportInventoryAging", HttpContextHelper.Current.User.GetUserName()), isexport = Services.UserAuthorityServices.checkUserExportAuthority("ExportInventoryAging", HttpContextHelper.Current.User.GetUserName()),
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
}, },
{ field: 'sku_category', title: '产品类型', width: '150' }, { field: 'sku_category', title: '产品类型', width: '150' },
{ field: 'warehouse_name', title: '仓库名称', width: '150', iscount: true }, { field: 'warehouse_name', title: '仓库名称', width: '150', iscount: true },
{ field: 'quantity_stock', title: '库存数量', width: '150', iscount: true, sortable: true }, { field: 'stock', title: '库存数量', width: '150', iscount: true, sortable: true },
{ field: 'amount', title: '库存金额', width: '150', iscount: true, sortable: true }, { field: 'amount', title: '库存金额', width: '150', iscount: true, sortable: true },
{ {
field: 'stock_time', title: '库龄(天)', width: '110', sortable: true, formatter: function (idx, data) { field: 'stock_time', title: '库龄(天)', width: '110', sortable: true, formatter: function (idx, data) {
......
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