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
66b9a104
Commit
66b9a104
authored
Nov 18, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
f4491eda
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
302 additions
and
341 deletions
+302
-341
rentVehicle.js
src/api/order/rentVehicle.js
+79
-96
rentOrderDetailModal.vue
src/views/order/modal/rentOrderDetailModal.vue
+119
-48
index.vue
src/views/order/rentVehicleInfo/index.vue
+103
-195
index.vue
src/views/order/tourOrderInfo/index.vue
+1
-2
No files found.
src/api/order/rentVehicle.js
View file @
66b9a104
import
fetch
from
'utils/fetch'
;
import
fetch
from
'utils/fetch'
;
//获取租车订单
export
function
page
(
query
)
{
return
fetch
({
url
:
'/api/order/baseOrder/getAll'
,
method
:
'get'
,
params
:
query
});
}
//获取旅游订单
export
function
page
(
query
)
{
export
function
getOrderList
(
query
)
{
return
fetch
({
return
fetch
({
url
:
'/api/order/baseOrder/getOrderList'
,
url
:
'/api/order/baseOrder/getOrderList'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
});
});
}
}
/**
/**
* 获取所有分公司
* 获取所有分公司
*/
*/
...
@@ -30,7 +22,7 @@ export function getAllBranchCompanyByZoneId(query) {
...
@@ -30,7 +22,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
});
});
}
}
...
@@ -38,7 +30,7 @@ export function getOrderVehicleCrosstown(query) {
...
@@ -38,7 +30,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
});
});
}
}
...
@@ -84,7 +76,7 @@ export function inquire(query) {
...
@@ -84,7 +76,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
});
});
}
}
...
@@ -93,16 +85,16 @@ export function addIndent(params) {
...
@@ -93,16 +85,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
});
});
}
}
...
@@ -112,7 +104,7 @@ export function calculate(no, params) {
...
@@ -112,7 +104,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'
,
});
});
}
}
...
@@ -122,7 +114,7 @@ export function orderStatistics(params) {
...
@@ -122,7 +114,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
});
});
}
}
...
@@ -162,12 +154,3 @@ export function user_info(id) {
...
@@ -162,12 +154,3 @@ export function user_info(id) {
method
:
'get'
method
:
'get'
});
});
}
}
\ No newline at end of file
//获取订单详情
export
function
orderDetail
(
query
)
{
return
fetch
({
url
:
'/api/order/baseOrder/orderDetail'
,
method
:
'get'
,
params
:
query
});
}
src/views/order/modal/rentOrderDetailModal.vue
View file @
66b9a104
This diff is collapsed.
Click to expand it.
src/views/order/rentVehicleInfo/index.vue
View file @
66b9a104
This diff is collapsed.
Click to expand it.
src/views/order/tourOrderInfo/index.vue
View file @
66b9a104
...
@@ -156,7 +156,6 @@
...
@@ -156,7 +156,6 @@
import
tourOrderDetailModal
from
"../modal/tourOrderDetailModal"
;
//租车订单详情
import
tourOrderDetailModal
from
"../modal/tourOrderDetailModal"
;
//租车订单详情
import
{
import
{
page
,
page
,
getOrderList
,
getAllBranchCompany
,
getAllBranchCompany
,
getAllBranchCompanyByZoneId
,
getAllBranchCompanyByZoneId
,
calculate
,
calculate
,
...
@@ -615,7 +614,7 @@ import {getAllCompany } from 'api/base_info/branch_company'
...
@@ -615,7 +614,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
));
}
}
getOrderList
(
this
.
listQuery
)
page
(
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
;
...
...
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