积分商城后台管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.8 KiB

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
})
},
1 year ago
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
})
},
1 year ago
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
}
})
},
1 year ago
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'
})
},
1 year ago
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 }
})
},
1 year ago
wechatPayRefund(row) { // 微信支付退款(随行付)
return request({
url: `/${service_name}/${group_name}/wechatPayRefund`,
method: 'post',
data: row
})
},
1 year ago
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,
})
},
}