Commit 0baae5b7 authored by jiaorz's avatar jiaorz

后台订单

parent bc6796e1
import fetch from 'utils/fetch'; import fetch from 'utils/fetch';
//获取租车订单
export function page(query) { export function page(query) {
return fetch({ return fetch({
url: '/api/order/baseOrder/getOrderList', url: '/api/order/baseOrder/getAll',
method: 'get', method: 'get',
params:query params: query
}); });
} }
//获取旅游订单
export function getOrderList(query) {
return fetch({
url: '/api/order/baseOrder/getOrderList',
method: 'get',
params: query
});
}
/** /**
* 获取所有分公司 * 获取所有分公司
*/ */
...@@ -22,7 +30,7 @@ export function getAllBranchCompanyByZoneId(query) { ...@@ -22,7 +30,7 @@ export function getAllBranchCompanyByZoneId(query) {
return fetch({ return fetch({
url: '/vehicle/branchCompany/app/unauth/getByZone', url: '/vehicle/branchCompany/app/unauth/getByZone',
method: 'get', method: 'get',
params:query params: query
}); });
} }
...@@ -30,7 +38,7 @@ export function getOrderVehicleCrosstown(query) { ...@@ -30,7 +38,7 @@ export function getOrderVehicleCrosstown(query) {
return fetch({ return fetch({
url: '/api/order/orderVehicle/getByOrderId', url: '/api/order/orderVehicle/getByOrderId',
method: 'get', method: 'get',
params:query params: query
}); });
} }
...@@ -76,7 +84,7 @@ export function inquire(query) { ...@@ -76,7 +84,7 @@ export function inquire(query) {
return fetch({ return fetch({
url: '/vehicle/vehicleInfo/rent/back-stage/usable-vehicle', url: '/vehicle/vehicleInfo/rent/back-stage/usable-vehicle',
method: 'get', method: 'get',
params:query params: query
}); });
} }
...@@ -85,16 +93,16 @@ export function addIndent(params) { ...@@ -85,16 +93,16 @@ export function addIndent(params) {
return fetch({ return fetch({
url: '/api/order/orderRentVehicle/back-stage/add', url: '/api/order/orderRentVehicle/back-stage/add',
method: 'post', method: 'post',
data:params data: params
}); });
} }
//删除订单 //删除订单
export function calculate(no, params) { export function calculate(no, params) {
return fetch({ return fetch({
url: '/api/order/baseOrder/back-stage/cancel/'+ no, url: '/api/order/baseOrder/back-stage/cancel/' + no,
method: 'post', method: 'post',
data:params data: params
}); });
} }
...@@ -104,7 +112,7 @@ export function calculate(no, params) { ...@@ -104,7 +112,7 @@ export function calculate(no, params) {
*/ */
export function getViolatePrice(no) { export function getViolatePrice(no) {
return fetch({ return fetch({
url: '/api/order/orderRefund/bg-stage/getViolatePrice/'+ no, url: '/api/order/orderRefund/bg-stage/getViolatePrice/' + no,
method: 'get', method: 'get',
}); });
} }
...@@ -114,7 +122,7 @@ export function orderStatistics(params) { ...@@ -114,7 +122,7 @@ export function orderStatistics(params) {
return fetch({ return fetch({
url: 'api/order/orderStatistics/order', url: 'api/order/orderStatistics/order',
method: 'post', method: 'post',
data:params data: params
}); });
} }
...@@ -154,3 +162,12 @@ export function user_info(id) { ...@@ -154,3 +162,12 @@ export function user_info(id) {
method: 'get' method: 'get'
}); });
} }
//获取订单详情
export function orderDetail(query) {
return fetch({
url: '/api/order/baseOrder/orderDetail',
method: 'get',
params: query
});
}
...@@ -156,6 +156,7 @@ ...@@ -156,6 +156,7 @@
import tourOrderDetailModal from "../modal/tourOrderDetailModal";//租车订单详情 import tourOrderDetailModal from "../modal/tourOrderDetailModal";//租车订单详情
import { import {
page, page,
getOrderList,
getAllBranchCompany, getAllBranchCompany,
getAllBranchCompanyByZoneId, getAllBranchCompanyByZoneId,
calculate, calculate,
...@@ -614,7 +615,7 @@ import {getAllCompany } from 'api/base_info/branch_company' ...@@ -614,7 +615,7 @@ import {getAllCompany } from 'api/base_info/branch_company'
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("tourOrderInfo", JSON.stringify(this.listQuery)); localStorage.setItem("tourOrderInfo", JSON.stringify(this.listQuery));
} }
page(this.listQuery) getOrderList(this.listQuery)
.then(response => { .then(response => {
this.list = response.data.data; this.list = response.data.data;
this.total = response.data.totalCount; this.total = response.data.totalCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment