|
|
|
@ -1,18 +1,15 @@
|
|
|
|
|
import React, { useContext, useEffect } from "react";
|
|
|
|
|
import { Row, Col, Button, Tabs, Table, Select, Divider } from "antd";
|
|
|
|
|
import { ContainerOutlined, SearchOutlined } from "@ant-design/icons";
|
|
|
|
|
import { Row, Col, Tabs, Table, Divider } from "antd";
|
|
|
|
|
import { ContainerOutlined } from "@ant-design/icons";
|
|
|
|
|
import { stores_Context } from "../config";
|
|
|
|
|
import { Line } from "@ant-design/charts";
|
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
|
import DatePickerCharts from "../components/search/DatePickerCharts";
|
|
|
|
|
import SiteSelect from "../components/search/SiteSelect";
|
|
|
|
|
import GroupSelect from "../components/search/GroupSelect";
|
|
|
|
|
import DataTypeSelect from "../components/search/DataTypeSelect";
|
|
|
|
|
import { NavLink, useParams } from "react-router-dom";
|
|
|
|
|
import * as comm from "../utils/commons";
|
|
|
|
|
import * as config from "../config";
|
|
|
|
|
import { utils, writeFileXLSX } from "xlsx";
|
|
|
|
|
import DateGroupRadio from '../components/DateGroupRadio';
|
|
|
|
|
import SearchForm from './../components/search/SearchForm';
|
|
|
|
|
|
|
|
|
|
const Orders_sub = () => {
|
|
|
|
|
const { ordertype, ordertype_sub, ordertype_title } = useParams();
|
|
|
|
@ -184,49 +181,27 @@ const Orders_sub = () => {
|
|
|
|
|
<Col md={24} lg={12} xxl={14}>
|
|
|
|
|
<NavLink to={`/orders`}>返回</NavLink>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={12} xxl={10}>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col md={24} lg={8} xxl={8}>
|
|
|
|
|
<GroupSelect store={orders_store} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={8} xxl={8}>
|
|
|
|
|
<SiteSelect store={orders_store} show_all={true} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={8} xxl={8}>
|
|
|
|
|
<Select style={{ width: "100%" }} placeholder="是否含门票" value={orders_store.include_tickets} onChange={orders_store.handleChange_include_tickets}>
|
|
|
|
|
<Select.Option key="1" value="1">
|
|
|
|
|
含门票
|
|
|
|
|
</Select.Option>
|
|
|
|
|
<Select.Option key="0" value="0">
|
|
|
|
|
不含门票
|
|
|
|
|
</Select.Option>
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col md={24} lg={8} xxl={8}>
|
|
|
|
|
<DataTypeSelect store={orders_store} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={12} xxl={12}>
|
|
|
|
|
<DatePickerCharts />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={4} xxl={4} className="align_right">
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon={<SearchOutlined />}
|
|
|
|
|
loading={orders_store.loading}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
<Col className="gutter-row" span={24}>
|
|
|
|
|
<SearchForm
|
|
|
|
|
defaultValue={{
|
|
|
|
|
initialValue: {
|
|
|
|
|
...date_picker_store.formValues,
|
|
|
|
|
...orders_store.searchValues,
|
|
|
|
|
},
|
|
|
|
|
shows: ['DateType', 'DepartmentList', 'WebCode', 'IncludeTickets', 'dates'],
|
|
|
|
|
fieldProps: {
|
|
|
|
|
DepartmentList: { show_all: false },
|
|
|
|
|
WebCode: { show_all: true },
|
|
|
|
|
// dates: { hide_vs: true },
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
onSubmit={(_err, obj, form, str) => {
|
|
|
|
|
orders_store.setSearchValues(obj, form);
|
|
|
|
|
orders_store.getOrderCount_type(ordertype, ordertype_sub);
|
|
|
|
|
orders_store.getOrderCountByType_sub(ordertype, ordertype_sub, orders_store.active_tab_key_sub);
|
|
|
|
|
}}>
|
|
|
|
|
统计
|
|
|
|
|
</Button>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
<Row gutter={[16, { xs: 8, sm: 16, md: 24, lg: 32 }]}>
|
|
|
|
|
<Col span={24} style={{textAlign: 'right'}}>
|
|
|
|
|
<DateGroupRadio
|
|
|
|
|
visible={data_source.length!==0}
|
|
|
|
@ -237,6 +212,9 @@ const Orders_sub = () => {
|
|
|
|
|
fieldMapper={orders_store.orderCount_type_dateRadio.orderCountDataFieldMapper}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
<Row gutter={[16, { xs: 8, sm: 16, md: 24, lg: 32 }]}>
|
|
|
|
|
<Col className="gutter-row" span={24}>
|
|
|
|
|
<Line {...line} />
|
|
|
|
|
</Col>
|
|
|
|
|