Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
0baae5b7
Commit
0baae5b7
authored
Nov 19, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台订单
parent
bc6796e1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
199 deletions
+145
-199
rentVehicle.js
src/api/order/rentVehicle.js
+96
-79
rentOrderDetailModal.vue
src/views/order/modal/rentOrderDetailModal.vue
+47
-119
index.vue
src/views/order/tourOrderInfo/index.vue
+2
-1
No files found.
src/api/order/rentVehicle.js
View file @
0baae5b7
import
fetch
from
'utils/fetch'
;
//获取租车订单
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/order/baseOrder/getOrderList
'
,
method
:
'get'
,
params
:
query
});
return
fetch
({
url
:
'/api/order/baseOrder/getAll
'
,
method
:
'get'
,
params
:
query
});
}
//获取旅游订单
export
function
getOrderList
(
query
)
{
return
fetch
({
url
:
'/api/order/baseOrder/getOrderList'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取所有分公司
*/
export
function
getAllBranchCompany
()
{
return
fetch
({
url
:
'/vehicle/branchCompany'
,
method
:
'get'
});
return
fetch
({
url
:
'/vehicle/branchCompany'
,
method
:
'get'
});
}
//根据大区Id获取分公司列表
export
function
getAllBranchCompanyByZoneId
(
query
)
{
return
fetch
({
url
:
'/vehicle/branchCompany/app/unauth/getByZone'
,
method
:
'get'
,
params
:
query
});
return
fetch
({
url
:
'/vehicle/branchCompany/app/unauth/getByZone'
,
method
:
'get'
,
params
:
query
});
}
export
function
getOrderVehicleCrosstown
(
query
)
{
return
fetch
({
url
:
'/api/order/orderVehicle/getByOrderId'
,
method
:
'get'
,
params
:
query
});
return
fetch
({
url
:
'/api/order/orderVehicle/getByOrderId'
,
method
:
'get'
,
params
:
query
});
}
/**
...
...
@@ -39,10 +47,10 @@ export function getOrderVehicleCrosstown(query) {
* @param query
*/
export
function
getOneIllegalRow
(
id
)
{
return
fetch
({
url
:
'/api/order/orderViolation/getOne/'
+
id
,
method
:
'get'
});
return
fetch
({
url
:
'/api/order/orderViolation/getOne/'
+
id
,
method
:
'get'
});
}
/**
...
...
@@ -54,11 +62,11 @@ detailId:租车订单id
}
*/
export
function
saveOrderViolation
(
params
)
{
return
fetch
({
url
:
'/api/order/orderViolation/saveOrderViolation'
,
method
:
'post'
,
data
:
params
});
return
fetch
({
url
:
'/api/order/orderViolation/saveOrderViolation'
,
method
:
'post'
,
data
:
params
});
}
/**
...
...
@@ -66,36 +74,36 @@ export function saveOrderViolation(params) {
* @param query
*/
export
function
getStep
(
orderNo
)
{
return
fetch
({
url
:
'/api/order/orderVehicle/getByOrderId?orderNo='
+
orderNo
,
method
:
'get'
});
return
fetch
({
url
:
'/api/order/orderVehicle/getByOrderId?orderNo='
+
orderNo
,
method
:
'get'
});
}
export
function
inquire
(
query
)
{
return
fetch
({
url
:
'/vehicle/vehicleInfo/rent/back-stage/usable-vehicle'
,
method
:
'get'
,
params
:
query
});
return
fetch
({
url
:
'/vehicle/vehicleInfo/rent/back-stage/usable-vehicle'
,
method
:
'get'
,
params
:
query
});
}
//创建订单
export
function
addIndent
(
params
)
{
return
fetch
({
url
:
'/api/order/orderRentVehicle/back-stage/add'
,
method
:
'post'
,
data
:
params
});
return
fetch
({
url
:
'/api/order/orderRentVehicle/back-stage/add'
,
method
:
'post'
,
data
:
params
});
}
//删除订单
export
function
calculate
(
no
,
params
)
{
return
fetch
({
url
:
'/api/order/baseOrder/back-stage/cancel/'
+
no
,
method
:
'post'
,
data
:
params
});
return
fetch
({
url
:
'/api/order/baseOrder/back-stage/cancel/'
+
no
,
method
:
'post'
,
data
:
params
});
}
/**
...
...
@@ -103,54 +111,63 @@ export function calculate(no, params) {
* @param {Object} params计算违约价格
*/
export
function
getViolatePrice
(
no
)
{
return
fetch
({
url
:
'/api/order/orderRefund/bg-stage/getViolatePrice/'
+
no
,
method
:
'get'
,
});
return
fetch
({
url
:
'/api/order/orderRefund/bg-stage/getViolatePrice/'
+
no
,
method
:
'get'
,
});
}
//创建订单
export
function
orderStatistics
(
params
)
{
return
fetch
({
url
:
'api/order/orderStatistics/order'
,
method
:
'post'
,
data
:
params
});
return
fetch
({
url
:
'api/order/orderStatistics/order'
,
method
:
'post'
,
data
:
params
});
}
//订单下载
export
function
downloadExcel
(
params
)
{
return
fetch
({
url
:
'/api/order/orderStatistics/excel'
,
method
:
'post'
,
data
:
params
,
responseType
:
'blob'
});
return
fetch
({
url
:
'/api/order/orderStatistics/excel'
,
method
:
'post'
,
data
:
params
,
responseType
:
'blob'
});
}
//会员订单管理列表
export
function
pageList
(
params
)
{
return
fetch
({
url
:
'/api/order/orderMember/page'
,
method
:
'post'
,
data
:
params
});
return
fetch
({
url
:
'/api/order/orderMember/page'
,
method
:
'post'
,
data
:
params
});
}
//会员订单管理导出
export
function
orderMemberExcel
(
params
)
{
return
fetch
({
url
:
'/api/order/orderMember/export'
,
method
:
'post'
,
data
:
params
,
responseType
:
'blob'
});
return
fetch
({
url
:
'/api/order/orderMember/export'
,
method
:
'post'
,
data
:
params
,
responseType
:
'blob'
});
}
//用户信息
export
function
user_info
(
id
)
{
return
fetch
({
url
:
'/api/admin/appUsersManage/user_info/'
+
id
,
method
:
'get'
});
}
\ No newline at end of file
return
fetch
({
url
:
'/api/admin/appUsersManage/user_info/'
+
id
,
method
:
'get'
});
}
//获取订单详情
export
function
orderDetail
(
query
)
{
return
fetch
({
url
:
'/api/order/baseOrder/orderDetail'
,
method
:
'get'
,
params
:
query
});
}
src/views/order/modal/rentOrderDetailModal.vue
View file @
0baae5b7
This diff is collapsed.
Click to expand it.
src/views/order/tourOrderInfo/index.vue
View file @
0baae5b7
...
...
@@ -156,6 +156,7 @@
import
tourOrderDetailModal
from
"../modal/tourOrderDetailModal"
;
//租车订单详情
import
{
page
,
getOrderList
,
getAllBranchCompany
,
getAllBranchCompanyByZoneId
,
calculate
,
...
...
@@ -614,7 +615,7 @@ import {getAllCompany } from 'api/base_info/branch_company'
if
(
this
.
listQuery
){
localStorage
.
setItem
(
"tourOrderInfo"
,
JSON
.
stringify
(
this
.
listQuery
));
}
page
(
this
.
listQuery
)
getOrderList
(
this
.
listQuery
)
.
then
(
response
=>
{
this
.
list
=
response
.
data
.
data
;
this
.
total
=
response
.
data
.
totalCount
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment