You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/libs/widget/order/class.SidebarWidget.php

1102 lines
55 KiB
PHP

<?php
class SidebarWidget extends ZcWidget {
/**
* @var MallService
*/
private $mallService;
/**
* @var MallUtil
*/
private $mallUtil;
public function __construct() {
$this->mallService = Zc::singleton('MallService');
$this->mallUtil = Zc::singleton('MallUtil');
}
public function render() {
$mallId = $_SESSION[SessionConst::mallId];
$hasAuthMalls = $this->mallService->checkHasAuthMalls($mallId);
$isMallRoleFactory = $this->mallService->checkIsMallRoleFactory($mallId);
$menuMap = $this->getSidebarNav();
$menuMap = $this->mallUtil->filterMallSubAccountMenuPermission($menuMap, 'side');
return $this->renderFile('order/sidebar', [
'hasAuthMalls' => $hasAuthMalls,
'isMallRoleFactory' => $isMallRoleFactory,
'menuMap' => $menuMap,
]);
}
private function getSidebarNav() {
$mallId = $_SESSION[SessionConst::mallId];
$isMallRoleFactory = $this->mallService->checkIsMallRoleFactory($mallId);
if(AppConst::isPddMsOpApp()){
$menuMap = array(
array(
'groupName' => '打单发货',
'icon' => 'fa-print',
'url' => Zc::url(RouteConst::orderOrderPrintMultiShop),
'open' => false,
'childs' => array(
array(
'name' => '打印订单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintMultiShop),
'selectedRoute' => array(
RouteConst::orderOrderPrintMultiShop,
RouteConst::orderOrderPrintPrintGuide
),
'countClass' => 'J_menuWaitPrintOrderCount',
),
array(
'name' => '自由打印',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintAddCustomOrder),
'selectedRoute' => array(
RouteConst::orderCustomPrintAddCustomOrder,
RouteConst::orderCustomPrintCustomOrderList,
),
),
array (
'name' => '预发货订单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsPreOutstorage),
'selectedRoute' => array (
RouteConst::orderOpLogisticsPreOutstorage
),
'countClass' => 'J_menuPreOutstorageCount',
),
array (
'name' => '物流预警',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsWarning),
'selectedRoute' => array (
RouteConst::orderOpLogisticsWarning
),
'countClass' => 'J_menuLogisticsWarningCount',
),
array(
'name' => '厂家代打印订单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintIndex),
'selectedRoute' => array(
RouteConst::orderFdsOrderPrintIndex
),
'hide' => $isMallRoleFactory ? false : true,
'countClass' => 'J_menuFdsOrderPrintCount',
),
array (
'name' => '售后订单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderAfterSalesIndex),
'selectedRoute' => array (
RouteConst::orderAfterSalesIndex
),
),
array(
'name' => '批量发货',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderBatchLogisticsSend),
'selectedRoute' => array(
RouteConst::orderOrderBatchLogisticsSend
),
),
)
),
array(
'groupName' => '跨境全托管发货单',
'icon' => 'fa fa-shopping-basket',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'childs' => array(
array(
'name' => '跨境全托管发货单',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'extKey' => 'orderTab',
'extValue' => 'wait_send',
),
array(
'name' => '商品标签打印历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog,
),
),
array(
'name' => '跨境全托管发货历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderOutstorageLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderOutstorageLog,
),
),
)
),
array(
'groupName' => '打印设置',
'icon' => 'fa-cog',
'url' => Zc::url(RouteConst::orderOpSettingIndex),
'open' => false,
'childs' => array(
array(
'name' => '基础设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingIndex),
'selectedRoute' => array(
RouteConst::orderOpSettingIndex
),
),
array(
'name' => '发货地址设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingSenderAddressList),
'selectedRoute' => array(
RouteConst::orderOpSettingSenderAddressList,
RouteConst::orderOpSettingSenderAddressAdd,
RouteConst::orderOpSettingSenderAddressEdit
),
),
array(
'name' => '快递单模板设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingExpressTpl, array('type' => OrderPrintConst::expressTypeDzmd)),
'selectedRoute' => array(
RouteConst::orderOpSettingExpressTpl,
RouteConst::orderOpSettingExpressTplEdit
),
),
array(
'name' => '发货单模板设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingInvoiceTpl),
'selectedRoute' => array(
RouteConst::orderOpSettingInvoiceTpl,
RouteConst::orderOpSettingInvoiceTplEdit
),
),
array(
'name' => '子账号管理',
'url' => Zc::url(RouteConst::userSubAccountIndex),
'icon' => 'fa fa-user',
'selectedRoute' => array(
RouteConst::userSubAccountIndex
),
),
)
),
array(
'groupName' => '打印历史',
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog),
'icon' => 'fa-history',
'open' => false,
'childs' => array(
array(
'name' => '快递单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintExpressLog
),
),
array(
'name' => '发货单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintInvoiceLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintInvoiceLog
),
),
array(
'name' => '发货历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintOutstorageLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintOutstorageLog
),
),
array(
'name' => '自由打印快递单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintExpressLog),
'selectedRoute' => array(
RouteConst::orderCustomPrintExpressLog
),
),
array(
'name' => '自由打印发货单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintInvoiceLog),
'selectedRoute' => array(
RouteConst::orderCustomPrintInvoiceLog
),
),
array (
'name' => '厂家代打快递单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintExpressLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintExpressLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打发货单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintInvoiceLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintInvoiceLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打回传日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintReturnLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintReturnLog
),
'hide' => $isMallRoleFactory ? false : true
)
),
),
array(
'groupName' => '高级功能',
'url' => Zc::url(RouteConst::orderAssemblyIndex),
'icon' => 'fa-superpowers',
'open' => false,
'childs' => array(
array(
'name' => '配货单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderAssemblyIndex),
'selectedRoute' => array(
RouteConst::orderAssemblyIndex
),
),
array(
'name' => '电子单号回收',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderWaybillManage),
'selectedRoute' => array(
RouteConst::orderWaybillManage
),
),
array(
'name' => '商品简称',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingGoodsShort),
'selectedRoute' => array(
RouteConst::orderOpSettingGoodsShort
),
),
)
),
array(
'groupName' => '多店铺管理',
'url' => Zc::url(RouteConst::userMallAuthIndex, '', false, AppConst::getAliYunHost()),
'icon' => 'fa fa-cubes',
'selectedRoute' => array(
RouteConst::userMallAuthIndex,
)
),
array(
'groupName' => '帮助中心',
'url' => Zc::url(RouteConst::frontHelpIndex),
'icon' => 'fa fa-question-circle',
'selectedRoute' => array(
RouteConst::frontHelpIndex
),
'target' => '_blank',
),
);
} elseif (AppConst::isPddOpRubyApp()) {
$menuMap = array(
array(
'groupName' => '打单发货',
'icon' => 'fa-print',
'url' => Zc::url(RouteConst::orderOrderPrintIndex),
'open' => false,
'childs' => array(
array(
'name' => '打印订单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintIndex),
'selectedRoute' => array(
RouteConst::orderOrderPrintIndex
),
),
array (
'name' => '预发货订单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsPreOutstorage),
'selectedRoute' => array (
RouteConst::orderOpLogisticsPreOutstorage
),
),
array (
'name' => '物流预警',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsWarning),
'selectedRoute' => array (
RouteConst::orderOpLogisticsWarning
),
),
array(
'name' => '厂家代打印订单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintIndex),
'selectedRoute' => array(
RouteConst::orderFdsOrderPrintIndex
),
'hide' => $isMallRoleFactory ? false : true,
),
array(
'name' => '自由打印',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintAddCustomOrder),
'selectedRoute' => array(
RouteConst::orderCustomPrintAddCustomOrder,
RouteConst::orderCustomPrintCustomOrderList,
),
),
array(
'name' => '批量发货',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderBatchLogisticsSend),
'selectedRoute' => array(
RouteConst::orderOrderBatchLogisticsSend
),
),
)
),
array(
'groupName' => '跨境全托管发货单',
'icon' => 'fa fa-shopping-basket',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'childs' => array(
array(
'name' => '跨境全托管发货单',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'extKey' => 'orderTab',
'extValue' => 'wait_send',
),
array(
'name' => '商品标签打印历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog,
),
),
array(
'name' => '跨境全托管发货历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderOutstorageLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderOutstorageLog,
),
),
)
),
array(
'groupName' => '打印设置',
'icon' => 'fa-cog',
'url' => Zc::url(RouteConst::orderOpSettingIndex),
'open' => false,
'childs' => array(
array(
'name' => '基础设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingIndex),
'selectedRoute' => array(
RouteConst::orderOpSettingIndex
),
),
array(
'name' => '发货地址设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingSenderAddressList),
'selectedRoute' => array(
RouteConst::orderOpSettingSenderAddressList,
RouteConst::orderOpSettingSenderAddressAdd,
RouteConst::orderOpSettingSenderAddressEdit
),
),
array(
'name' => '快递单模板设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingExpressTpl, array('type' => OrderPrintConst::expressTypeDzmd)),
'selectedRoute' => array(
RouteConst::orderOpSettingExpressTpl,
RouteConst::orderOpSettingExpressTplEdit
),
),
array(
'name' => '发货单模板设置',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingInvoiceTpl),
'selectedRoute' => array(
RouteConst::orderOpSettingInvoiceTpl,
RouteConst::orderOpSettingInvoiceTplEdit
),
),
)
),
array(
'groupName' => '打印历史',
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog),
'icon' => 'fa-history',
'open' => false,
'childs' => array(
array(
'name' => '快递单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintExpressLog
),
),
array(
'name' => '发货单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintInvoiceLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintInvoiceLog
),
),
array(
'name' => '发货历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintOutstorageLog),
'selectedRoute' => array(
RouteConst::orderOrderPrintOutstorageLog
),
),
array(
'name' => '自由打印快递单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintExpressLog),
'selectedRoute' => array(
RouteConst::orderCustomPrintExpressLog
),
),
array(
'name' => '自由打印发货单历史',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintInvoiceLog),
'selectedRoute' => array(
RouteConst::orderCustomPrintInvoiceLog
),
),
array (
'name' => '厂家代打快递单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintExpressLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintExpressLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打发货单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintInvoiceLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintInvoiceLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打回传日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintReturnLog),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintReturnLog
),
'hide' => $isMallRoleFactory ? false : true
)
),
),
array(
'groupName' => '高级功能',
'url' => Zc::url(RouteConst::orderAssemblyIndex),
'icon' => 'fa-superpowers',
'open' => false,
'childs' => array(
array(
'name' => '配货单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderAssemblyIndex),
'selectedRoute' => array(
RouteConst::orderAssemblyIndex
),
),
array(
'name' => '电子单号回收',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderWaybillManage),
'selectedRoute' => array(
RouteConst::orderWaybillManage
),
),
array(
'name' => '商品简称',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingGoodsShort),
'selectedRoute' => array(
RouteConst::orderOpSettingGoodsShort
),
),
)
),
array(
'groupName' => '多店铺管理',
'url' => Zc::url(RouteConst::userMallAuthIndex, '', false, AppConst::getAliYunHost()),
'icon' => 'fa fa-cubes',
'selectedRoute' => array(
RouteConst::userMallAuthIndex,
)
),
array(
'groupName' => '帮助中心',
'url' => Zc::url(RouteConst::frontHelpIndex),
'icon' => 'fa fa-question-circle',
'selectedRoute' => array(
RouteConst::frontHelpIndex
),
'target' => '_blank',
),
);
}else{
$menuMap = array (
array(
'groupName' => '首页',
'url' => Zc::url(RouteConst::moveBatchIndex, '', false, AppConst::getDuoDuoCloudHost(true, false)),
'icon' => 'fa-home',
'displayApp' => [AppConst::appPddDz],
'selectedRoute' => array(
RouteConst::moveBatchIndex,
)
),
array (
'groupName' => '打单发货',
'url' => Zc::url(RouteConst::orderOrderPrintIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'icon' => 'fa-print',
'open' => false,
'childs' => array(
array (
'name' => '打单发货',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOrderPrintIndex,
RouteConst::orderOrderPrintPrintGuide
),
'countClass' => 'J_menuWaitPrintOrderCount',
),
array (
'name' => '自由打印',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderCustomPrintAddCustomOrder, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderCustomPrintAddCustomOrder,
RouteConst::orderCustomPrintCustomOrderList,
RouteConst::orderCustomPrintExpressLog,
RouteConst::orderCustomPrintInvoiceLog,
),
),
array (
'name' => '预发货订单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsPreOutstorage, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpLogisticsPreOutstorage
),
'countClass' => 'J_menuPreOutstorageCount',
),
array (
'name' => '物流预警',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpLogisticsWarning, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpLogisticsWarning
),
'countClass' => 'J_menuLogisticsWarningCount',
),
array(
'name' => '厂家代打印订单',
'allowPlatform' => array(
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array(
RouteConst::orderFdsOrderPrintIndex
),
'hide' => $isMallRoleFactory ? false : true,
'countClass' => 'J_menuFdsOrderPrintCount',
),
array (
'name' => '售后订单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderAfterSalesIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderAfterSalesIndex
),
),
array (
'name' => '批量发货',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderBatchLogisticsSend, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOrderBatchLogisticsSend
),
),
array (
'name' => '配货单',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderAssemblyIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderAssemblyIndex
),
),
)
),
array(
'groupName' => '跨境全托管发货单',
'icon' => 'fa fa-shopping-basket',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'childs' => array(
array(
'name' => '跨境全托管发货单',
'url' => Zc::url(RouteConst::orderFulfillmentOrderIndex, array('orderTab' => 'wait_send')),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderIndex,
),
'extKey' => 'orderTab',
'extValue' => 'wait_send',
),
array(
'name' => '商品标签打印历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderGoodsLabelCodePrintLog,
),
),
array(
'name' => '跨境全托管发货历史',
'url' => Zc::url(RouteConst::orderFulfillmentOrderOutstorageLog),
'selectedRoute' => array(
RouteConst::orderFulfillmentOrderOutstorageLog,
),
),
)
),
array (
'groupName' => '打印设置',
'url' => Zc::url(RouteConst::orderOpSettingIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'icon' => 'fa-cog',
'open' => false,
'childs' => array(
array (
'name' => '基础设置',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingIndex
),
),
array (
'name' => '发货人信息',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingSenderAddressList, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingSenderAddressList,
RouteConst::orderOpSettingSenderAddressAdd,
RouteConst::orderOpSettingSenderAddressEdit
),
),
array (
'name' => '快递单模板设置',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingExpressTpl, array('type' => OrderPrintConst::expressTypeDzmd), false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingExpressTpl,
RouteConst::orderOpSettingExpressTplEdit
),
),
array (
'name' => '发货单模板设置',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingInvoiceTpl, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingInvoiceTpl,
RouteConst::orderOpSettingInvoiceTplEdit
),
),
array (
'name' => '配货标签模板设置',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingItemTagTpl, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingItemTagTpl,
RouteConst::orderOpSettingItemTagTplEdit
),
),
array (
'name' => '快递超区设置',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderBeyondAreaLogisticsList, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderBeyondAreaLogisticsList
),
),
array (
'name' => '商品简称',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingGoodsShort, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingGoodsShort
),
),
array (
'name' => '面单账号授权',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingWbAuthorize, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingWbAuthorize
),
),
array (
'name' => '多店铺授权',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOpSettingMultiShop, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOpSettingMultiShop
),
'hide' => $hasAuthMalls ? false : true,
),
array (
'name' => '子账号管理',
'url' => Zc::url(RouteConst::userSubAccountIndex, '', false, AppConst::getDuoDuoCloudHost(true, false)),
'icon' => 'fa-user',
'selectedRoute' => array (
RouteConst::userSubAccountIndex
),
) ,
)
),
array (
'groupName' => '记录查询',
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'icon' => 'fa-history',
'open' => false,
'childs' => array(
array (
'name' => '快递单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintExpressLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOrderPrintExpressLog
),
),
array (
'name' => '发货单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintInvoiceLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOrderPrintInvoiceLog
),
),
array (
'name' => '发货日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderOrderPrintOutstorageLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderOrderPrintOutstorageLog
),
),
array (
'name' => '厂家代打快递单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintExpressLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintExpressLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打发货单日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintInvoiceLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintInvoiceLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '厂家代打回传日志',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderFdsOrderPrintReturnLog, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderFdsOrderPrintReturnLog
),
'hide' => $isMallRoleFactory ? false : true
),
array (
'name' => '电子单号回收',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::orderWaybillManage, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::orderWaybillManage
),
),
array (
'name' => '快递结算对账',
'allowPlatform' => array (
SessionConst::platformPc,
SessionConst::platformWeb
),
'url' => Zc::url(RouteConst::opWaybillBillIndex, '', false, AppConst::getDuoDuoCloudHost(true, true)),
'selectedRoute' => array (
RouteConst::opWaybillBillIndex
),
)
)
),
array (
'groupName' => '多店铺管理',
'url' => Zc::url(RouteConst::userMallAuthIndex, '', false, AppConst::getDuoDuoCloudHost(true, false)),
'icon' => 'fa-question-circle',
'selectedRoute' => array (
RouteConst::userMallAuthIndex
),
) ,
array (
'groupName' => '帮助中心',
'url' => Zc::url(RouteConst::frontHelpIndex, '', false, AppConst::getDuoDuoCloudHost(true, false)),
'icon' => 'fa-question-circle',
'selectedRoute' => array (
RouteConst::frontHelpIndex
),
'target' => '_blank',
) ,
);
}
return $menuMap;
}
}