|
|
|
@ -110,7 +110,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/analysis",
|
|
|
|
|
Name = "Analysis",
|
|
|
|
|
Name = "分析页",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Title = "分析页",
|
|
|
|
@ -121,7 +121,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var dashboard = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/dashboard",
|
|
|
|
|
Name = "Dashboard",
|
|
|
|
|
Name = "首页",
|
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
|
Redirect = "/analysis",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
@ -137,7 +137,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var per = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/wms",
|
|
|
|
|
Name = "WMS",
|
|
|
|
|
Name = "预约管理",
|
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
|
Redirect = "/wms/wmsinplan",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
@ -152,7 +152,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child1 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/wmsinplan",
|
|
|
|
|
Name = "wmsinplanManagement",
|
|
|
|
|
Name = "预约入库",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
|
@ -163,7 +163,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child2 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/wmsoutplan",
|
|
|
|
|
Name = "wmsoutplanManagement",
|
|
|
|
|
Name = "预约出库",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:cloud-download-outlined",
|
|
|
|
@ -174,7 +174,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child31 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/wmsclearance",
|
|
|
|
|
Name = "wmsclearanceManagement",
|
|
|
|
|
Name = "预约清关",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "carbon:shopping-cart-clear",
|
|
|
|
@ -194,7 +194,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child4 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/user",
|
|
|
|
|
Name = "userManagement",
|
|
|
|
|
Name = "用户管理",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ion:people-sharp",
|
|
|
|
@ -205,7 +205,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child5 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/company",
|
|
|
|
|
Name = "companyManagement",
|
|
|
|
|
Name = "企业信息维护",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ion:settings-outline",
|
|
|
|
@ -216,7 +216,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child3 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/notice",
|
|
|
|
|
Name = "noticeManagement",
|
|
|
|
|
Name = "系统公告",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:bell-outlined",
|
|
|
|
@ -227,7 +227,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child6 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/good",
|
|
|
|
|
Name = "goodManagement",
|
|
|
|
|
Name = "商品信息",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "icon-park-outline:commodity",
|
|
|
|
@ -238,7 +238,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var child7 = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/goodAudit",
|
|
|
|
|
Name = "goodAuditManagement",
|
|
|
|
|
Name = "商品申报",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:cloud-upload-outlined",
|
|
|
|
@ -255,7 +255,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var system = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/system",
|
|
|
|
|
Name = "System",
|
|
|
|
|
Name = "系统管理",
|
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
|
Redirect = "/company",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
@ -276,7 +276,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var storequery = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/storequery",
|
|
|
|
|
Name = "StoreQuery",
|
|
|
|
|
Name = "库存明细",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
@ -287,7 +287,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var storeinquery = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/storeinquery",
|
|
|
|
|
Name = "StoreInQuery",
|
|
|
|
|
Name = "入库明细",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
@ -298,7 +298,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var storeoutquery = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/storeoutquery",
|
|
|
|
|
Name = "StoreOutQuery",
|
|
|
|
|
Name = "出库明细",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
|
{
|
|
|
|
|
Icon = "ant-design:bar-chart-outlined",
|
|
|
|
@ -312,7 +312,7 @@ public class CommonService : ICommonService
|
|
|
|
|
var query = new RouteItem
|
|
|
|
|
{
|
|
|
|
|
Path = "/query",
|
|
|
|
|
Name = "query",
|
|
|
|
|
Name = "查询报表",
|
|
|
|
|
Component = "layouts/default/index",
|
|
|
|
|
Redirect = "/storequery",
|
|
|
|
|
Meta = new RouteMeta
|
|
|
|
@ -324,6 +324,32 @@ public class CommonService : ICommonService
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
list.Add(query);
|
|
|
|
|
|
|
|
|
|
#region 处理报警信息
|
|
|
|
|
var companyId = user.GetCompanyId();
|
|
|
|
|
var noticeCount = db.Queryable<SysNotice>()
|
|
|
|
|
.LeftJoin<SysNoticeClient>((a, b) => a.Id == b.NoticeId)
|
|
|
|
|
.Where((a, b) => a.SendStatus == SendStatus.Send.ToEnumInt() && b.IsRead == false && b.ClientId == companyId).Count();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in list)
|
|
|
|
|
{
|
|
|
|
|
if (item.Name =="系统管理")
|
|
|
|
|
{
|
|
|
|
|
var notice = item.Children.Where(x => x.Name == "系统公告").First();
|
|
|
|
|
notice.Tag = new Tag()
|
|
|
|
|
{
|
|
|
|
|
Type = "error",
|
|
|
|
|
Dot = false,
|
|
|
|
|
Content = noticeCount.ToString(),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
return DataResult<List<RouteItem>>.Success("获取数据成功!", list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|