|
|
@ -11,7 +11,6 @@ import { flow } from 'mobx';
|
|
|
|
const Customer_care_regular = () => {
|
|
|
|
const Customer_care_regular = () => {
|
|
|
|
const { orders_store, date_picker_store, customer_store } = useContext(stores_Context);
|
|
|
|
const { orders_store, date_picker_store, customer_store } = useContext(stores_Context);
|
|
|
|
const regular_data = customer_store.regular_data;
|
|
|
|
const regular_data = customer_store.regular_data;
|
|
|
|
const [isCompareLine, setIsCompareLine] = useState(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// useEffect(() => {}, []);
|
|
|
|
// useEffect(() => {}, []);
|
|
|
|
|
|
|
|
|
|
|
@ -36,7 +35,7 @@ const Customer_care_regular = () => {
|
|
|
|
customer_store.setSearchValues(obj, form, 'regular_data');
|
|
|
|
customer_store.setSearchValues(obj, form, 'regular_data');
|
|
|
|
regular_data.data_compare=[];
|
|
|
|
regular_data.data_compare=[];
|
|
|
|
if (obj.DateDiff1 && obj.DateDiff2){
|
|
|
|
if (obj.DateDiff1 && obj.DateDiff2){
|
|
|
|
setIsCompareLine(true);
|
|
|
|
regular_data.isCompareLine=true;
|
|
|
|
regular_data.showSum=false;
|
|
|
|
regular_data.showSum=false;
|
|
|
|
await customer_store.regular_customer_order();
|
|
|
|
await customer_store.regular_customer_order();
|
|
|
|
customer_store.regular_customer_order(false,true);
|
|
|
|
customer_store.regular_customer_order(false,true);
|
|
|
@ -44,7 +43,7 @@ const Customer_care_regular = () => {
|
|
|
|
customer_store.regular_customer_order(true,true,true);
|
|
|
|
customer_store.regular_customer_order(true,true,true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
setIsCompareLine(false);
|
|
|
|
regular_data.isCompareLine=false;
|
|
|
|
regular_data.showSum=true;
|
|
|
|
regular_data.showSum=true;
|
|
|
|
customer_store.regular_customer_order();
|
|
|
|
customer_store.regular_customer_order();
|
|
|
|
customer_store.regular_customer_order(true);
|
|
|
|
customer_store.regular_customer_order(true);
|
|
|
@ -117,7 +116,7 @@ const Customer_care_regular = () => {
|
|
|
|
|
|
|
|
|
|
|
|
<Col span={24}>
|
|
|
|
<Col span={24}>
|
|
|
|
<LineWithAvg dataSource={regular_data.pivotData} loading={regular_data.detail_loading} xField={regular_data.pivotX} yField={regular_data.pivotY}
|
|
|
|
<LineWithAvg dataSource={regular_data.pivotData} loading={regular_data.detail_loading} xField={regular_data.pivotX} yField={regular_data.pivotY}
|
|
|
|
seriesField='_ylabel' showSUM={regular_data.showSum} solidLineTime={regular_data.solidLineTime} solidLineDash={regular_data.solidLineDash} isCompareLine={isCompareLine}/>
|
|
|
|
seriesField='_ylabel' showSUM={regular_data.showSum} solidLineTime={regular_data.solidLineTime} solidLineDash={regular_data.solidLineDash} isCompareLine={regular_data.isCompareLine}/>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
|
|
<Col span={24}>
|
|
|
|
<Col span={24}>
|
|
|
|