|
|
@ -12,8 +12,24 @@ import BackBtn from "@/components/BackBtn";
|
|
|
|
const AirticketPlan = props => {
|
|
|
|
const AirticketPlan = props => {
|
|
|
|
const { coli_sn, gri_sn } = useParams();
|
|
|
|
const { coli_sn, gri_sn } = useParams();
|
|
|
|
const { travelAgencyId, loginToken, userId } = usingStorage();
|
|
|
|
const { travelAgencyId, loginToken, userId } = usingStorage();
|
|
|
|
const [getPlanDetail, planDetail, getGuestList, guestList, loading, postFlightDetail, postFlightCost, deleteFlightCost, getVeiPlanChange, veiPlanChangeTxt, postVeiFlightPlanConfirm, ticketIssuedNotifications, delete_flight_info] =
|
|
|
|
const [
|
|
|
|
airTicketStore(state => [
|
|
|
|
getPlanDetail,
|
|
|
|
|
|
|
|
planDetail,
|
|
|
|
|
|
|
|
getGuestList,
|
|
|
|
|
|
|
|
guestList,
|
|
|
|
|
|
|
|
loading,
|
|
|
|
|
|
|
|
postFlightDetail,
|
|
|
|
|
|
|
|
postFlightCost,
|
|
|
|
|
|
|
|
deleteFlightCost,
|
|
|
|
|
|
|
|
getVeiPlanChange,
|
|
|
|
|
|
|
|
veiPlanChangeTxt,
|
|
|
|
|
|
|
|
postVeiFlightPlanConfirm,
|
|
|
|
|
|
|
|
ticketIssuedNotifications,
|
|
|
|
|
|
|
|
delete_flight_info,
|
|
|
|
|
|
|
|
getAirPortList,
|
|
|
|
|
|
|
|
airPortList,
|
|
|
|
|
|
|
|
airLineList,
|
|
|
|
|
|
|
|
] = airTicketStore(state => [
|
|
|
|
state.getPlanDetail,
|
|
|
|
state.getPlanDetail,
|
|
|
|
state.planDetail,
|
|
|
|
state.planDetail,
|
|
|
|
state.getGuestList,
|
|
|
|
state.getGuestList,
|
|
|
@ -27,6 +43,9 @@ const AirticketPlan = props => {
|
|
|
|
state.postVeiFlightPlanConfirm,
|
|
|
|
state.postVeiFlightPlanConfirm,
|
|
|
|
state.ticketIssuedNotifications,
|
|
|
|
state.ticketIssuedNotifications,
|
|
|
|
state.delete_flight_info,
|
|
|
|
state.delete_flight_info,
|
|
|
|
|
|
|
|
state.getAirPortList,
|
|
|
|
|
|
|
|
state.airPortList,
|
|
|
|
|
|
|
|
state.airLineList,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
const reservationUrl = `https://p9axztuwd7x8a7.mycht.cn/Service_BaseInfoWeb/FlightPlanDocx?GRI_SN=${gri_sn}&VEI_SN=${travelAgencyId}&token=${loginToken}`;
|
|
|
|
const reservationUrl = `https://p9axztuwd7x8a7.mycht.cn/Service_BaseInfoWeb/FlightPlanDocx?GRI_SN=${gri_sn}&VEI_SN=${travelAgencyId}&token=${loginToken}`;
|
|
|
|
const reservationPreviewUrl = OFFICEWEBVIEWERURL + encodeURIComponent(reservationUrl);
|
|
|
|
const reservationPreviewUrl = OFFICEWEBVIEWERURL + encodeURIComponent(reservationUrl);
|
|
|
@ -34,7 +53,7 @@ const AirticketPlan = props => {
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
//console.log(reservationPreviewUrl);
|
|
|
|
//console.log(reservationPreviewUrl);
|
|
|
|
|
|
|
|
|
|
|
|
//乘客列表
|
|
|
|
//乘客下拉列表
|
|
|
|
const guestList_select = () => {
|
|
|
|
const guestList_select = () => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
guestList &&
|
|
|
|
guestList &&
|
|
|
@ -47,6 +66,15 @@ const AirticketPlan = props => {
|
|
|
|
const guestList_OnChange = value => {
|
|
|
|
const guestList_OnChange = value => {
|
|
|
|
ticket_form.setFieldsValue({ Memo: `${value}` });
|
|
|
|
ticket_form.setFieldsValue({ Memo: `${value}` });
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
//机场下拉列表
|
|
|
|
|
|
|
|
const airPortList_select = () => {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
airPortList &&
|
|
|
|
|
|
|
|
airPortList.map(item => {
|
|
|
|
|
|
|
|
return { label: `${item.AirPort_Code} - ${item.AirPort_Name}`, value: item.AirPort_Name };
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//费用列表
|
|
|
|
//费用列表
|
|
|
|
const costListColumns = [
|
|
|
|
const costListColumns = [
|
|
|
@ -165,24 +193,39 @@ const AirticketPlan = props => {
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item label="出发日期、航司、航班" required>
|
|
|
|
<Form.Item label="出发日期、航班、航司" required>
|
|
|
|
<Space>
|
|
|
|
<Space>
|
|
|
|
<Form.Item name="StartDate" noStyle rules={[{ required: true, message: "请输入出发日期!" }]}>
|
|
|
|
<Form.Item name="StartDate" noStyle rules={[{ required: true, message: "请输入出发日期!" }]}>
|
|
|
|
{/* <Input placeholder="出发日期" /> */}
|
|
|
|
|
|
|
|
<DatePicker />
|
|
|
|
<DatePicker />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item name="FlightCompany" noStyle>
|
|
|
|
|
|
|
|
<Input placeholder="航空公司" />
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Form.Item name="FlightNo" noStyle rules={[{ required: true, message: "请输入航班号!" }]}>
|
|
|
|
<Form.Item name="FlightNo" noStyle rules={[{ required: true, message: "请输入航班号!" }]}>
|
|
|
|
<Input placeholder="航班号" />
|
|
|
|
<Input placeholder="航班号" />
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
<Form.Item name="FlightCompany" noStyle>
|
|
|
|
|
|
|
|
<Select
|
|
|
|
|
|
|
|
showSearch
|
|
|
|
|
|
|
|
placeholder="航空公司"
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
minWidth: 160,
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
filterOption={(input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase())}
|
|
|
|
|
|
|
|
options={airLineList}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Form.Item>
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item label="出发" required>
|
|
|
|
<Form.Item label="出发" required>
|
|
|
|
<Space>
|
|
|
|
<Space>
|
|
|
|
<Form.Item name="FromAirport" noStyle rules={[{ required: true, message: "请输入出发机场!" }]}>
|
|
|
|
<Form.Item name="FromAirport" noStyle rules={[{ required: true, message: "请输入出发机场!" }]}>
|
|
|
|
<Input placeholder="机场" />
|
|
|
|
<Select
|
|
|
|
|
|
|
|
showSearch
|
|
|
|
|
|
|
|
placeholder="机场"
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
minWidth: 160,
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
filterOption={(input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase())}
|
|
|
|
|
|
|
|
options={airPortList_select()}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item name="FromTerminal" noStyle>
|
|
|
|
<Form.Item name="FromTerminal" noStyle>
|
|
|
|
<Input placeholder="航站楼" />
|
|
|
|
<Input placeholder="航站楼" />
|
|
|
@ -195,7 +238,15 @@ const AirticketPlan = props => {
|
|
|
|
<Form.Item label="抵达" required>
|
|
|
|
<Form.Item label="抵达" required>
|
|
|
|
<Space>
|
|
|
|
<Space>
|
|
|
|
<Form.Item name="ToAirport" noStyle rules={[{ required: true, message: "请输入抵达机场!" }]}>
|
|
|
|
<Form.Item name="ToAirport" noStyle rules={[{ required: true, message: "请输入抵达机场!" }]}>
|
|
|
|
<Input placeholder="机场" />
|
|
|
|
<Select
|
|
|
|
|
|
|
|
showSearch
|
|
|
|
|
|
|
|
placeholder="机场"
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
minWidth: 160,
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
filterOption={(input, option) => (option?.label ?? "").toLowerCase().includes(input.toLowerCase())}
|
|
|
|
|
|
|
|
options={airPortList_select()}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item name="ToTerminal" noStyle>
|
|
|
|
<Form.Item name="ToTerminal" noStyle>
|
|
|
|
<Input placeholder="航站楼" />
|
|
|
|
<Input placeholder="航站楼" />
|
|
|
@ -509,6 +560,7 @@ const AirticketPlan = props => {
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
width: 160,
|
|
|
|
width: 160,
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
|
|
|
|
placeholder="如 0.9"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
<Form.Item label="选择客人" name="MEI_Name66">
|
|
|
|
<Form.Item label="选择客人" name="MEI_Name66">
|
|
|
@ -605,6 +657,7 @@ const AirticketPlan = props => {
|
|
|
|
getPlanDetail(travelAgencyId, gri_sn); //计划详情,含费用列表
|
|
|
|
getPlanDetail(travelAgencyId, gri_sn); //计划详情,含费用列表
|
|
|
|
getGuestList(coli_sn); //客人列表
|
|
|
|
getGuestList(coli_sn); //客人列表
|
|
|
|
getVeiPlanChange(travelAgencyId, gri_sn); //计划变更信息
|
|
|
|
getVeiPlanChange(travelAgencyId, gri_sn); //计划变更信息
|
|
|
|
|
|
|
|
getAirPortList(); //获取机场信息
|
|
|
|
}, []);
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -630,7 +683,9 @@ const AirticketPlan = props => {
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Collapse items={detail_items()} />
|
|
|
|
<Collapse items={detail_items()} />
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
<Col md={24} lg={24} xxl={24}>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<p style={{ textAlign: "right" }}>
|
|
|
|
<p style={{ textAlign: "right" }}>
|
|
|
|
<Popconfirm
|
|
|
|
<Popconfirm
|
|
|
|
title="请确认要增加航班记录"
|
|
|
|
title="请确认要增加航班记录"
|
|
|
|