|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
import { useContext } from 'react';
|
|
|
|
|
import { observer } from 'mobx-react';
|
|
|
|
|
import { stores_Context } from '../config';
|
|
|
|
|
import { Table, Row, Col, Divider } from 'antd';
|
|
|
|
|
import { Table, Row, Col, Divider, Tooltip } from 'antd';
|
|
|
|
|
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
|
|
|
import SearchForm from '../components/search/SearchForm';
|
|
|
|
|
import { TableExportBtn } from './../components/Data';
|
|
|
|
|
import { fixTo2Decimals } from './../utils/commons';
|
|
|
|
@ -33,8 +34,33 @@ export default observer((props) => {
|
|
|
|
|
pagination: false,
|
|
|
|
|
components: { body: { cell: TdCell } },
|
|
|
|
|
orderColumns: [
|
|
|
|
|
{ key: 'label', title: '市场:', dataIndex: 'label', width: 150, },
|
|
|
|
|
{ key: 'LineClass_Origin', title: '网站', dataIndex: 'LineClass_Origin' },
|
|
|
|
|
{ key: 'label', title: '市场:', dataIndex: 'label', width: 150 },
|
|
|
|
|
{
|
|
|
|
|
key: 'LineClass_Origin',
|
|
|
|
|
titleX: '网站',
|
|
|
|
|
title: () => (
|
|
|
|
|
<>
|
|
|
|
|
网站{' '}
|
|
|
|
|
<Tooltip title="网前自然订单">
|
|
|
|
|
<InfoCircleOutlined />
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
dataIndex: 'LineClass_Origin',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'external',
|
|
|
|
|
titleX: '站外渠道',
|
|
|
|
|
title: () => (
|
|
|
|
|
<>
|
|
|
|
|
站外渠道{' '}
|
|
|
|
|
<Tooltip title="Facebook, Pinterest, Youtube, Instagram">
|
|
|
|
|
<InfoCircleOutlined />
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
dataIndex: 'external',
|
|
|
|
|
},
|
|
|
|
|
{ key: 'LineClass_PPC', title: 'PPC', dataIndex: 'LineClass_PPC' },
|
|
|
|
|
{ key: 'toB', title: 'To B', dataIndex: 'toB' },
|
|
|
|
|
{ key: 'isOld1', title: 'C老客户', dataIndex: 'isOld1' },
|
|
|
|
@ -44,15 +70,15 @@ export default observer((props) => {
|
|
|
|
|
// { key: 'groupsLabel2', title: '进度', dataIndex: 'groupsLabel2' },
|
|
|
|
|
],
|
|
|
|
|
salesColumns: [
|
|
|
|
|
{ key: 'label', title: '顾问:', dataIndex: 'label', width: 150, },
|
|
|
|
|
{ key: 'label', title: '顾问:', dataIndex: 'label', width: 150 },
|
|
|
|
|
{ key: 'CJCount', title: '周成交个数', dataIndex: 'CJCount' },
|
|
|
|
|
{ key: 'YJLY', title: '周成交毛利(万)', dataIndex: 'YJLY', render: (text) => numberConvert10K(text) },
|
|
|
|
|
{ key: 'CJCount1', title: '年成交个数', dataIndex: ['rowYear', 'CJCount'] },
|
|
|
|
|
{ key: 'YJLY1', title: '年成交毛利(万)', dataIndex: ['rowYear', 'YJLY'], render: (text) => numberConvert10K(text) },
|
|
|
|
|
{ key: 'YJLY2', title: '年走团毛利(万)', dataIndex: ['rowYear', 'YJLY2'], render: (text) => numberConvert10K(text) },
|
|
|
|
|
{ key: 'YJLY1', title: '年成交毛利(万)', dataIndex: ['rowYear', 'YJLY'], render: (text) => numberConvert10K(text) },
|
|
|
|
|
{ key: 'YJLY2', title: '年走团毛利(万)', dataIndex: ['rowYear', 'YJLY2'], render: (text) => numberConvert10K(text) },
|
|
|
|
|
],
|
|
|
|
|
serviceColumns: [
|
|
|
|
|
{ key: 'label', title: '客服:', dataIndex: 'label', width: 150, },
|
|
|
|
|
{ key: 'label', title: '客服:', dataIndex: 'label', width: 150 },
|
|
|
|
|
{ key: 'GroupCount', title: '周走团个数', dataIndex: 'GroupCount' },
|
|
|
|
|
{ key: 'GoodCount', title: '周好评个数', dataIndex: 'GoodCount' },
|
|
|
|
|
{ key: 'GroupCount1', title: '年走团个数', dataIndex: ['rowYear', 'GroupCount'] },
|
|
|
|
|