cargoSelect.js 2.17 KB
import request from '@/utils/request'

//货物查询查询条件数据
/**
 * @param
 */
export function findConditionData(data) {
  return request({
    url: '/cargo/findConditionData',
    method: 'post',
    data: data
  })
}

//货物查询
/**
 * @param
 */
export function findCargoData(data) {
  return request({
    url: '/cargo/findCargoData',
    method: 'post',
    data: data
  })
}
//货物预审查询
export function findCagroPreData(data) {
  return request({
    url: '/cargo/findCagroPreData',
    method: 'post',
    data: data
  })
}

//货物配舱查询
export function findCargoAllocationData(data) {
  return request({
    url: '/cargo/findCargoAllocationData',
    method: 'post',
    data: data
  })
}

//手动配舱
export function allocationFlight(data) {
  return request({
    url: '/cargo/allocationFlight',
    method: 'post',
    data: data
  })
}

//导出excel
export function downloadExcel(data) {
  return request({
    url: '/cargo/excel',
    method: 'post',
    data: data,
    responseType: 'blob',
  })
}

//释放舱位
export function releaseCargo(data) {
  return request({
    url: '/cargo/releaseCargo',
    method: 'post',
    data: data,
  })
}

//航班号+日期查询航线(手动配舱)
/**
 * @param fltDate * 航班日期
 * @param fltNo * 航班号
 */
export function findFlightRoute(data) {
  return request({
    url: '/cargo/findFlightRoute',
    method: 'post',
    data: data
  })
}

//航班号+日期查询ACCS航线(手动配舱查询项)
/**
 * @param fltDateAccs 航班日期
 * @param fltNoAccs 航班号
 */
export function getAccsRoute(data) {
  return request({
    url: '/dmDataLog/getAccsRoute',
    method: 'post',
    data: data
  })
}

//航班号+日期查询ACCS航线(货物查询查询项)
/**
 * @param fltNoAccs 航班号 list
 */
export function getFlightsRoutes(data) {
  return request({
    url: '/dictionary/getFlightsRoutes',
    method: 'post',
    data: data
  })
}

//航班迁转
/**
 * @param ids * 货物id list
 * @param flightId * 航班id
 * @param route * 航线 
 */
export function batchMoveCargoToOtherFlight(data) {
  return request({
    url: '/cargo/batchMoveCargoToOtherFlight',
    method: 'post',
    data: data
  })
}