transport.js 4.7 KB
import http from './http.js'
let baseUrl = 'air-server-transport/transport/route'
let baseUrlBill = 'air-server-transport/transport/bill'
let baseUrlFlight = 'air-server-transport/transport/flight'
let baseUrlFlightPlan = 'air-server-transport/transport/flightplan'
let baseUrlAircraft = 'air-server-transport/transport/aircraft'
let baseUrlAirLineAircraft = 'air-server-transport/transport/airlineaircraft'
let baseUrlPrediction = 'air-server-transport/transport/prediction'
let baseUrlConfirm = 'air-server-transport/transport/confirm'
let baseUrlSchedule = 'air-server-transport/transport/schedule'
let baseUrlLongtimeplan = 'air-server-transport/transport/longtimeplan'
let baseUrlBillperson = 'air-server-transport/transport/billperson'
let baseUrlResultMsg = 'air-server-transport/transport/returnmsg'





//航线申报
//新增方法
export const addRoute = params => { return http.post(`${baseUrl}/addRoute`,  params); };
//查询列表
export const selectRoute=params=>{return http.get(`${baseUrl}/selectRoute`,  params);};
//删除方法
export const editRoute=params=>{return http.put(`${baseUrl}/editRoute`,  params);};




//单据申报
//新增方法
export const addBill = params => { return http.post(`${baseUrlBill}/addBill`,  params); };
//查询列表
export const selectBill=params=>{return http.get(`${baseUrlBill}/selectBill`,  params);};
//删除方法
export const editBill=params=>{return http.put(`${baseUrlBill}/editBill`,  params);};


//航班申报
//新增方法
export const addFlight = params => { return http.post(`${baseUrlFlight}/addFlight`,  params); };
//查询列表
export const selectFlight=params=>{return http.get(`${baseUrlFlight}/selectFlight`,  params);};
//删除方法
export const editFlight=params=>{return http.put(`${baseUrlFlight}/editFlight`,  params);};

//航班当日计划申报
//新增方法
export const addFlightPlan = params => { return http.post(`${baseUrlFlightPlan}/addFlightPlan`,  params); };
//查询列表
export const selectFlightPlan=params=>{return http.get(`${baseUrlFlightPlan}/selectFlightPlan`,  params);};
//删除方法
export const editFlightPlan=params=>{return http.put(`${baseUrlFlightPlan}/editFlightPlan`,  params);};

//通用航空器申报
//新增方法
export const addAircraft = params => { return http.post(`${baseUrlAircraft}/addAircraft`,  params); };
//查询列表
export const selectAircraft=params=>{return http.get(`${baseUrlAircraft}/selectAircraft`,  params);};
//删除方法
export const editAircraft=params=>{return http.put(`${baseUrlAircraft}/editAircraft`,  params);};

//航线航空器申报
//新增方法
export const addAirLineAircraft = params => { return http.post(`${baseUrlAirLineAircraft}/addAirLineAircraft`,  params); };
//删除方法
export const editAirLineAircraft=params=>{return http.put(`${baseUrlAirLineAircraft}/editAirLineAircraft`,  params);};
//查询列表
export const selectAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAircraft}/selectAirLineAircraft`,  params);};


//进港预报申报prediction
//新增方法
export const addPrediction = params => { return http.post(`${baseUrlPrediction}/addPrediction`,  params); };
//删除方法
export const editPrediction=params=>{return http.put(`${baseUrlPrediction}/editPrediction`,  params);};
//查询列表
export const selectPrediction=params=>{return http.get(`${baseUrlPrediction}/selectPrediction`,  params);};


//进港确报申报confirm
//新增方法
export const addConfirm = params => { return http.post(`${baseUrlConfirm}/addConfirm`,  params); };
//删除方法
export const editConfirm=params=>{return http.put(`${baseUrlConfirm}/editConfirm`,  params);};
//查询列表
export const selectConfirm=params=>{return http.get(`${baseUrlConfirm}/selectConfirm`,  params);};


//进港航班配置
//新增方法
export const addSchedule = params => { return http.post(`${baseUrlSchedule}/addSchedule`,  params); };
//删除方法
export const editSchedule=params=>{return http.put(`${baseUrlSchedule}/editSchedule`,  params);};
//查询列表
export const selectSchedule=params=>{return http.get(`${baseUrlSchedule}/selectSchedule`,  params);};



//查询长期计划查询列表
export const selectLongTimePlan=params=>{return http.get(`${baseUrlLongtimeplan}/selectLongTimePlan`,  params);};


//机组人员
//新增方法
export const addBillPerson = params => { return http.post(`${baseUrlBillperson}/addBillPerson`,  params); };
//删除方法
export const editBillPerson=params=>{return http.put(`${baseUrlBillperson}/editBillPerson`,  params);};
//查询列表
export const selectBillPerson=params=>{return http.get(`${baseUrlBillperson}/selectBillPerson`,  params);};

//查询回执列表
export const selectReturnMsg=params=>{return http.get(`${baseUrlResultMsg}/selectReturnMsg`,  params);};