You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.8 KiB
React
67 lines
1.8 KiB
React
2 years ago
|
import { NavLink } from "react-router-dom";
|
||
|
import { useEffect, useState } from "react";
|
||
|
import { observer } from "mobx-react";
|
||
|
import { toJS } from "mobx";
|
||
|
import { Row, Col, Space, Button, Table, Input, Typography, Badge, List, DatePicker } from "antd";
|
||
|
import { useStore } from "@/stores/StoreContext.js";
|
||
|
import * as config from "@/config";
|
||
|
import * as comm from "@/utils/commons";
|
||
|
import dayjs from "dayjs";
|
||
|
|
||
|
const { Title, Paragraph, Text } = Typography;
|
||
|
|
||
|
function Index() {
|
||
|
const { reportStore, authStore } = useStore();
|
||
|
const { search_date_start, search_date_end } = reportStore;
|
||
|
|
||
|
useEffect(() => {
|
||
|
|
||
|
}, []);
|
||
|
|
||
|
return (
|
||
|
<Space direction="vertical" style={{ width: "100%" }}>
|
||
|
<Title level={3}></Title>
|
||
|
<Row gutter={16}>
|
||
|
<Col md={24} lg={8} xxl={6}>
|
||
|
<Space direction="horizontal">
|
||
|
Select Date
|
||
|
<DatePicker.RangePicker
|
||
|
format={config.DATE_FORMAT_MONTH}
|
||
|
allowClear={true}
|
||
|
style={{ width: "100%" }}
|
||
|
defaultValue={[search_date_start, search_date_end]}
|
||
|
onChange={reportStore.onDateRangeChange}
|
||
|
allowEmpty={true}
|
||
|
picker="month"
|
||
|
/>
|
||
|
</Space>
|
||
|
</Col>
|
||
|
<Col md={24} lg={4} xxl={4}>
|
||
|
<Button
|
||
|
type="primary"
|
||
|
loading={reportStore.loading}
|
||
|
// onClick={() =>
|
||
|
// invoiceStore.fetchInvoiceList(
|
||
|
// authStore.login.travelAgencyId,
|
||
|
// groupNo,
|
||
|
// search_date_start == null ? null : search_date_start.format(config.DATE_FORMAT),
|
||
|
// search_date_end == null ? null : search_date_end.format(config.DATE_FORMAT),
|
||
|
// OrderType
|
||
|
// )
|
||
|
// }
|
||
|
>
|
||
|
Get Report
|
||
|
</Button>
|
||
|
</Col>
|
||
|
<Col md={24} lg={10} xxl={11}></Col>
|
||
|
</Row>
|
||
|
<Title level={3}></Title>
|
||
|
<Row>
|
||
|
<Col md={24} lg={24} xxl={24}></Col>
|
||
|
</Row>
|
||
|
</Space>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default observer(Index);
|