import React, { Children, useContext, useState } from 'react'; import { observer } from 'mobx-react'; import { stores_Context } from '../config'; import moment from 'moment'; import { Row, Col, Table, Select, Space, Typography, Progress, Spin, Divider, Button, Switch } from 'antd'; import SearchForm from './../components/search/SearchForm'; export default observer((props) => { const { sale_store, date_picker_store: searchFormStore } = useContext(stores_Context); const { customerServicesStore, date_picker_store } = useContext(stores_Context); const { formValues, siderBroken } = searchFormStore; const tableProps = { size: 'small', columns: [ { title: '产品', dataIndex: 'op', key: 'op' }, { title: '房间数', dataIndex: 'action', key: 'action' }, { title: '人数', dataIndex: 'action', key: 'action' }, { title: '总利润', dataIndex: 'action', key: 'action' }, { title: '单订船', dataIndex: 'action', key: 'action' }, { title: '订单含行程', dataIndex: 'action', key: 'action' }, { title: '国籍', dataIndex: 'action', key: 'action' }, ], }; return ( <> { customerServicesStore.setSearchValues(obj, form); // customerServicesStore.fetchDestinationGroupCount(); }} />
); });