|
|
@ -310,23 +310,32 @@ namespace BBWY.Client.ViewModels |
|
|
|
|
|
|
|
CreateMenu(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IList<Department> departmentList = null; |
|
|
|
var response1 = shopService.GetDepartmentList(); |
|
|
|
if (!response1.Success) |
|
|
|
throw new Exception(response1.Msg); |
|
|
|
departmentList = response1.Data.Map<IList<Department>>(); |
|
|
|
|
|
|
|
//if (GlobalContext.User.TeamName == "刷单组")
|
|
|
|
//{
|
|
|
|
var shopList = new List<Shop>(); |
|
|
|
foreach (var d in departmentList) |
|
|
|
shopList.AddRange(d.ShopList); |
|
|
|
GlobalContext.User.ShopList = shopList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (GlobalContext.User.TeamName == "刷单组" || this.packDepartment.Contains(GlobalContext.User.TeamName) || packDepartment.Any(m => GlobalContext.User.SonDepartmentNames.Contains(m)) || |
|
|
|
managerDepartment.Contains(GlobalContext.User.TeamName) || |
|
|
|
managerDepartment.Any(m => GlobalContext.User.SonDepartmentNames.Contains(m))) |
|
|
|
{ |
|
|
|
ShowShopChoosePanel = true; |
|
|
|
var response = shopService.GetDepartmentList(); |
|
|
|
if (!response.Success) |
|
|
|
throw new Exception(response.Msg); |
|
|
|
departmentList = response.Data.Map<IList<Department>>(); |
|
|
|
|
|
|
|
//if (GlobalContext.User.TeamName == "刷单组")
|
|
|
|
//{
|
|
|
|
var shopList = new List<Shop>(); |
|
|
|
foreach (var d in departmentList) |
|
|
|
shopList.AddRange(d.ShopList); |
|
|
|
GlobalContext.User.ShopList = shopList; |
|
|
|
|
|
|
|
//}
|
|
|
|
} |
|
|
|
else |
|
|
@ -337,7 +346,6 @@ namespace BBWY.Client.ViewModels |
|
|
|
departmentList = response.Data; |
|
|
|
if (departmentList.Count == 0) |
|
|
|
throw new Exception("缺少有效的部门数据"); |
|
|
|
|
|
|
|
var shopIds = new List<string>(); |
|
|
|
foreach (var d in departmentList) |
|
|
|
{ |
|
|
|