火车计划列表

main
Ycc 2 months ago
parent eda2b2ac2d
commit 093fb9833a

@ -27,6 +27,26 @@ const planListColumns = [
dataIndex: "PersonNum", dataIndex: "PersonNum",
key: "PersonNum", key: "PersonNum",
}, },
{
title: "出发",
key: "FromAirport",
dataIndex: "FromAirport",
},
{
title: "抵达",
key: "ToAirport",
dataIndex: "ToAirport",
},
{
title: "车次",
key: "FlightNo",
dataIndex: "FlightNo",
},
{
title: "座位类型",
key: "FlightCabin",
dataIndex: "FlightCabin",
},
{ {
title: "出发日期", title: "出发日期",
key: "StartDate", key: "StartDate",
@ -38,32 +58,18 @@ const planListColumns = [
}, },
}, },
{ {
title: "出发城市", title: "开始时间",
key: "FromCity",
dataIndex: "FromCity",
},
{
title: "抵达城市",
key: "ToCity",
dataIndex: "ToCity",
},
{
title: "航班",
key: "FlightNo",
dataIndex: "FlightNo",
},
{
title: "起飞时间",
key: "FlightStart", key: "FlightStart",
dataIndex: "FlightStart", dataIndex: "FlightStart",
render: text => formatColonTime(text), render: text => formatColonTime(text),
}, },
{ {
title: "落地时间", title: "抵达时间",
key: "FlightEnd", key: "FlightEnd",
dataIndex: "FlightEnd", dataIndex: "FlightEnd",
render: text => formatColonTime(text), render: text => formatColonTime(text),
}, },
{ {
title: "出票处理", title: "出票处理",
key: "TicketIssued", key: "TicketIssued",
@ -80,7 +86,7 @@ const planListColumns = [
title: "操作", title: "操作",
key: "FlightInfo", key: "FlightInfo",
dataIndex: "FlightInfo", dataIndex: "FlightInfo",
render: (text, record) => <NavLink to={`/airticket/plan/${record.COLI_SN}/${record.GRI_SN}`}>{"编辑"}</NavLink>, render: (text, record) => <NavLink to={`/trainticket/plan/${record.COLI_SN}/${record.GRI_SN}`}>{"编辑"}</NavLink>,
}, },
]; ];
@ -116,10 +122,10 @@ const Trainticket = props => {
</Col> </Col>
<Col md={4} lg={4} xxl={4}> <Col md={4} lg={4} xxl={4}>
<Space> <Space>
<Button icon={<AuditOutlined />} onClick={() => navigate(`/airticket/invoice`)}> <Button icon={<AuditOutlined />} onClick={() => navigate(`/trainticket/invoice`)}>
报账 报账
</Button> </Button>
<Button icon={<AuditOutlined />} onClick={() => navigate(`/airticket/invoicepaid`)}> <Button icon={<AuditOutlined />} onClick={() => navigate(`/trainticket/invoicepaid`)}>
汇款记录 汇款记录
</Button> </Button>
</Space> </Space>
@ -129,7 +135,7 @@ const Trainticket = props => {
<Row gutter={16}> <Row gutter={16}>
<Col md={24} lg={24} xxl={24}> <Col md={24} lg={24} xxl={24}>
<Table bordered={true} rowKey="id" columns={planListColumns} dataSource={planList} loading={loading} pagination={{ defaultPageSize: 20, showTotal: showTotal }} /> <Table bordered={true} rowKey="id" columns={planListColumns} dataSource={planList} loading={loading} pagination={{ defaultPageSize: 20, showTotal: showTotal }} />
<TableExportBtn btnTxt="导出计划" label={`票计划`} {...{ columns: planListColumns, dataSource: planList }} /> <TableExportBtn btnTxt="导出计划" label={`票计划`} {...{ columns: planListColumns, dataSource: planList }} />
</Col> </Col>
<Col md={24} lg={24} xxl={24}></Col> <Col md={24} lg={24} xxl={24}></Col>
</Row> </Row>

Loading…
Cancel
Save