|
|
@ -1,4 +1,4 @@
|
|
|
|
import { NavLink } from "react-router-dom";
|
|
|
|
import { NavLink, useNavigate } from "react-router-dom";
|
|
|
|
import { useEffect, useState } from "react";
|
|
|
|
import { useEffect, useState } from "react";
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
import { observer } from "mobx-react";
|
|
|
|
import { toJS } from "mobx";
|
|
|
|
import { toJS } from "mobx";
|
|
|
@ -14,6 +14,7 @@ function Index() {
|
|
|
|
const { authStore, invoiceStore } = useStore();
|
|
|
|
const { authStore, invoiceStore } = useStore();
|
|
|
|
const { invoiceList, search_date_start, search_date_end } = invoiceStore;
|
|
|
|
const { invoiceList, search_date_start, search_date_end } = invoiceStore;
|
|
|
|
const [groupNo, onGroupNoChange] = useState("");
|
|
|
|
const [groupNo, onGroupNoChange] = useState("");
|
|
|
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
const showTotal = total => `Total ${invoiceList.length} items`;
|
|
|
|
const showTotal = total => `Total ${invoiceList.length} items`;
|
|
|
|
|
|
|
|
|
|
|
@ -97,10 +98,15 @@ function Index() {
|
|
|
|
Search
|
|
|
|
Search
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
<Col md={24} lg={4} xxl={4}>
|
|
|
|
|
|
|
|
<Button icon={<AuditOutlined />} onClick={() => navigate(`/invoice/detail/0/338787`)}>
|
|
|
|
|
|
|
|
Misc. Invoice
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
<Title level={3}></Title>
|
|
|
|
<Title level={3}></Title>
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col md={24} lg={24} xxl={12}>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Table bordered pagination={{ defaultPageSize: 20, showTotal: showTotal }} columns={invoiceListColumns} dataSource={toJS(invoiceList)} />
|
|
|
|
<Table bordered pagination={{ defaultPageSize: 20, showTotal: showTotal }} columns={invoiceListColumns} dataSource={toJS(invoiceList)} />
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|