|
|
@ -47,42 +47,36 @@ const Invoice = props => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "出发",
|
|
|
|
title: "出发",
|
|
|
|
key: "FromCity",
|
|
|
|
key: "FromAirport",
|
|
|
|
dataIndex: "FromCity",
|
|
|
|
dataIndex: "FromAirport",
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? `${record.FromCity}` : "-"),
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? `${record.FromCity}` : "-"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "抵达",
|
|
|
|
title: "抵达",
|
|
|
|
key: "ToCity",
|
|
|
|
key: "ToAirport",
|
|
|
|
dataIndex: "ToCity",
|
|
|
|
dataIndex: "ToAirport",
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? `${record.ToCity}` : "-"),
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? `${record.ToCity}` : "-"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "航班",
|
|
|
|
title: "车次",
|
|
|
|
key: "FlightNo",
|
|
|
|
key: "FlightNo",
|
|
|
|
dataIndex: "FlightNo",
|
|
|
|
dataIndex: "FlightNo",
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "PNR",
|
|
|
|
title: "取票号",
|
|
|
|
key: "PNR",
|
|
|
|
|
|
|
|
dataIndex: "PNR",
|
|
|
|
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: "票号",
|
|
|
|
|
|
|
|
key: "TicketNo",
|
|
|
|
key: "TicketNo",
|
|
|
|
dataIndex: "TicketNo",
|
|
|
|
dataIndex: "TicketNo",
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "机票类型",
|
|
|
|
title: "车票类型",
|
|
|
|
key: "FlightType",
|
|
|
|
key: "FlightType",
|
|
|
|
dataIndex: "FlightType",
|
|
|
|
dataIndex: "FlightType",
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "机票价格",
|
|
|
|
title: "车票价格",
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: vEIFlightBill && vEIFlightBill.reduce((acc, curr) => acc + curr.Cost, 0),
|
|
|
|
title: vEIFlightBill && vEIFlightBill.reduce((acc, curr) => acc + curr.Cost, 0),
|
|
|
@ -101,12 +95,6 @@ const Invoice = props => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
title: "折扣",
|
|
|
|
|
|
|
|
key: "Discount",
|
|
|
|
|
|
|
|
dataIndex: "Discount",
|
|
|
|
|
|
|
|
render: (text, record) => (record.CostType == "出票" ? text : "-"),
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "审核状态",
|
|
|
|
title: "审核状态",
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
@ -230,7 +218,7 @@ const Invoice = props => {
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Table bordered={true} rowKey="CLC_SN" columns={vEIFlightBillColumns} dataSource={vEIFlightBill} loading={loading} pagination={{ defaultPageSize: 100, showTotal: showTotal }} />
|
|
|
|
<Table bordered={true} rowKey="CLC_SN" columns={vEIFlightBillColumns} dataSource={vEIFlightBill} loading={loading} pagination={{ defaultPageSize: 100, showTotal: showTotal }} />
|
|
|
|
|
|
|
|
|
|
|
|
<TableExportBtn btnTxt="导出账单" label={`机票账单`} {...{ columns: vEIFlightBillColumns, dataSource: vEIFlightBill }} />
|
|
|
|
<TableExportBtn btnTxt="导出账单" label={`车票账单`} {...{ columns: vEIFlightBillColumns, dataSource: vEIFlightBill }} />
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
|
|
<Col md={24} lg={24} xxl={24}></Col>
|
|
|
|
<Col md={24} lg={24} xxl={24}></Col>
|
|
|
@ -238,7 +226,7 @@ const Invoice = props => {
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col md={24} lg={18} xxl={18}></Col>
|
|
|
|
<Col md={24} lg={18} xxl={18}></Col>
|
|
|
|
<Col md={24} lg={2} xxl={2}>
|
|
|
|
<Col md={24} lg={2} xxl={2}>
|
|
|
|
<Statistic title="已选机票价格" value={selectedValues.reduce((acc, curr) => acc + curr.Cost, 0)} />
|
|
|
|
<Statistic title="已选车票价格" value={selectedValues.reduce((acc, curr) => acc + curr.Cost, 0)} />
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col md={24} lg={2} xxl={2}>
|
|
|
|
<Col md={24} lg={2} xxl={2}>
|
|
|
|
<Statistic title="已选服务费" value={selectedValues.reduce((acc, curr) => acc + curr.ServiceFee, 0)} />
|
|
|
|
<Statistic title="已选服务费" value={selectedValues.reduce((acc, curr) => acc + curr.ServiceFee, 0)} />
|
|
|
|