|
|
@ -1,10 +1,8 @@
|
|
|
|
import React, {Component} from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import {Table, Button, Space, Radio} from 'antd';
|
|
|
|
import { Table, } from 'antd';
|
|
|
|
import {SearchOutlined} from '@ant-design/icons';
|
|
|
|
import SearchForm from './../components/search/SearchForm';
|
|
|
|
import GroupSelect from '../components/search/GroupSelect';
|
|
|
|
import { stores_Context } from '../config';
|
|
|
|
import DatePickerCharts from "../components/search/DatePickerCharts";
|
|
|
|
import { observer } from 'mobx-react';
|
|
|
|
import {stores_Context} from "../config";
|
|
|
|
|
|
|
|
import {observer} from "mobx-react";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MobileDeal extends Component {
|
|
|
|
class MobileDeal extends Component {
|
|
|
|
static contextType = stores_Context;
|
|
|
|
static contextType = stores_Context;
|
|
|
@ -14,25 +12,31 @@ class MobileDeal extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {dashboard_store} = this.context;
|
|
|
|
const { dashboard_store, date_picker_store } = this.context;
|
|
|
|
const mobile_data = dashboard_store.mobile_data;
|
|
|
|
const mobile_data = dashboard_store.mobile_data;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<h2>移动成交</h2>
|
|
|
|
<h2>移动成交</h2>
|
|
|
|
<GroupSelect store={mobile_data}/>
|
|
|
|
<SearchForm
|
|
|
|
<Space size="large">
|
|
|
|
defaultValue={{
|
|
|
|
<DatePickerCharts hide_vs={true}/>
|
|
|
|
initialValue: {
|
|
|
|
|
|
|
|
...date_picker_store.formValues,
|
|
|
|
<Radio.Group value={mobile_data.date_type} onChange={mobile_data.onChange_datetype}>
|
|
|
|
...mobile_data.mobileSearchValues,
|
|
|
|
<Radio value="applyDate">预定日期</Radio>
|
|
|
|
},
|
|
|
|
<Radio value="startDate">出发日期</Radio>
|
|
|
|
shows: ['DateType', 'DepartmentList', 'dates'],
|
|
|
|
</Radio.Group>
|
|
|
|
fieldProps: {
|
|
|
|
|
|
|
|
DepartmentList: { show_all: false, mode: 'multiple', col: 24 },
|
|
|
|
<Button type="primary" icon={<SearchOutlined/>} loading={mobile_data.loading} onClick={() => {
|
|
|
|
WebCode: { show_all: true },
|
|
|
|
|
|
|
|
dates: { hide_vs: true, col: 12 },
|
|
|
|
|
|
|
|
DateType: { col: 6, disabledKeys: ['ConfirmDate'] },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
onSubmit={(_err, obj, form, str) => {
|
|
|
|
|
|
|
|
dashboard_store.setMobileSearchValues(obj, form);
|
|
|
|
mobile_data.asyncFetch();
|
|
|
|
mobile_data.asyncFetch();
|
|
|
|
}}>统计</Button>
|
|
|
|
}}
|
|
|
|
</Space>
|
|
|
|
/>
|
|
|
|
<Table dataSource={mobile_data.data} columns={mobile_data.columns} pagination={false} size="small"/>
|
|
|
|
<Table dataSource={mobile_data.data} columns={mobile_data.columns} pagination={false} size="small" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|