perf: 订单>仪表盘-移动订单: 搜索组件
parent
40b07c503e
commit
51ae4c9cea
@ -1,41 +1,45 @@
|
|||||||
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;
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
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 },
|
||||||
mobile_data.asyncFetch();
|
dates: { hide_vs: true, col: 12 },
|
||||||
}}>统计</Button>
|
DateType: { col: 6, disabledKeys: ['ConfirmDate'] },
|
||||||
</Space>
|
},
|
||||||
<Table dataSource={mobile_data.data} columns={mobile_data.columns} pagination={false} size="small"/>
|
}}
|
||||||
</div>
|
onSubmit={(_err, obj, form, str) => {
|
||||||
);
|
dashboard_store.setMobileSearchValues(obj, form);
|
||||||
}
|
mobile_data.asyncFetch();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Table dataSource={mobile_data.data} columns={mobile_data.columns} pagination={false} size="small" />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default observer(MobileDeal);
|
export default observer(MobileDeal);
|
||||||
|
Loading…
Reference in New Issue