|
|
@ -12,7 +12,6 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
setGuestList: guestList => set({ guestList }),
|
|
|
|
setGuestList: guestList => set({ guestList }),
|
|
|
|
setVEIFlightBill: vEIFlightBill => set({ vEIFlightBill }),
|
|
|
|
setVEIFlightBill: vEIFlightBill => set({ vEIFlightBill }),
|
|
|
|
setVeiPlanChangeTxt: veiPlanChangeTxt => set({ veiPlanChangeTxt }),
|
|
|
|
setVeiPlanChangeTxt: veiPlanChangeTxt => set({ veiPlanChangeTxt }),
|
|
|
|
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();
|
|
|
@ -68,7 +67,7 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//删除航班信息
|
|
|
|
//删除火车信息
|
|
|
|
async delete_flight_info(CLF_SN) {
|
|
|
|
async delete_flight_info(CLF_SN) {
|
|
|
|
const searchParams = {
|
|
|
|
const searchParams = {
|
|
|
|
CLF_SN: CLF_SN,
|
|
|
|
CLF_SN: CLF_SN,
|
|
|
@ -97,6 +96,7 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
CheckStatus: CheckStatus,
|
|
|
|
CheckStatus: CheckStatus,
|
|
|
|
FlightDate1: FlightDate1,
|
|
|
|
FlightDate1: FlightDate1,
|
|
|
|
FlightDate2: FlightDate2,
|
|
|
|
FlightDate2: FlightDate2,
|
|
|
|
|
|
|
|
ServiceType: 2,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/GetVEIFlightBill`, searchParams);
|
|
|
|
const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/GetVEIFlightBill`, searchParams);
|
|
|
|
const _result = errcode !== 0 ? [] : result;
|
|
|
|
const _result = errcode !== 0 ? [] : result;
|
|
|
@ -144,6 +144,7 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
formData.append("VEI_SN", VEI_SN);
|
|
|
|
formData.append("VEI_SN", VEI_SN);
|
|
|
|
formData.append("GRI_SN", GRI_SN);
|
|
|
|
formData.append("GRI_SN", GRI_SN);
|
|
|
|
formData.append("LMI_SN", LMI_SN);
|
|
|
|
formData.append("LMI_SN", LMI_SN);
|
|
|
|
|
|
|
|
formData.append("ServiceType", 2);
|
|
|
|
formData.append("ConfirmInfo", ConfirmInfo);
|
|
|
|
formData.append("ConfirmInfo", ConfirmInfo);
|
|
|
|
const postUrl = HT_HOST + "/Service_BaseInfoWeb/VeiFlightPlanConfirm";
|
|
|
|
const postUrl = HT_HOST + "/Service_BaseInfoWeb/VeiFlightPlanConfirm";
|
|
|
|
return postForm(postUrl, formData).then(json => {
|
|
|
|
return postForm(postUrl, formData).then(json => {
|
|
|
@ -158,6 +159,7 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
async postVEIFlightBillSubmit(VEI_SN, values) {
|
|
|
|
async postVEIFlightBillSubmit(VEI_SN, values) {
|
|
|
|
const formData = new FormData();
|
|
|
|
const formData = new FormData();
|
|
|
|
formData.append("vei_sn", VEI_SN);
|
|
|
|
formData.append("vei_sn", VEI_SN);
|
|
|
|
|
|
|
|
formData.append("ServiceType", 2);
|
|
|
|
formData.append("billdata", JSON.stringify(values));
|
|
|
|
formData.append("billdata", JSON.stringify(values));
|
|
|
|
const postUrl = HT_HOST + "/Service_BaseInfoWeb/VEIFlightBillSubmit";
|
|
|
|
const postUrl = HT_HOST + "/Service_BaseInfoWeb/VEIFlightBillSubmit";
|
|
|
|
return postForm(postUrl, formData).then(json => {
|
|
|
|
return postForm(postUrl, formData).then(json => {
|
|
|
@ -168,25 +170,20 @@ const trainTicketStore = create((set, get) => ({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//通知顾问查看机票信息
|
|
|
|
//通知顾问查看车票信息
|
|
|
|
async ticketIssuedNotifications(LMI_SN, CLF_SN, OPI_SN, FlightMemo_messages) {
|
|
|
|
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,
|
|
|
|
LMI_SN: LMI_SN,
|
|
|
|
|
|
|
|
ServiceType: 2,
|
|
|
|
FlightMemo_messages: FlightMemo_messages,
|
|
|
|
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;
|
|
|
|
return _result;
|
|
|
|
return _result;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取机场列表
|
|
|
|
|
|
|
|
async getAirPortList() {
|
|
|
|
|
|
|
|
const { setAirPortList } = get();
|
|
|
|
|
|
|
|
const { errcode, result } = await fetchJSON(`${HT_HOST}/Service_BaseInfoWeb/GetAirPortInfo`);
|
|
|
|
|
|
|
|
const _result = errcode !== 0 ? [] : result;
|
|
|
|
|
|
|
|
setAirPortList(_result);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 定义座位表对象
|
|
|
|
// 定义座位表对象
|
|
|
|
seatTable: [
|
|
|
|
seatTable: [
|
|
|
|