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
b67ba90a
Commit
b67ba90a
authored
Sep 29, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建租车订单
parent
e13b129b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1460 additions
and
838 deletions
+1460
-838
index.js
src/api/admin/userManagement/index.js
+15
-0
rentVehicle.js
src/api/order/rentVehicle.js
+26
-0
index.js
src/router/index.js
+6
-0
index.vue
src/views/order/createOrder/index.vue
+409
-0
index.vue
src/views/order/orderStatistics/index.vue
+3
-3
index.vue
src/views/order/rentVehicleInfo/index.vue
+1001
-835
No files found.
src/api/admin/userManagement/index.js
View file @
b67ba90a
...
...
@@ -116,3 +116,18 @@ export function deleteStaffs(id) {
});
}
//检测员工
export
function
checkStaffs
(
id
)
{
return
fetch
({
url
:
'/api/admin/api/app/unauth/check?phone='
+
id
,
method
:
'get'
});
}
export
function
username
(
id
)
{
return
fetch
({
url
:
'api/admin/public/app/userinfo-by-username?name='
+
id
,
method
:
'get'
});
}
\ No newline at end of file
src/api/order/rentVehicle.js
View file @
b67ba90a
...
...
@@ -71,3 +71,29 @@ export function getStep(orderNo) {
method
:
'get'
});
}
export
function
inquire
(
query
)
{
return
fetch
({
url
:
'/vehicle/vehicleInfo/rent/usable-vehicle'
,
method
:
'get'
,
params
:
query
});
}
//创建订单
export
function
addIndent
(
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
});
}
\ No newline at end of file
src/router/index.js
View file @
b67ba90a
...
...
@@ -432,6 +432,12 @@ export const asyncRouterMap = [{
component
:
_import
(
'order/orderStatistics/index'
),
name
:
'会员订单统计'
,
authority
:
'orderStatistics'
},
{
path
:
'createOrder'
,
component
:
_import
(
'order/createOrder/index'
),
name
:
'创建租车订单'
,
authority
:
'createOrder'
}
]
},
...
...
src/views/order/createOrder/index.vue
0 → 100644
View file @
b67ba90a
This diff is collapsed.
Click to expand it.
src/views/order/orderStatistics/index.vue
View file @
b67ba90a
...
...
@@ -32,7 +32,7 @@
</el-row>
</el-form>
<el-table
<
!--
<
el-table
:key=
"tableKey"
:data=
"list"
border
...
...
@@ -85,7 +85,7 @@
<span>
{{
scope
.
row
.
name
}}
</span>
</
template
>
</el-table-column>
</el-table>
</el-table>
-->
</div>
</div>
</template>
...
...
@@ -117,7 +117,7 @@ export default {
id
:
"3"
}
],
isactive
:
"
全部
"
isactive
:
"
日统计
"
};
},
methods
:
{
...
...
src/views/order/rentVehicleInfo/index.vue
View file @
b67ba90a
This diff is collapsed.
Click to expand it.
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