|
|
|
@ -46,7 +46,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
]);
|
|
|
|
|
const reservationUrl = `https://p9axztuwd7x8a7.mycht.cn/Service_BaseInfoWeb/FlightPlanDocx?GRI_SN=${gri_sn}&VEI_SN=${travelAgencyId}&token=${loginToken}`;
|
|
|
|
|
const reservationPreviewUrl = OFFICEWEBVIEWERURL + encodeURIComponent(reservationUrl);
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
// const [form] = Form.useForm();
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
|
|
|
|
|
//乘客下拉列表
|
|
|
|
@ -74,7 +74,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
city, // 城市(如北京)
|
|
|
|
|
] = record.split("|");
|
|
|
|
|
return {
|
|
|
|
|
value: name + "-" + pinyin,
|
|
|
|
|
value: name + "(" + pinyin + ")",
|
|
|
|
|
label: name,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
@ -155,13 +155,10 @@ const TrainticketPlan = props => {
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const Trainticket_form = props => {
|
|
|
|
|
const trainInfo = props.airInfo;
|
|
|
|
|
const [traininfo_form] = Form.useForm();
|
|
|
|
|
const Trainticket_form = trainInfo => {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Form
|
|
|
|
|
form={traininfo_form}
|
|
|
|
|
name={"ticket_form_" + trainInfo.id}
|
|
|
|
|
labelCol={{
|
|
|
|
|
span: 6,
|
|
|
|
@ -273,21 +270,18 @@ const TrainticketPlan = props => {
|
|
|
|
|
</Space>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Divider orientation="left"></Divider>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col md={24} lg={20} xxl={20}>
|
|
|
|
|
<Form.Item label="上下站提醒信息" name="FlightMemo_messages">
|
|
|
|
|
<Input placeholder="没有提醒请留空,信息会抄送给上下站地接" />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item label="已发提醒" name="FlightMemo">
|
|
|
|
|
<Input.TextArea rows={4} readOnly disabled />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={4} xxl={4}>
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
ticketIssuedNotifications(userId, trainInfo.CLF_SN, trainInfo.OPI_SN, traininfo_form.getFieldValue("FlightMemo_messages"))
|
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
|
|
<Form
|
|
|
|
|
labelCol={{
|
|
|
|
|
span: 6,
|
|
|
|
|
}}
|
|
|
|
|
wrapperCol={{
|
|
|
|
|
span: 16,
|
|
|
|
|
}}
|
|
|
|
|
initialValues={{ ...trainInfo }}
|
|
|
|
|
onFinish={values => {
|
|
|
|
|
ticketIssuedNotifications(userId, trainInfo.CLF_SN, trainInfo.OPI_SN, values.FlightMemo_messages)
|
|
|
|
|
.then(() => {
|
|
|
|
|
notification.success({
|
|
|
|
|
message: `成功`,
|
|
|
|
@ -296,7 +290,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
duration: 4,
|
|
|
|
|
icon: <LikeTwoTone />,
|
|
|
|
|
});
|
|
|
|
|
traininfo_form.setFieldValue("FlightMemo_messages", "");
|
|
|
|
|
//todo: 在这里情况输入框的内容,还未实现 values.FlightMemo_messages = "";
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
notification.error({
|
|
|
|
@ -307,7 +301,20 @@ const TrainticketPlan = props => {
|
|
|
|
|
icon: <FrownTwoTone />,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}}>
|
|
|
|
|
}}
|
|
|
|
|
autoComplete="off">
|
|
|
|
|
<Divider orientation="left">出票完成通知</Divider>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col md={24} lg={20} xxl={20}>
|
|
|
|
|
<Form.Item label="上下站提醒信息" name="FlightMemo_messages">
|
|
|
|
|
<Input placeholder="没有提醒请留空,信息会抄送给上下站地接" />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item label="已发提醒" name="FlightMemo">
|
|
|
|
|
<Input.TextArea rows={4} readOnly disabled />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={4} xxl={4}>
|
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
|
3. 通知顾问
|
|
|
|
|
</Button>
|
|
|
|
|
</Col>
|
|
|
|
@ -338,7 +345,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
</Button>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
),
|
|
|
|
|
children: <Trainticket_form airInfo={item} />,
|
|
|
|
|
children: Trainticket_form(item),
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
: [];
|
|
|
|
@ -449,7 +456,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
confirmInfo_form
|
|
|
|
|
.validateFields()
|
|
|
|
|
.then(values => {
|
|
|
|
|
console.log("Received values of form: ", values.ConfirmInfo);
|
|
|
|
|
//console.log("Received values of form: ", values.ConfirmInfo);
|
|
|
|
|
postVeiFlightPlanConfirm(travelAgencyId, gri_sn, userId, values.ConfirmInfo)
|
|
|
|
|
.then(() => {
|
|
|
|
|
notification.success({
|
|
|
|
@ -516,8 +523,9 @@ const TrainticketPlan = props => {
|
|
|
|
|
<Popconfirm
|
|
|
|
|
title="请确认要增加车票记录"
|
|
|
|
|
description=""
|
|
|
|
|
onConfirm={() => {
|
|
|
|
|
postFlightDetail("", gri_sn, travelAgencyId, { FlightNo: "新的记录", FlightStatus: 1, ServiceType: 2 }, []); //新增加一条记录
|
|
|
|
|
onConfirm={async () => {
|
|
|
|
|
const startDate = planDetail && planDetail.length > 0 && planDetail[planDetail.length - 1].StartDate ? planDetail[planDetail.length - 1].StartDate : "";
|
|
|
|
|
await postFlightDetail("", gri_sn, travelAgencyId, { FlightNo: "新的记录", FlightStatus: 1, ServiceType: 2 }, { StartDate: startDate }); //新增加一条记录
|
|
|
|
|
getPlanDetail(travelAgencyId, gri_sn); //计划详情,含费用列表
|
|
|
|
|
}}
|
|
|
|
|
okText="是"
|
|
|
|
@ -529,11 +537,12 @@ const TrainticketPlan = props => {
|
|
|
|
|
</p>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
<Row>
|
|
|
|
|
<Divider orientation="left">计划变更</Divider>
|
|
|
|
|
<Col md={24} lg={12} xxl={12}>
|
|
|
|
|
<Space direction="vertical" style={{ width: "90%" }}>
|
|
|
|
|
<Input.TextArea rows={16} readOnly value={veiPlanChangeTxt && veiPlanChangeTxt.ChangeText} />
|
|
|
|
|
<Input.TextArea rows={16} value={veiPlanChangeTxt && veiPlanChangeTxt.ChangeText} />
|
|
|
|
|
<Button
|
|
|
|
|
type="primary"
|
|
|
|
|
onClick={() => {
|
|
|
|
@ -560,7 +569,6 @@ const TrainticketPlan = props => {
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Form>
|
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
|
title="费用信息"
|
|
|
|
|
open={isModalOpen}
|
|
|
|
|