227 lines
5.9 KiB
JavaScript
227 lines
5.9 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询工单列表
|
|
export function getReservationList(params) {
|
|
return request({
|
|
url: '/api/front/car/user/center/reservation/order/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 积分商品订单列表 /api/front/integral/product/order/list
|
|
export function getIntegralOrderList(params) {
|
|
return request({
|
|
url: '/api/front/integral/product/order/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//积分商品订单详情 /api/front/integral/product/order/info/{id}
|
|
export function getIntegralOrderDetail(id) {
|
|
return request({
|
|
url: `/api/front/integral/product/order/info/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//积分商品订单取消 /api/front/card/product/order/cancel/{orderNo}
|
|
export function getIntegralOrderCancel(orderNo) {
|
|
return request({
|
|
url: `/api/front/integral/product/order/cancel/${orderNo}`,
|
|
method: 'post',
|
|
})
|
|
}
|
|
//卡券订单列表 /api/front/card/product/order/list
|
|
export function getCardOrderList(params) {
|
|
return request({
|
|
url: '/api/front/card/product/order/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//卡券订单详情
|
|
export function getCardOrderDetail(id) {
|
|
return request({
|
|
url: `/api/front/card/product/order/detail/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//卡券订单取消 /api/front/card/product/order/cancel/{orderNo}
|
|
export function getCardOrderCancel(orderNo) {
|
|
return request({
|
|
url: `/api/front/card/product/order/cancel/${orderNo}`,
|
|
method: 'post',
|
|
})
|
|
}
|
|
// 卡券订单申请退款/api/front/card/product/order/refund
|
|
export function getCardOrderRefund(data) {
|
|
return request({
|
|
url: `/api/front/card/product/order/refund`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//卡券订单退款详情/api/front/card/product/order/refund/detail/{orderNo}
|
|
export function getCardOrderRefundDetail(orderNo) {
|
|
return request({
|
|
url: `/api/front/card/product/order/refund/detail/${orderNo}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//租车退款详情 /api/front/car/information/user/order/refund/info/{orderNo}
|
|
export function getInformationInfo(orderNo) {
|
|
return request({
|
|
url: `/api/front/car/information/user/order/refund/info/${orderNo}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//通过卡券订单编号获取卡券可使用门店列表 /api/front/card/product/order/merchant/list/{id}
|
|
export function getCardMerchantList(orderNo) {
|
|
return request({
|
|
url: `/api/front/card/product/order/merchant/list/${orderNo}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//删除工单 /api/front/car/user/center/delete/reservation/order/{id}
|
|
export function deleteCenterOrder(id) {
|
|
return request({
|
|
url: `/api/front/car/user/center/delete/reservation/order/${id}`,
|
|
method: 'post',
|
|
})
|
|
}
|
|
//取消工单 /api/front/car/user/center/cancel/reservation/order/{id}
|
|
export function getCancelOrderCancel(id) {
|
|
return request({
|
|
url: `/api/front/car/user/center/cancel/reservation/order/${id}`,
|
|
method: 'post',
|
|
})
|
|
}
|
|
//工单详情 /api/front/car/user/center/info
|
|
export function getCancelOrderDetail(params) {
|
|
return request({
|
|
url: `/api/front/car/user/center/info`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//工单评价 /api/front/integral/product/order/reply/save
|
|
export function getCarOrderSave(data) {
|
|
return request({
|
|
url: `/api/front/car/user/center/reply`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//工单评价详情 /api/front/merchant/reservation/reply/detail/{id}
|
|
export function getCarOrderDetail(id) {
|
|
return request({
|
|
url: `/api/front/merchant/reservation/reply/detail/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//我的工单评价列表
|
|
export function getCarOrderReplyList(params) {
|
|
return request({
|
|
url: `/api/front/car/user/center/reply/list`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//卡券订单评价 /api/front/card/product/order/reply
|
|
export function getRrontOrderReply(data) {
|
|
return request({
|
|
url: `/api/front/card/product/order/reply`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
// 卡券订单评价列表 /api/front/card/product/order/reply/list
|
|
export function getFrontOrderReplyList(params) {
|
|
return request({
|
|
url: `/api/front/card/product/order/reply/list`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 各种订单数量 /api/front/user/center/my/order/num
|
|
export function orderNum(params) {
|
|
return request({
|
|
url: `/api/front/user/center/my/order/num`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//租车订单列表 /api/front/car/information/user/order/list
|
|
export function getInformationOrderList(data) {
|
|
return request({
|
|
url: `/api/front/car/information/user/order/list`,
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
//租车订单详情 /api/front/car/information/user/order/list
|
|
export function getInformationOrderDealer(id) {
|
|
return request({
|
|
url: `/api/front/car/information/user/order/info/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//申请提前还车 /api/front/car/information/user/order/list
|
|
export function getInformationGiveCar(data) {
|
|
return request({
|
|
url: `/api/front/car/information/user/give/car`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//取消租车订单 /api/front/car/information/user/order/cancel/{id}
|
|
export function getInformationCancel(id) {
|
|
return request({
|
|
url: `/api/front/car/information/user/order/cancel/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
//评价租车订单 /api/front/car/information/user/reply
|
|
export function getInformationReply(data) {
|
|
return request({
|
|
url: `/api/front/car/information/user/reply`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//租车评价列表 /api/front/car/information/user/reply/list
|
|
export function getInformationReplyList(params) {
|
|
return request({
|
|
url: `/api/front/car/information/user/reply/list`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//租车订单申请退款 /api/front/car/information/user/refund/{id}
|
|
export function getInformationOrderRefund(data) {
|
|
return request({
|
|
url: `/api/front/car/information/user/refund`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取租车订单详情
|
|
*/
|
|
export function getProductOrderInfo(id) {
|
|
return request({
|
|
url: `/api/front/car/information/order/info/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取买车订单详情
|
|
*/
|
|
export function getProductOrderDetail(id) {
|
|
return request({
|
|
url: `/api/front/cardealer/seller/product/order/detail/${id}`,
|
|
method: 'get',
|
|
})
|
|
} |