|
|
|
import request from '@/utils/request'
|
|
|
|
var service_name = 'oil-finance'
|
|
|
|
var group_name = 'oilOrderInfo'
|
|
|
|
var New_Name = 'oilOrderInfoExcel'
|
|
|
|
export default {
|
|
|
|
getByPage(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getByPage`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
toCancelSf(orderId) { // 顺丰取消订单
|
|
|
|
return request({
|
|
|
|
url: `/oil-site/sf/finishOrder/${orderId}`,
|
|
|
|
method: 'get',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getByCustomPage(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getByCustomPage`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getByCustomPageDept(page) { // 分页查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getByCustomPageDept`,
|
|
|
|
method: 'post',
|
|
|
|
data: page
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
getTotalCount() { // 查询订单统计信息
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getTotalData`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getOrderBySerialOrId(serialNumber) { // 查询订单统计信息
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getOrderBySerialOrId`,
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
serialNumber
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
save(orderInfo) { // 保存
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/save`,
|
|
|
|
method: 'post',
|
|
|
|
data: orderInfo
|
|
|
|
})
|
|
|
|
},
|
|
|
|
get(id) { // 根据id查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/get/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getOrderInfoByOrderSerialNumber(id) { // 根据订单流水号查询
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/getOrderInfoByOrderSerialNumber/${id}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
update(orderInfo) { // 更新
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/update`,
|
|
|
|
method: 'put',
|
|
|
|
data: orderInfo
|
|
|
|
})
|
|
|
|
},
|
|
|
|
exportExcel(page) { // 导出
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/export`,
|
|
|
|
method: 'post',
|
|
|
|
notEncrypt: true,
|
|
|
|
data: page,
|
|
|
|
responseType: 'blob'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
deleteById(id) { // 根据id删除
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/delete`,
|
|
|
|
method: 'put',
|
|
|
|
data: { id: id }
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
wechatPayRefund(row) { // 微信支付退款(随行付)
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${group_name}/wechatPayRefund`,
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
exportOrderWeb(data) { // 业务订单导出
|
|
|
|
return request({
|
|
|
|
url: `/oil-finance/oilOrderInfoExcel/exportOrderWeb`,
|
|
|
|
method: 'post',
|
|
|
|
data: data,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
exportOrderWebDept(data) { // 业务订单导出
|
|
|
|
return request({
|
|
|
|
url: `/${service_name}/${New_Name}/exportOrderWebDept`,
|
|
|
|
method: 'post',
|
|
|
|
data: data,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|