|
|
|
@ -66,7 +66,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
return (
|
|
|
|
|
seatTable &&
|
|
|
|
|
seatTable.map(item => {
|
|
|
|
|
return { label: `${item.name}-${item.code}`, value: `${item.name}-${item.code}` };
|
|
|
|
|
return { label: `${item.name}`, value: `${item.name}` };
|
|
|
|
|
})
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
@ -187,7 +187,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
<Input placeholder="车次" />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item name="TicketNo" noStyle rules={[{ required: true, message: "请输入取票号!" }]}>
|
|
|
|
|
<Input placeholder="取票号" />
|
|
|
|
|
<Input placeholder="取票号" maxLength={9} />
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Space>
|
|
|
|
|
</Form.Item>
|
|
|
|
@ -208,8 +208,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
</Form.Item>
|
|
|
|
|
</Space>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item name="ServiceType" hidden initialValue="2">
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item name="ServiceType" hidden initialValue="2"></Form.Item>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col md={24} lg={4} xxl={4}>
|
|
|
|
|
<Space direction="vertical">
|
|
|
|
@ -321,7 +320,11 @@ const TrainticketPlan = props => {
|
|
|
|
|
ticket_form.resetFields();
|
|
|
|
|
if (isEmpty(ticket.CostType)) ticket.CostType = "出票";
|
|
|
|
|
ticket.CostType == "出票" ? setisTicketType(true) : setisTicketType(false); //如果是出票类型,显示票号、折扣等选项
|
|
|
|
|
isEmpty(ticket.CLC_SN) ? setisAddNew(true) : setisAddNew(false); //如果是新增窗口
|
|
|
|
|
const isNew = isEmpty(ticket.CLC_SN); // 判断是否为新增状态
|
|
|
|
|
setisAddNew(isNew);
|
|
|
|
|
if (isNew) {
|
|
|
|
|
ticket.ServiceFee = "60"; // // 新增时设置服务费默认值为60
|
|
|
|
|
}
|
|
|
|
|
ticket_form.setFieldsValue(ticket);
|
|
|
|
|
if (isEmpty(ticket.Memo)) ticket_form.setFieldsValue({ Memo: "" });
|
|
|
|
|
};
|
|
|
|
@ -476,7 +479,7 @@ const TrainticketPlan = props => {
|
|
|
|
|
title="请确认要增加车票记录"
|
|
|
|
|
description=""
|
|
|
|
|
onConfirm={() => {
|
|
|
|
|
postFlightDetail("", gri_sn, travelAgencyId, { FlightNo: "新的记录", FlightStatus: 1 ,ServiceType:2}, []); //新增加一条记录
|
|
|
|
|
postFlightDetail("", gri_sn, travelAgencyId, { FlightNo: "新的记录", FlightStatus: 1, ServiceType: 2 }, []); //新增加一条记录
|
|
|
|
|
getPlanDetail(travelAgencyId, gri_sn); //计划详情,含费用列表
|
|
|
|
|
}}
|
|
|
|
|
okText="是"
|
|
|
|
@ -575,10 +578,14 @@ const TrainticketPlan = props => {
|
|
|
|
|
{isTicketType && (
|
|
|
|
|
<>
|
|
|
|
|
<Form.Item label="车厢" name="Cabin" rules={[{ required: true }]}>
|
|
|
|
|
<Input
|
|
|
|
|
<Select
|
|
|
|
|
style={{
|
|
|
|
|
width: 160,
|
|
|
|
|
}}
|
|
|
|
|
options={Array.from({ length: 16 }, (_, index) => ({
|
|
|
|
|
value: `${String(index + 1).padStart(2, "0")}车`,
|
|
|
|
|
label: `${String(index + 1).padStart(2, "0")}车`,
|
|
|
|
|
}))}
|
|
|
|
|
/>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
<Form.Item label="座位号" name="SeatNo" rules={[{ required: true }]}>
|
|
|
|
|