|
|
@@ -220,32 +220,63 @@ class ConsoleController extends BaseController
|
|
|
["name" => "盘点", "img" => "ghs/home/pandian.png", "url" => "/pagesStorehouse/inventory/list"],
|
|
|
["name" => "损耗", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
|
|
|
];
|
|
|
+ $menuV2 = [
|
|
|
+ ["name" => "商城码", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
|
|
|
+ ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list2"],
|
|
|
+ ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
|
|
|
+ ["name" => "配送片区", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/orderListByDist"],
|
|
|
+ ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock2"],
|
|
|
+ ["name" => "采购", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
|
|
|
+ ["name" => "采购记录", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
|
|
|
+ ["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"],
|
|
|
+ ["name" => "计算器", "img" => "ghs/home/kcyjs.png", "url" => "/admin/tools/calculator"],
|
|
|
+ ["name" => "进货", "img" => "ghs/home/icon_buy_item.png", "url" => "buyGhs"],
|
|
|
+ ["name" => "进货记录", "img" => "ghs/home/icon_buy_record.png", "url" => "buyRecord", 'remindNum' => 0],
|
|
|
+ ["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],
|
|
|
+ ["name" => "支出", "img" => "ghs/home/kcyjs.png", "url" => "/admin/expend/list"],
|
|
|
+ ["name" => "员工", "img" => "ghs/home/yggl.png", "url" => "/admin/staff/list"],
|
|
|
+ ["name" => "库存预警", "img" => "ghs/home/kcyjs.png", "url" => "/admin/item/list?warning=1"],
|
|
|
+ ["name" => "盘点", "img" => "ghs/home/pandian.png", "url" => "/pagesStorehouse/inventory/list"],
|
|
|
+ ["name" => "报损", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
|
|
|
+ ["name" => "拆散", "img" => "ghs/home/kcyjs.png", "url" => "/admin/part/list"],
|
|
|
+ ["name" => "收款流水", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/scanPay"],
|
|
|
+ ["name" => "收款码", "img" => "ghs/home/shop.png", "url" => "/admin/cg/code"]
|
|
|
+ ];
|
|
|
+ $menuIconMap = [
|
|
|
+ '商城码' => 'mall_code',
|
|
|
+ '改价' => 'modify_price',
|
|
|
+ '花材' => 'item',
|
|
|
+ '配送片区' => 'send_dist',
|
|
|
+ '改库存' => 'modify_stock',
|
|
|
+ '采购' => 'purchase',
|
|
|
+ '采购记录' => 'purchase_record',
|
|
|
+ '调拨入库' => 'in_stock',
|
|
|
+ '计算器' => 'calculator',
|
|
|
+ '进货' => 'stock_in',
|
|
|
+ '进货记录' => 'stock_in_record',
|
|
|
+ '调拨出库' => 'out_stock',
|
|
|
+ '支出' => 'expend',
|
|
|
+ '员工' => 'staff',
|
|
|
+ '库存预警' => 'stock_warning',
|
|
|
+ '盘点' => 'check',
|
|
|
+ '报损' => 'breakage',
|
|
|
+ '损耗' => 'breakage',
|
|
|
+ '拆散' => 'break_up',
|
|
|
+ '收款流水' => 'gather_record',
|
|
|
+ '收款码' => 'gather_code',
|
|
|
+ '商城' => 'mall_code',
|
|
|
+ '花材(简)' => 'item',
|
|
|
+ ];
|
|
|
if ($version == 2) {
|
|
|
- $menu = [
|
|
|
- ["name" => "商城码", "img" => "ghs/home/shop3.png", "url" => "/admin/home/mall"],
|
|
|
- ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list2"],
|
|
|
- ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list2"],
|
|
|
- ["name" => "配送片区", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/orderListByDist"],
|
|
|
- //["name" => "预订客户", "img" => "ghs/home/yggl.png", "url" => "/admin/book/custom"],
|
|
|
- ["name" => "改库存", "img" => "ghs/home/kcyjs.png", "url" => "/admin/changePrice/changeStock2"],
|
|
|
- ["name" => "采购", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
|
|
|
- ["name" => "采购记录", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
|
|
|
- ["name" => "调拨入库", "img" => "ghs/home/dbrk.png", "url" => "/pagesStorehouse/allot/allotPut"],
|
|
|
- ["name" => "计算器", "img" => "ghs/home/kcyjs.png", "url" => "/admin/tools/calculator"],
|
|
|
- ["name" => "进货", "img" => "ghs/home/icon_buy_item.png", "url" => "buyGhs"],
|
|
|
- ["name" => "进货记录", "img" => "ghs/home/icon_buy_record.png", "url" => "buyRecord", 'remindNum' => 0],
|
|
|
- ["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],
|
|
|
- ["name" => "支出", "img" => "ghs/home/kcyjs.png", "url" => "/admin/expend/list"],
|
|
|
- ["name" => "员工", "img" => "ghs/home/yggl.png", "url" => "/admin/staff/list"],
|
|
|
- ["name" => "库存预警", "img" => "ghs/home/kcyjs.png", "url" => "/admin/item/list?warning=1"],
|
|
|
- ["name" => "盘点", "img" => "ghs/home/pandian.png", "url" => "/pagesStorehouse/inventory/list"],
|
|
|
- ["name" => "报损", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
|
|
|
- //["name" => "预订明细", "img" => "ghs/home/yggl.png", "url" => "/admin/book/itemCustom"],
|
|
|
- //["name" => "新增预订", "img" => "ghs/home/yggl.png", "url" => "/admin/custom/selectCustom?style=1&book=1&getAll=1"],
|
|
|
- ["name" => "拆散", "img" => "ghs/home/kcyjs.png", "url" => "/admin/part/list"],
|
|
|
- ["name" => "收款码流水", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/scanPay"],
|
|
|
- ["name" => "收款码", "img" => "ghs/home/shop.png", "url" => "/admin/cg/code"]
|
|
|
- ];
|
|
|
+ $menu = $menuV2;
|
|
|
+ } elseif ($version == 3) {
|
|
|
+ $menu = [];
|
|
|
+ foreach ($menuV2 as $item) {
|
|
|
+ $menuItem = $item;
|
|
|
+ unset($menuItem['img']);
|
|
|
+ $menuItem['icon'] = $menuIconMap[$item['name']] ?? 'item';
|
|
|
+ $menu[] = $menuItem;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//查看财务的权限
|