|
|
@ -26,7 +26,7 @@ const apartOptions = [
|
|
|
|
export default observer(() => {
|
|
|
|
export default observer(() => {
|
|
|
|
const { date_picker_store: searchFormStore, DistributionStore } = useContext(stores_Context);
|
|
|
|
const { date_picker_store: searchFormStore, DistributionStore } = useContext(stores_Context);
|
|
|
|
const { formValues, formValuesToSub } = searchFormStore;
|
|
|
|
const { formValues, formValuesToSub } = searchFormStore;
|
|
|
|
const { curTab } = DistributionStore;
|
|
|
|
const { curTab, dateStringQ, dateStringY } = DistributionStore;
|
|
|
|
|
|
|
|
|
|
|
|
const pageRefresh = (obj) => {
|
|
|
|
const pageRefresh = (obj) => {
|
|
|
|
DistributionStore.getApartData({
|
|
|
|
DistributionStore.getApartData({
|
|
|
@ -41,6 +41,7 @@ export default observer(() => {
|
|
|
|
}, [curTab]);
|
|
|
|
}, [curTab]);
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
|
|
DistributionStore.setFormDates(formValuesToSub);
|
|
|
|
DistributionStore.resetData();
|
|
|
|
DistributionStore.resetData();
|
|
|
|
return () => {};
|
|
|
|
return () => {};
|
|
|
|
}, [formValuesToSub]);
|
|
|
|
}, [formValuesToSub]);
|
|
|
@ -54,6 +55,19 @@ export default observer(() => {
|
|
|
|
autoFit: false,
|
|
|
|
autoFit: false,
|
|
|
|
color: ['#5B8FF9', '#E8EDF3'],
|
|
|
|
color: ['#5B8FF9', '#E8EDF3'],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const RingProgressConfigY = {
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
width: 50,
|
|
|
|
|
|
|
|
autoFit: false,
|
|
|
|
|
|
|
|
// color: ['#f6bd16', '#E8EDF3'],
|
|
|
|
|
|
|
|
color: ['#61ddaa', '#E8EDF3'], // #7cb305
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const RingProgressConfigQ = {
|
|
|
|
|
|
|
|
height: 50,
|
|
|
|
|
|
|
|
width: 50,
|
|
|
|
|
|
|
|
autoFit: false,
|
|
|
|
|
|
|
|
color: ['#f6bd16', '#E8EDF3'],
|
|
|
|
|
|
|
|
};
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
|
{ title: '', dataIndex: 'label' },
|
|
|
|
{ title: '', dataIndex: 'label' },
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -112,6 +126,42 @@ export default observer(() => {
|
|
|
|
dataIndex: 'SumMLPercent',
|
|
|
|
dataIndex: 'SumMLPercent',
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfig} percent={v / 100} />,
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfig} percent={v / 100} />,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: () => <><div>去年同期</div><div>{dateStringY}</div></>,
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '团数占比',
|
|
|
|
|
|
|
|
width: 90,
|
|
|
|
|
|
|
|
dataIndex: 'ConfirmOrderPercent',
|
|
|
|
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfigY} percent={r.resultToY.ConfirmOrderPercent / 100} />,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '业绩占比',
|
|
|
|
|
|
|
|
width: 90,
|
|
|
|
|
|
|
|
dataIndex: 'SumMLPercent',
|
|
|
|
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfigY} percent={r.resultToY.SumMLPercent / 100} />,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: () => <><div>上个时间段</div><div>{dateStringQ}</div></>,
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '团数占比',
|
|
|
|
|
|
|
|
width: 90,
|
|
|
|
|
|
|
|
dataIndex: 'ConfirmOrderPercent',
|
|
|
|
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfigQ} percent={r.resultToQ.ConfirmOrderPercent / 100} />,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '业绩占比',
|
|
|
|
|
|
|
|
width: 90,
|
|
|
|
|
|
|
|
dataIndex: 'SumMLPercent',
|
|
|
|
|
|
|
|
render: (v, r) => <RingProgress {...RingProgressConfigQ} percent={r.resultToQ.SumMLPercent / 100} />,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
];
|
|
|
|
];
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|