|
|
|
@ -12,10 +12,8 @@ const { Title } = Typography;
|
|
|
|
|
|
|
|
|
|
function Index() {
|
|
|
|
|
const { authStore, invoiceStore } = useStore();
|
|
|
|
|
const { invoiceList, invoicePage, search_date_start, search_date_end } = invoiceStore;
|
|
|
|
|
const { invoiceList, search_date_start, search_date_end } = invoiceStore;
|
|
|
|
|
const [groupNo, onGroupNoChange] = useState("");
|
|
|
|
|
const [arrivalDateRange, onDateRangeChange] = useState([]);
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
const showTotal = total => `Total ${invoiceList.length} items`;
|
|
|
|
|
|
|
|
|
@ -26,24 +24,19 @@ function Index() {
|
|
|
|
|
key: "GroupName",
|
|
|
|
|
render: (text, record) => <NavLink to={`/invoice/detail/${record.key}/${record.gmd_gri_sn}`}>{text}</NavLink>,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
title: "Arrival Date",
|
|
|
|
|
key: "LeftGDate",
|
|
|
|
|
dataIndex: "LeftGDate",
|
|
|
|
|
render: (text, record) => (isNotEmpty(text) ? formatDate(new Date(text)) : ""),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "人数",
|
|
|
|
|
key: "PersonNum",
|
|
|
|
|
dataIndex: "PersonNum",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "团总额",
|
|
|
|
|
title: "Total Amount",
|
|
|
|
|
key: "AllMoney",
|
|
|
|
|
dataIndex: "AllMoney",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "账单状态",
|
|
|
|
|
title: "Status",
|
|
|
|
|
key: "status",
|
|
|
|
|
render: BillStatus,
|
|
|
|
|
},
|
|
|
|
@ -66,22 +59,22 @@ function Index() {
|
|
|
|
|
initial={1}
|
|
|
|
|
items={[
|
|
|
|
|
{
|
|
|
|
|
title: "提交",
|
|
|
|
|
title: "Submitted",
|
|
|
|
|
//status: 'finish',
|
|
|
|
|
icon: <EditOutlined />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "顾问",
|
|
|
|
|
title: "Travel Advisor",
|
|
|
|
|
// status: 'finish',
|
|
|
|
|
icon: <SolutionOutlined />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "财务",
|
|
|
|
|
title: "Finance Dept",
|
|
|
|
|
//status: 'process',
|
|
|
|
|
icon: <AuditOutlined />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Done",
|
|
|
|
|
title: "Paid",
|
|
|
|
|
//status: 'wait',
|
|
|
|
|
icon: <SmileOutlined />,
|
|
|
|
|
},
|
|
|
|
@ -120,7 +113,7 @@ function Index() {
|
|
|
|
|
<Title level={3}></Title>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={24}>
|
|
|
|
|
<Table bordered loading={dataLoading} pagination={{ defaultPageSize: 20, showTotal: showTotal }} columns={invoiceListColumns} dataSource={toJS(invoiceList)} />
|
|
|
|
|
<Table bordered pagination={{ defaultPageSize: 20, showTotal: showTotal }} columns={invoiceListColumns} dataSource={toJS(invoiceList)} />
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Space>
|
|
|
|
|