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

// 创建预定舱计划
export function createFutureBox(data) {
  return request({
    url: '/ecw/future-box/create',
    method: 'post',
    data: data
  })
}

// 更新预定舱计划
export function updateFutureBox(data) {
  return request({
    url: '/ecw/future-box/update',
    method: 'put',
    data: data
  })
}

// 删除预定舱计划
export function deleteFutureBox(id) {
  return request({
    url: '/ecw/future-box/delete?id=' + id,
    method: 'delete'
  })
}

// 获得预定舱计划
export function getFutureBox(id) {
  return request({
    url: '/ecw/future-box/get?id=' + id,
    method: 'get'
  })
}

// 获得预定舱计划分页
export function getFutureBoxPage(query) {
  return request({
    url: '/ecw/future-box/page',
    method: 'get',
    params: query
  })
}

// 导出预定舱计划 Excel
export function exportFutureBoxExcel(query) {
  return request({
    url: '/ecw/future-box/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 根据运输方式ID得到已封柜方数
export function getBoxedVolume(params){
  return request({
    url: '/ecw/future-box/getBoxedVolume',
    method: 'get',
    params
  })
}
// 根据运输方式ID得到待入仓方数
export function getToBeWareHousedVolume(params){
  return request({
    url: '/ecw/future-box/getToBeWareHousedVolume',
    method: 'get',
    params
  })
}
// 根据运输方式ID得到已入仓方数
export function getWareHousedVolume(params){
  return request({
    url: '/ecw/future-box/getWareHousedVolume',
    method: 'get',
    params
  })
}
// 根据运输方式ID获取异常订单方数
export function getExceptionVolume(params){
  return request({
    url: '/ecw/future-box/getExceptionVolume',
    method: 'get',
    params
  })
}
// 根据运输方式ID获取自单代报订单方数
export function getOrderReportVolume(params){
  return request({
    url: '/ecw/future-box/getOrderReportVolume',
    method: 'get',
    params
  })
}

// 根据运输方式ID获取待排单订单方数
export function getWarehousingVolume(params){
  return request({
    url: '/ecw/future-box/getWarehousingVolume',
    method: 'get',
    params
  })
}