diff --git a/src/views/airticket/Index.jsx b/src/views/airticket/Index.jsx index 5ae7b4b..ae6d68a 100644 --- a/src/views/airticket/Index.jsx +++ b/src/views/airticket/Index.jsx @@ -65,7 +65,7 @@ const planListColumns = [ render: text => formatColonTime(text), }, { - title: "是否出票", + title: "是否处理", key: "TicketIssued", dataIndex: "TicketIssued", render: (text, record) => record.TicketIssuedName, diff --git a/src/views/airticket/Invoice.jsx b/src/views/airticket/Invoice.jsx index 8fa5f30..3e4b833 100644 --- a/src/views/airticket/Invoice.jsx +++ b/src/views/airticket/Invoice.jsx @@ -27,7 +27,7 @@ const Invoice = props => { render: (text, record) => `${record.GRI_No} ${record.WL}`, }, { - title: "费用类型", + title: "状态", key: "CostType", dataIndex: "CostType", }, @@ -98,7 +98,7 @@ const Invoice = props => { render: (text, record) => (record.CostType == "出票" ? text : "-"), }, { - title: "备注", + title: "客人信息/备注", key: "Memo", dataIndex: "Memo", }, diff --git a/src/views/airticket/Plan.jsx b/src/views/airticket/Plan.jsx index 1da721a..549ff50 100644 --- a/src/views/airticket/Plan.jsx +++ b/src/views/airticket/Plan.jsx @@ -1,5 +1,5 @@ import { useState, useEffect } from "react"; -import { Grid, Divider, DatePicker, Modal, Form, Input, Col, Row, Space, Collapse, Table, Button, Select, App, Popconfirm, Switch } from "antd"; +import { Checkbox, Divider, DatePicker, Modal, Form, Input, Col, Row, Space, Collapse, Table, Button, Select, App, Popconfirm, Switch, Radio, List } from "antd"; import { PhoneOutlined, FrownTwoTone, LikeTwoTone, ArrowUpOutlined, ArrowDownOutlined, PlusOutlined } from "@ant-design/icons"; import { useParams, useHref, useNavigate, NavLink } from "react-router-dom"; import { isEmpty, formatColonTime } from "@/utils/commons"; @@ -63,8 +63,8 @@ const AirticketPlan = props => { ); }; - const guestList_OnChange = value => { - ticket_form.setFieldsValue({ Memo: `${value}` }); + const guestList_OnChange = e => { + ticket_form.setFieldsValue({ Memo: `${e.target.value}` }); }; //机场下拉列表 const airPortList_select = () => { @@ -79,15 +79,14 @@ const AirticketPlan = props => { //费用列表 const costListColumns = [ { - title: "费用类型", - key: "CostType", - dataIndex: "CostType", + title: "客人信息/备注", + key: "Memo", + dataIndex: "Memo", }, { - title: "PNR", - key: "PNR", - dataIndex: "PNR", - render: (text, record) => (record.CostType == "出票" ? text : "-"), + title: "状态", + key: "CostType", + dataIndex: "CostType", }, { title: "票号", @@ -95,6 +94,13 @@ const AirticketPlan = props => { dataIndex: "TicketNo", render: (text, record) => (record.CostType == "出票" ? text : "-"), }, + { + title: "PNR", + key: "PNR", + dataIndex: "PNR", + render: (text, record) => (record.CostType == "出票" ? text : "-"), + }, + { title: "机票类型", key: "FlightType", @@ -118,11 +124,7 @@ const AirticketPlan = props => { dataIndex: "Discount", render: (text, record) => (record.CostType == "出票" ? text : "-"), }, - { - title: "备注", - key: "Memo", - dataIndex: "Memo", - }, + { title: "编辑", key: "CLC_SN", @@ -147,74 +149,68 @@ const AirticketPlan = props => { const airInfo = props.airInfo; return ( <> - - - - 航班信息 -
{ - postFlightDetail(airInfo.CLF_SN, airInfo.GRI_SN, airInfo.VEI_SN, airInfo, values) - .then(() => { - notification.success({ - message: `成功`, - description: "机票信息保存成功!", - placement: "top", - duration: 4, - icon: , - }); - }) - .catch(() => { - notification.error({ - message: `错误`, - description: "保存失败", - placement: "top", - duration: 4, - icon: , - }); - }); - }} - autoComplete="off"> - - - - } /> - - - } /> - - - - - + { + postFlightDetail(airInfo.CLF_SN, airInfo.GRI_SN, airInfo.VEI_SN, airInfo, values) + .then(() => { + notification.success({ + message: `成功`, + description: "机票信息保存成功!", + placement: "top", + duration: 4, + icon: , + }); + }) + .catch(() => { + notification.error({ + message: `错误`, + description: "保存失败", + placement: "top", + duration: 4, + icon: , + }); + }); + }} + autoComplete="off"> + 航班信息 + + + - - - - - - - + + + + + + + + - + + + + + + - + - - - - - - - + - - - - - - - - - @@ -267,62 +249,68 @@ const AirticketPlan = props => { + - - - - + + + + + + + + + + + - 出票信息 + + + + + + + + + + + + + + + - - - - - - - - - - - 费用列表 -
- - + 3. 通知顾问 + + + + ); }; @@ -474,7 +462,7 @@ const AirticketPlan = props => { labelCol={{ span: 5, }}> - + guestList_OnChange(value)} options={guestList_select()} placeholder="如果列表里面没有客人信息,请手动录到备注里" /> + guestList_OnChange(e)} + style={{ + minWidth: 320, + }}> + ( + + {item.label} + + )}> + + {/* @@ -675,7 +670,7 @@ const AirticketPlan = props => { - + {/* */} @@ -683,7 +678,7 @@ const AirticketPlan = props => { - 出票信息 {planDetail ? `${planDetail[0].GRI_No} - ${planDetail[0].WL}` : ""} + {planDetail ? `${planDetail[0].GRI_No} - ${planDetail[0].WL}` : ""}