添加提醒

main
Ycc 9 months ago
parent e462485057
commit e4093fcce7

@ -14,7 +14,7 @@ const airTicketStore = create((set, get) => ({
setVeiPlanChangeTxt: veiPlanChangeTxt => set({ veiPlanChangeTxt }), setVeiPlanChangeTxt: veiPlanChangeTxt => set({ veiPlanChangeTxt }),
setAirPortList: airPortList => set({ airPortList }), setAirPortList: airPortList => set({ airPortList }),
async getPlanList(vei_sn, GRI_Name, TimeStart, TimeEnd,plan_state,airticket_state) { async getPlanList(vei_sn, GRI_Name, TimeStart, TimeEnd, plan_state, airticket_state) {
const { setLoading, setPlanList } = get(); const { setLoading, setPlanList } = get();
setLoading(true); setLoading(true);
const searchParams = { const searchParams = {
@ -169,10 +169,12 @@ const airTicketStore = create((set, get) => ({
}); });
}, },
//通知顾问查看机票信息 //通知顾问查看机票信息
async ticketIssuedNotifications(CLF_SN, OPI_SN) { async ticketIssuedNotifications(LMI_SN, CLF_SN, OPI_SN, FlightMemo_messages) {
const searchParams = { const searchParams = {
CLF_SN: CLF_SN, CLF_SN: CLF_SN,
OPI_SN: OPI_SN, OPI_SN: OPI_SN,
LMI_SN: LMI_SN,
FlightMemo_messages: FlightMemo_messages,
}; };
const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/TicketIssuedNotifications`, searchParams); const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/TicketIssuedNotifications`, searchParams);
const _result = errcode !== 0 ? [] : result; const _result = errcode !== 0 ? [] : result;

@ -147,9 +147,11 @@ const AirticketPlan = props => {
const Airticket_form = props => { const Airticket_form = props => {
const airInfo = props.airInfo; const airInfo = props.airInfo;
const [airinfo_form] = Form.useForm();
return ( return (
<> <>
<Form <Form
form={airinfo_form}
name={"ticket_form_" + airInfo.id} name={"ticket_form_" + airInfo.id}
labelCol={{ labelCol={{
span: 6, span: 6,
@ -249,10 +251,6 @@ const AirticketPlan = props => {
</Form.Item> </Form.Item>
</Space> </Space>
</Form.Item> </Form.Item>
<Form.Item label="备注" name="FlightMemo">
<Input />
</Form.Item>
</Col> </Col>
<Col md={24} lg={4} xxl={4}> <Col md={24} lg={4} xxl={4}>
<Space direction="vertical"> <Space direction="vertical">
@ -281,12 +279,19 @@ const AirticketPlan = props => {
</Row> </Row>
<Divider orientation="left"></Divider> <Divider orientation="left"></Divider>
<Row gutter={16}> <Row gutter={16}>
<Col md={24} lg={20} xxl={20}></Col> <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}> <Col md={24} lg={4} xxl={4}>
<Button <Button
type="primary" type="primary"
onClick={() => { onClick={() => {
ticketIssuedNotifications(airInfo.CLF_SN, airInfo.OPI_SN) ticketIssuedNotifications(userId,airInfo.CLF_SN, airInfo.OPI_SN,airinfo_form.getFieldValue('FlightMemo_messages'))
.then(() => { .then(() => {
notification.success({ notification.success({
message: `成功`, message: `成功`,
@ -295,6 +300,7 @@ const AirticketPlan = props => {
duration: 4, duration: 4,
icon: <LikeTwoTone />, icon: <LikeTwoTone />,
}); });
airinfo_form.setFieldValue('FlightMemo_messages','')
}) })
.catch(() => { .catch(() => {
notification.error({ notification.error({
@ -612,7 +618,7 @@ const AirticketPlan = props => {
{isTicketType && ( {isTicketType && (
<> <>
<Form.Item label="PNR" name="PNR" rules={[{ required: true }]}> <Form.Item label="PNR" name="PNR" rules={[{ required: true }]}>
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item label="票号" name="TicketNo" rules={[{ required: true }]}> <Form.Item label="票号" name="TicketNo" rules={[{ required: true }]}>
<Input <Input

Loading…
Cancel
Save