|
|
@@ -58,7 +58,7 @@ class ConsoleController extends BaseController
|
|
|
'list' => $latestIncome,
|
|
|
];
|
|
|
}
|
|
|
- $asset = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
|
|
|
+ $shopInfo = isset($this->shop) && !empty($this->shop) ? $this->shop->attributes : [];
|
|
|
|
|
|
$menu = [
|
|
|
["name" => "商城", "img" => "ghs/home/shop.png", "url" => "/admin/home/mall"],
|
|
|
@@ -70,9 +70,23 @@ class ConsoleController extends BaseController
|
|
|
["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],
|
|
|
["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"]
|
|
|
];
|
|
|
+ $agent = $shopInfo['agentLevel'] ?? 0;
|
|
|
+ if ($agent == 1) {
|
|
|
+ //代理商显示邀请开店按钮
|
|
|
+ $menu = [
|
|
|
+ ["name" => "商城", "img" => "ghs/home/shop.png", "url" => "/admin/home/mall"],
|
|
|
+ ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list"],
|
|
|
+ ["name" => "供应商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
|
|
|
+ ["name" => "报损单", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
|
|
|
+ ["name" => "库存预警", "img" => "ghs/home/kcyjs.png", "url" => "/pagesStorehouse/stockWarn/manage"],
|
|
|
+ ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list"],
|
|
|
+ ["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],
|
|
|
+ ["name" => "邀请开店", "img" => "ghs/home/yqyl.png", "url" => "/pagesInvite/list"]
|
|
|
+ ];
|
|
|
+ }
|
|
|
|
|
|
util::success([
|
|
|
- 'asset' => $asset,
|
|
|
+ 'asset' => $shopInfo,
|
|
|
'notice' => $notice,
|
|
|
'todayData' => $todayData,
|
|
|
'incomeStat' => $incomeStat,
|