diff --git a/src/App.css b/src/App.css
index e9e982f..1acdfbf 100644
--- a/src/App.css
+++ b/src/App.css
@@ -34,3 +34,10 @@
.p-s1{
padding: .5em;
}
+
+.sticky-top{
+ margin: -16px -8px .5em -8px;
+ position: sticky;
+ top: 0;
+ z-index: 100;
+}
diff --git a/src/charts/Customer_care_inchina.jsx b/src/charts/Customer_care_inchina.jsx
index 2240454..135492c 100644
--- a/src/charts/Customer_care_inchina.jsx
+++ b/src/charts/Customer_care_inchina.jsx
@@ -17,7 +17,7 @@ const Customer_care_inchina = () => {
return (
-
+
{
}}
/>
+
+
在华客人
diff --git a/src/charts/Customer_care_potential.jsx b/src/charts/Customer_care_potential.jsx
index 48955a8..7a10c4b 100644
--- a/src/charts/Customer_care_potential.jsx
+++ b/src/charts/Customer_care_potential.jsx
@@ -16,9 +16,9 @@ const Customer_care_potential = () => {
return (
-
+
- {
}}
/>
+
+
潜力客户
diff --git a/src/charts/Customer_care_regular.jsx b/src/charts/Customer_care_regular.jsx
index 2f11da0..9032bff 100644
--- a/src/charts/Customer_care_regular.jsx
+++ b/src/charts/Customer_care_regular.jsx
@@ -1,175 +1,184 @@
-import React, {useContext, useEffect} from 'react';
-import {Row, Col, Divider, Table} from 'antd';
-import {utils, writeFileXLSX} from 'xlsx';
-import {stores_Context} from '../config';
-import {observer} from 'mobx-react';
+import React, { useContext, useEffect } from 'react';
+import { Row, Col, Divider, Table } from 'antd';
+import { utils, writeFileXLSX } from 'xlsx';
+import { stores_Context } from '../config';
+import { observer } from 'mobx-react';
import SearchForm from './../components/search/SearchForm';
const Customer_care_regular = () => {
+ const { orders_store, date_picker_store, customer_store } = useContext(stores_Context);
+ const regular_data = customer_store.regular_data;
- const {orders_store, date_picker_store, customer_store} = useContext(stores_Context);
- const regular_data = customer_store.regular_data;
+ useEffect(() => {}, []);
- useEffect(() => {
-
- }, []);
-
-
- return (
-
-
-
- {
- customer_store.setSearchValues(obj, form, 'regular_data');
- customer_store.regular_customer_order();
- customer_store.regular_customer_order(true);
+ return (
+
+
+
+ {
+ customer_store.setSearchValues(obj, form, 'regular_data');
+ customer_store.regular_customer_order();
+ customer_store.regular_customer_order(true);
+ }}
+ />
+
+
+
+
+ 老客户
+
+
+ {Math.round(text * 100)}%,
+ },
+ {
+ title: '毛利',
+ dataIndex: 'ML',
+ key: 'ML',
+ },
+ {
+ title: '人数(含成人+儿童)',
+ dataIndex: 'PersonNum',
+ key: 'PersonNum',
+ },
+ ]}
+ size="small"
+ pagination={false}
+ rowKey={(record) => record.ItemName}
+ />
+
+
+
+ {
+ const wb = utils.table_to_book(document.getElementById('table_to_xlsx').getElementsByTagName('table')[0]);
+ writeFileXLSX(wb, '老客户.xlsx');
}}
- />
-
-
- 老客户
-
-
- {Math.round(text * 100)}%
- },
- {
- title: '毛利',
- dataIndex: 'ML',
- key: 'ML',
- },
- {
- title: '人数(含成人+儿童)',
- dataIndex: 'PersonNum',
- key: 'PersonNum',
- },
- ]
- } size="small" pagination={false} rowKey={record => record.ItemName}
- />
-
-
- {
- const wb = utils.table_to_book(document.getElementById("table_to_xlsx").getElementsByTagName('table')[0]);
- writeFileXLSX(wb, "老客户.xlsx");
- }}>导出excel
- {text == 1 ? '成行' : '未成行'},
- sorter: (a, b) => b.OrderState - a.OrderState,
- },
- {
- title: '毛利',
- dataIndex: 'ML',
- key: 'ML',
- },
- {
- title: '人数',
- dataIndex: 'PersonNum',
- key: 'PersonNum',
- },
- {
- title: '天数',
- dataIndex: 'COLI_Days',
- key: 'COLI_Days',
- },
- {
- title: '人天数',
- dataIndex: 'CGI_PersonDays',
- key: 'CGI_PersonDays',
- },
- {
- title: '走团日期',
- dataIndex: 'COLI_OrderStartDate',
- key: 'COLI_OrderStartDate',
- },
- {
- title: '小组',
- dataIndex: 'Department',
- key: 'Department',
- },
- {
- title: '老客户',
- dataIndex: 'COLI_IsOld',
- key: 'COLI_IsOld',
- },
- {
- title: '老客户推荐',
- dataIndex: 'COLI_IsCusCommend',
- key: 'COLI_IsCusCommend',
- },
- {
- title: '网站',
- dataIndex: 'COLI_WebCode',
- key: 'COLI_WebCode',
- },
- {
- title: '来源',
- dataIndex: 'SourceType',
- key: 'SourceType',
- },
- {
- title: '在华',
- dataIndex: 'ZH',
- key: 'ZH',
- },
- ]
- } size="small"
- rowKey={record => record.COLI_ID}
- />
-
-
-
-
- );
-
+ >
+ 导出excel
+
+
+ {text == 1 ? '成行' : '未成行'},
+ sorter: (a, b) => b.OrderState - a.OrderState,
+ },
+ {
+ title: '毛利',
+ dataIndex: 'ML',
+ key: 'ML',
+ },
+ {
+ title: '人数',
+ dataIndex: 'PersonNum',
+ key: 'PersonNum',
+ },
+ {
+ title: '天数',
+ dataIndex: 'COLI_Days',
+ key: 'COLI_Days',
+ },
+ {
+ title: '人天数',
+ dataIndex: 'CGI_PersonDays',
+ key: 'CGI_PersonDays',
+ },
+ {
+ title: '走团日期',
+ dataIndex: 'COLI_OrderStartDate',
+ key: 'COLI_OrderStartDate',
+ },
+ {
+ title: '小组',
+ dataIndex: 'Department',
+ key: 'Department',
+ },
+ {
+ title: '老客户',
+ dataIndex: 'COLI_IsOld',
+ key: 'COLI_IsOld',
+ },
+ {
+ title: '老客户推荐',
+ dataIndex: 'COLI_IsCusCommend',
+ key: 'COLI_IsCusCommend',
+ },
+ {
+ title: '网站',
+ dataIndex: 'COLI_WebCode',
+ key: 'COLI_WebCode',
+ },
+ {
+ title: '来源',
+ dataIndex: 'SourceType',
+ key: 'SourceType',
+ },
+ {
+ title: '在华',
+ dataIndex: 'ZH',
+ key: 'ZH',
+ },
+ ]}
+ size="small"
+ rowKey={(record) => record.COLI_ID}
+ />
+
+
+
+ );
};
export default observer(Customer_care_regular);
-
diff --git a/src/components/DateGroupRadio/date.js b/src/components/DateGroupRadio/date.js
index c45e03f..8b249a1 100644
--- a/src/components/DateGroupRadio/date.js
+++ b/src/components/DateGroupRadio/date.js
@@ -154,5 +154,5 @@ export const resultDataCb = (dataRaw, dateGroup, { data1, data2 }, fieldMapper,
const retData = [].concat(parseData1, reindexData2 ).map(ele => ({...ele, [fieldMapper.dateKey]: data1KeyMappedStr[ele[fieldMapper.dateKey]] || data2KeyMappedStr[ele[fieldMapper.dateKey]]}));
const avg1 = parse1.avgVal;
// console.log('callback', dateGroup, retData, data1KeyMappedStr, data2KeyMappedStr);
- cb(dateGroup, retData, avg1);
+ cb(dateGroup, retData, avg1, parse2.avgVal);
};
diff --git a/src/views/AgentGroupCount.jsx b/src/views/AgentGroupCount.jsx
index f685e2e..07b6e69 100644
--- a/src/views/AgentGroupCount.jsx
+++ b/src/views/AgentGroupCount.jsx
@@ -19,7 +19,7 @@ const AgentGroupCount = () => {
return (
<>
-
+
{
return (
<>
-
+
{
};
return (
<>
-
+
{
};
return (
<>
-
- {/* style={{ margin: '-16px -8px', padding: 0 }} */}
+
-
+
+
+
-
-
-
diff --git a/src/views/Orders_sub.jsx b/src/views/Orders_sub.jsx
index f911fdd..5f24d28 100644
--- a/src/views/Orders_sub.jsx
+++ b/src/views/Orders_sub.jsx
@@ -262,7 +262,7 @@ const Orders_sub = () => {
};
return (
-
+
返回
@@ -286,6 +286,9 @@ const Orders_sub = () => {
}}
/>
+
+
+
{
fieldMapper={orders_store.orderCount_type_dateRadio.orderCountDataFieldMapper}
/>
-
-
-
diff --git a/src/views/Sale.jsx b/src/views/Sale.jsx
index 4375b67..8c1c564 100644
--- a/src/views/Sale.jsx
+++ b/src/views/Sale.jsx
@@ -205,7 +205,7 @@ const Sale = () => {
return (
-
+
{
const lineConfig = { appendPadding: 10, xField: 'groupDateVal', yField: 'SumML', seriesField: 'groupsLabel', isGroup: true, smooth: true, meta: comm.cloneDeep(dataFieldAlias), };
return (
-
+