import React from 'react';
import { IconCode } from '@douyinfe/semi-icons';

export function getNavItem(user, dispatch) {
    return (
        [
            {
                itemKey: 'businessManagement',
                text: '业务管理',
                icon: <IconCode />,
                items: [{
                    itemKey: 'pmReport',
                    text: '项目报表',
                    icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconxiangmubaobiao"></iconpark-icon>,
                    to: '/businessManagement/pmReport/reserveItemsReporting',
                    items: [{
                        itemKey: 'reserveItemsReporting',
                        to: '/businessManagement/pmReport/reserveItemsReporting', text: '储备项目报备表'
                    }, {
                        itemKey: 'reserveItemsPeriodicStatistics',
                        to: '/businessManagement/pmReport/reserveItemsPeriodicStatistics', text: '储备项目周期统计表'
                    }, {
                        itemKey: 'reserveItemsDepSummary',
                        to: '/businessManagement/pmReport/reserveItemsDepSummary', text: '部门储备项目汇总表'
                    }, {
                        itemKey: 'reserveItemsLostStatistics',
                        to: '/businessManagement/pmReport/reserveItemsLostStatistics', text: '储备项目丢单统计表'
                    }]
                }, {
                    itemKey: 'performanceReport',
                    text: '业绩报表',
                    icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconyejibaobiao"></iconpark-icon>,
                    to: '/businessManagement/performanceReport/contractDetails',
                    items: [{
                        itemKey: 'contractDetails',
                        to: '/businessManagement/performanceReport/contractDetails', text: '合同明细表'
                    }, {
                        itemKey: 'invoicingDetails',
                        to: '/businessManagement/performanceReport/invoicingDetails', text: '开票明细表'
                    }, {
                        itemKey: 'backMoneyDetails',
                        to: '/businessManagement/performanceReport/backMoneyDetails', text: '回款明细表'
                    }, {
                        itemKey: 'achievementDetails',
                        to: '/businessManagement/performanceReport/achievementDetails', text: '业绩明细表'
                    }]
                }, {
                    itemKey: 'salesReport',
                    text: '销售报表',
                    icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconxiaoshoubaobiao"></iconpark-icon>,
                    to: '/businessManagement/salesReport/salesDistributionDetails',
                    items: [{
                        itemKey: 'salesDistributionDetails',
                        to: '/businessManagement/salesReport/salesDistributionDetails', text: '销售人员分布明细表'
                    }]
                },{
                    itemKey: 'customer',
                    text: '客户联系人对接跟进',
                    icon: <iconpark-icon style={{ width: 20, height: 20 }} name="iconcbzhongceng"></iconpark-icon>,
                    to: '/businessManagement/customer/contactFollowup',
                    items: [{
                        itemKey: 'customerContactFollowup',
                        to: '/businessManagement/customer/customerContactFollowup', text: '客户联系人对接跟进'
                    }]
                }]
            },
        ]
    );
}