orderException.js 3.52 KB
Newer Older
我在何方's avatar
我在何方 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import request from '@/utils/request'

// 创建订单异常
export function createOrderException(data) {
  return request({
    url: '/ecw/order-exception/create',
    method: 'post',
    data: data
  })
}

// 更新订单异常
export function updateOrderException(data) {
  return request({
    url: '/ecw/order-exception/update',
    method: 'put',
    data: data
  })
}

// 删除订单异常
export function deleteOrderException(id) {
  return request({
    url: '/ecw/order-exception/delete?id=' + id,
    method: 'delete'
  })
}
我在何方's avatar
我在何方 committed
28 29 30 31 32 33 34
// 获得订单异常
export function getExceptionById(id){
  return request({
    url: '/ecw/order-exception/getExceptionById?id=' + id,
    method: 'get'
  })
}
我在何方's avatar
我在何方 committed
35 36 37 38 39 40 41 42
// 获得订单异常
export function getOrderException(id) {
  return request({
    url: '/ecw/order-exception/get?id=' + id,
    method: 'get'
  })
}

我在何方's avatar
我在何方 committed
43 44 45 46 47 48 49 50
// 根据订单ID获取所有的订单异常列表
export function getExceptionListByOrderId(id) {
  return request({
    url: '/ecw/order-exception/getExceptionListByOrderId?orderId=' + id,
    method: 'get'
  })
}

我在何方's avatar
我在何方 committed
51 52 53 54 55 56 57 58
// 获得订单异常分页
export function getOrderExceptionPage(query) {
  return request({
    url: '/ecw/order-exception/page',
    method: 'get',
    params: query
  })
}
我在何方's avatar
我在何方 committed
59 60 61 62 63 64 65 66
// 获得新订单异常分页
export function getExceptionPage(query) {
  return request({
    url: '/ecw/order-exception/exceptionPage',
    method: 'get',
    params: query
  })
}
我在何方's avatar
我在何方 committed
67 68 69 70 71 72 73 74 75
// 导出订单异常 Excel
export function exportOrderExceptionExcel(query) {
  return request({
    url: '/ecw/order-exception/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
我在何方's avatar
我在何方 committed
76 77 78 79 80 81 82 83 84

//根据异常ID进行异常处理
export function handlerExceptionByExceptionId(data){
  return request({
    url: '/ecw/order-exception/handlerExceptionByExceptionId',
    method: 'post',
    data: data
  })
}
我在何方's avatar
我在何方 committed
85 86 87 88 89 90 91 92

// 根据商品ID获取商品详情
export function getOrderItemById(id) {
  return request({
    url: '/ecw/order-exception/getOrderItemById?id=' + id,
    method: 'get'
  })
}
我在何方's avatar
我在何方 committed
93 94 95 96 97 98 99 100

// 根据订ID获取所有费用及比例
export function getOrderFeeById(query) {
  return request({
    url: '/ecw/order-exception/getOrderFeeById',
    method: 'get',
    params: query
  })
101 102 103 104 105 106 107 108 109
}

// 根据工作流中传的业务ID,获取异常审核详情
export function getBmpDetailByBusinessId(businessId) {
  return request({
    url: '/ecw/order-exception/getBmpDetailByBusinessId',
    method: 'get',
    params: {businessId}
  })
110 111 112 113 114
}

// 导出订单异常 Excel
export function exportExcel(params) {
  return request({
115
    url: '/ecw/order-exception/export-excel-async',
116
    method: 'get',
我在何方's avatar
我在何方 committed
117
    timeout: 30*60*1000,
118
    params,
119
    // timeout: 3*60*1000,
120 121
    responseType: 'arraybuffer'
  })
122
}
123 124 125 126 127 128 129
// 根据订ID获取订单异常结果
export function getOrderExcptionResult(query) {
  return request({
    url: '/ecw/order-exception-result/page',
    method: 'get',
    params: query
  })
130 131 132 133 134 135 136 137 138
}

// 根据订单ID,异常ID获取价格
export function getOrderExceptionChannelPriceList(data) {
  return request({
    url: '/order/exception-channel-price/getOrderExceptionChannelPriceList',
    method: 'post',
    data: data
  })
139 140 141 142 143 144 145 146 147
}

// 根据工作流中传的业务ID,获取不可出渠道异常详细信息
export function getExceptionDetailByBusinessId(query) {
  return request({
    url: '/ecw/order-exception/getExceptionDetailByBusinessId',
    method: 'get',
    params: query
  })
148 149
}

我在何方's avatar
我在何方 committed
150 151 152 153 154 155 156
// 参数查询获得订单统计
export function getStatistics(query) {
  return request({
    url: '/ecw/order-exception/statistics',
    method: 'get',
    params: query
  })
157
}