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
56661c8c
Commit
56661c8c
authored
Aug 05, 2019
by
denghr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
押金记录
parent
967a4fba
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
175 additions
and
15 deletions
+175
-15
App.vue
src/App.vue
+2
-2
rentVehicle.js
src/api/order/rentVehicle.js
+11
-0
active.png
src/assets/images/active.png
+0
-0
doing.png
src/assets/images/doing.png
+0
-0
Navbar.vue
src/views/layout/Navbar.vue
+6
-1
index.vue
src/views/order/rentVehicleInfo/index.vue
+154
-10
index.vue
src/views/vehicle/vehicleInfo/index.vue
+2
-2
No files found.
src/App.vue
View file @
56661c8c
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
border-bottom
:
1px
solid
#ccc
;
border-bottom
:
1px
solid
#ccc
;
}
}
.main-container
{
.main-container
{
padding
:
0
10px
;
//
padding: 0 10px;
margin-top
:
61
px
;
// margin-top: 10
px;
}
}
.header-title
{
.header-title
{
margin
:
0
88px
;
margin
:
0
88px
;
...
...
src/api/order/rentVehicle.js
View file @
56661c8c
...
@@ -60,3 +60,14 @@ export function saveOrderViolation(params) {
...
@@ -60,3 +60,14 @@ export function saveOrderViolation(params) {
data
:
params
data
:
params
});
});
}
}
/**
* 获取押金退款进度
* @param query
*/
export
function
getStep
(
orderNo
)
{
return
fetch
({
url
:
'api/order/orderVehicle/getByOrderId?orderNo='
+
orderNo
,
method
:
'get'
});
}
src/assets/images/active.png
0 → 100644
View file @
56661c8c
800 Bytes
src/assets/images/doing.png
0 → 100644
View file @
56661c8c
813 Bytes
src/views/layout/Navbar.vue
View file @
56661c8c
<
template
>
<
template
>
<el-menu
class=
"navbar"
mode=
"horizontal"
>
<el-menu
class=
"navbar"
mode=
"horizontal"
>
<hamburger
class=
"hamburger-container"
:toggleClick=
"toggleSideBar"
:isActive=
"sidebar.opened"
></hamburger>
<hamburger
class=
"hamburger-container"
:toggleClick=
"toggleSideBar"
:isActive=
"sidebar.opened"
></hamburger>
<levelbar></levelbar>
<levelbar></levelbar>
<tabs-view></tabs-view>
<tabs-view></tabs-view>
...
@@ -66,6 +65,12 @@ export default {
...
@@ -66,6 +65,12 @@ export default {
</
script
>
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.el-menu
{
background-color
:
#fff
;
height
:
70px
;
line-height
:
70px
;
-moz-box-shadow
:
1px
1px
3px
#ccc
;
-webkit-box-shadow
:
1px
1px
3px
#ccc
;
box-shadow
:
1px
1px
3px
#ccc
;
}
.navbar
{
.navbar
{
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
...
...
src/views/order/rentVehicleInfo/index.vue
View file @
56661c8c
...
@@ -147,6 +147,75 @@
...
@@ -147,6 +147,75 @@
<div
class=
"label-title"
>
<div
class=
"label-title"
>
<span
>
还车:
</span>
<span
class=
"label-text"
>
{{form.orderRentVehicleDetail.endTime}}
</span><span
class=
"label-text"
>
{{form.orderRentVehicleDetail.endAddr}}
</span>
<span
class=
"label-text"
>
交车公司:
</span><span>
{{form.endCompanyName}}
</span>
<span
>
还车:
</span>
<span
class=
"label-text"
>
{{form.orderRentVehicleDetail.endTime}}
</span><span
class=
"label-text"
>
{{form.orderRentVehicleDetail.endAddr}}
</span>
<span
class=
"label-text"
>
交车公司:
</span><span>
{{form.endCompanyName}}
</span>
</div>
</div>
<div
class=
"stepBox"
v-if=
"depositDetail"
>
<div
class=
"title"
v-if=
"depositRefundRecord.length>0"
>
退款进度
</div>
<ul>
<li
v-for =
"(item,index) in depositRefundRecord"
:class=
"{'active':item.iscomplete}"
:key=
"index"
>
<img
class=
"activeImg"
v-if=
"item.iscomplete"
src=
"../../../assets/images/active.png"
alt=
""
>
<img
class=
"activeImg"
v-if=
"!item.iscomplete"
src=
"../../../assets/images/doing.png"
alt=
""
>
<p
class=
"stepTitle"
>
<
template
v-if=
"item.status==1"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
15000押金退还已申请
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
<
template
v-if=
"item.status==2"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
15000元押金退还到账
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
<
template
v-if=
"item.status==3"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
{{
item
.
restAmount
}}
元房车违章押金到账
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
<
template
v-if=
"item.status==4"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
房车定损评定中
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
<
template
v-if=
"item.status==5"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
完成定损,退还剩余押金
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
<
template
v-if=
"item.status==6"
>
<div
class=
"picBox"
>
<div
style=
"flex: 1"
>
押金退还到账
</div>
<div
style=
"font-size: 10px;color: #999"
>
{{
item
.
updTimeStr
}}
</div>
</div>
</
template
>
</p>
<p
class=
"tip"
>
<
template
v-if=
"item.status==1"
>
成功还车,退还15000租车押金
</
template
>
<
template
v-if=
"item.status==2"
>
{{
item
.
updTimeStr
}}
到账
</
template
>
<
template
v-if=
"item.status==3"
>
预计
{{
item
.
endTimeStr
}}
之前到账
</
template
>
<
template
v-if=
"item.status==4"
>
押金将在定损后退还,请耐心等待...
</
template
>
<
template
v-if=
"item.status==5"
>
定损流程有疑问可联系滴房车 客服
<a
:href=
"'tel://'+Tel"
style=
"color: #666666;"
>
{{
Tel
}}
</a></
template
>
<
template
v-if=
"item.status==6"
>
定损流程有疑问可联系滴房车 客服
<a
:href=
"'tel://'+Tel"
style=
"color: #666666;"
>
{{
Tel
}}
</a></
template
>
</p>
<p
class=
"detailTitle"
v-if=
"item.orderViolation && item.status==3"
style=
"margin-top: 15px"
>
违章罚款
</p>
<p
class=
"detailTitle"
v-if=
"item.orderViolation && item.status==3"
>
违章截图:
</p>
<div
class=
"picBox"
v-if=
"dedDetail.length>0"
>
<img
class=
"picItem"
:src=
"itm"
alt=
""
v-for =
"(itm,idx) in item.pictureList"
:key=
"idx"
>
</div>
<p
class=
"detailTitle"
v-if=
"item.orderViolation && item.status==3"
style=
"color: #666666;font-size: 13px"
>
如有疑问,可联系滴房车客服
<a
:href=
"'tel://'+Tel"
style=
"color: #666666;"
>
{{Tel}}
</a></p>
<p
class=
"detailTitle"
v-if=
"dedDetail.length>0 && item.status==5"
style=
"margin-top: 15px"
>
定损总罚款{{dedTotal}}元
</p>
<p
class=
"detailTitle"
v-if=
"dedDetail.length>0 && item.status==5"
>
明细
</p>
<div
v-if=
"dedDetail.length>0 && item.status==5"
v-for=
"(itm,idx) in dedDetail"
:key=
"idx"
>
<p
class=
"detailTitle"
>
{{itm.id}}、{{itm.statusName}}
</p>
<div
class=
"picBox"
>
<img
class=
"picItem"
:src=
"it"
alt=
""
v-for =
"(it,ix) in itm.picList"
:key=
"ix"
>
</div>
</div>
</li>
</ul>
</div>
<div
v-if=
"vehicleDetail"
style=
"border: 1px solid;"
>
<div
v-if=
"vehicleDetail"
style=
"border: 1px solid;"
>
<div
style=
"border-bottom: 1px solid;"
>
<div
style=
"border-bottom: 1px solid;"
>
<span
class=
"label-text"
>
交车交接人:
</span><span
class=
"label-text"
>
{{orderReturnVehicleCrosstown.username}}
</span>
<span
class=
"label-text"
>
交车交接人:
</span><span
class=
"label-text"
>
{{orderReturnVehicleCrosstown.username}}
</span>
...
@@ -183,10 +252,6 @@
...
@@ -183,10 +252,6 @@
</div>
</div>
</div>
</div>
<!--押金记录-->
<div
v-if=
"refundshow"
>
</div>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
...
@@ -208,7 +273,8 @@
...
@@ -208,7 +273,8 @@
page
,
page
,
getAllBranchCompany
,
getAllBranchCompany
,
getAllBranchCompanyByZoneId
,
getAllBranchCompanyByZoneId
,
getOrderVehicleCrosstown
getOrderVehicleCrosstown
,
getStep
}
from
'api/order/rentVehicle'
;
}
from
'api/order/rentVehicle'
;
import
{
import
{
timestamp2Date
timestamp2Date
...
@@ -236,6 +302,11 @@
...
@@ -236,6 +302,11 @@
},
},
data
()
{
data
()
{
return
{
return
{
pictureList
:[],
dedDetail
:[],
depositRefundRecord
:[],
dedTotal
:
''
,
Tel
:
''
,
form
:
{
form
:
{
couponAmount
:
undefined
,
couponAmount
:
undefined
,
crtHost
:
undefined
,
crtHost
:
undefined
,
...
@@ -376,8 +447,9 @@
...
@@ -376,8 +447,9 @@
handover
:
false
,
handover
:
false
,
returnVehicle
:
false
,
returnVehicle
:
false
,
refundshow
:
false
,
//退款信息
refundshow
:
false
,
//退款信息
vehicleDetail
:
true
,
//交还车信息,默认全部显示
vehicleDetail
:
false
,
//交还车信息,默认全部显示
order_btn_order_violcation_save
:
false
order_btn_order_violcation_save
:
false
,
depositDetail
:
false
,
}
}
},
},
created
()
{
created
()
{
...
@@ -565,10 +637,60 @@
...
@@ -565,10 +637,60 @@
this
.
returnVehicle
=
true
this
.
returnVehicle
=
true
this
.
handover
=
false
this
.
handover
=
false
this
.
vehicleDetail
=
true
this
.
vehicleDetail
=
true
this
.
depositDetail
=
false
},
},
handleRefundVehicle
(
row
)
{
handleRefundVehicle
(
row
)
{
console
.
log
(
row
)
console
.
log
(
row
)
this
.
modalTitle
=
"还车记录"
var
that
=
this
;
that
.
pictureList
=
[];
that
.
dedDetail
=
[];
that
.
depositRefundRecord
=
[];
that
.
dedTotal
=
''
;
that
.
Tel
=
''
;
getStep
(
row
.
no
).
then
(
response
=>
{
response
.
data
.
forEach
(
function
(
item
)
{
if
(
item
.
type
!=
1
){
that
.
type
=
item
.
type
if
(
item
.
dedDetail
){
var
dedTotal
=
''
var
dedDetail
=
JSON
.
parse
(
item
.
dedDetail
);
that
.
dedDetail
=
dedDetail
;
dedDetail
.
forEach
(
function
(
item
){
dedTotal
+=
item
.
cost
})
that
.
dedTotal
=
dedTotal
;
}
item
.
depositRefundRecord
.
forEach
(
function
(
itm
){
itm
.
updTimeStr
=
timestamp2Date
(
itm
.
updTime
);
if
(
itm
.
status
==
3
){
itm
.
endTimeStr
=
timestamp2Date
(
Number
(
itm
.
updTime
)
+
2592000000
)
if
(
itm
.
orderViolation
){
if
(
itm
.
orderViolation
.
picture
){
var
Arr
=
itm
.
orderViolation
.
picture
.
split
(
","
);
var
arrivalPicList
=
[];
Arr
.
map
(
function
(
it
){
arrivalPicList
.
push
(
it
);
});
itm
.
pictureList
=
arrivalPicList
;
}
}
}
})
if
(
item
.
type
==
3
){
var
arr
=
item
.
depositRefundRecord
;
var
item
=
arr
.
shift
();
arr
.
push
(
item
)
}
else
{
var
arr
=
item
.
depositRefundRecord
;
}
that
.
depositRefundRecord
=
arr
console
.
log
(
that
.
depositRefundRecord
)
}
});
})
this
.
modalTitle
=
"押金记录"
this
.
form
=
row
;
this
.
form
=
row
;
if
(
this
.
form
.
status
==
2
)
{
if
(
this
.
form
.
status
==
2
)
{
this
.
form
.
ststusName
=
'取消'
;
this
.
form
.
ststusName
=
'取消'
;
...
@@ -588,7 +710,8 @@
...
@@ -588,7 +710,8 @@
this
.
form
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
)
this
.
form
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
)
this
.
form
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
)
this
.
form
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
)
this
.
orderVehicleCrosstownVisible
=
true
this
.
orderVehicleCrosstownVisible
=
true
this
.
vehicleDetail
=
false
this
.
vehicleDetail
=
false
this
.
depositDetail
=
true
},
},
//监听change事件
//监听change事件
getProvinceRegions
(
item
)
{
getProvinceRegions
(
item
)
{
...
@@ -702,7 +825,7 @@
...
@@ -702,7 +825,7 @@
}
}
</
script
>
</
script
>
<
style
>
<
style
scpoed
>
.label-text
{
.label-text
{
margin-left
:
10px
;
margin-left
:
10px
;
margin-right
:
20px
;
margin-right
:
20px
;
...
@@ -732,4 +855,25 @@
...
@@ -732,4 +855,25 @@
.order-details
.el-form-item
{
.order-details
.el-form-item
{
margin-bottom
:
10px
!important
;
margin-bottom
:
10px
!important
;
}
}
.stepBox
{
background-color
:
#fff
;
width
:
100%
;
margin-top
:
10px
;}
.title
{
font-size
:
17px
;
color
:
#171413
;
border-bottom
:
1px
solid
#CCCCCC
;
margin-bottom
:
10px
;
font-weight
:
400
;
padding
:
10px
;}
.stepBox
ul
{
margin-left
:
10px
;
padding-left
:
10px
;
padding-top
:
20px
;}
.stepBox
li
{
position
:
relative
;
padding
:
0
20px
20px
20px
;
list-style
:
none
;
min-height
:
40px
;
border-left
:
1px
solid
#ccc
;
margin-top
:
-15px
;}
.stepBox
li
.active
{
border-color
:
#47E270
;}
.stepBox
ul
li
:last-child
{
border
:
none
;}
.activeImg
,
.doingImg
{
position
:
absolute
;
width
:
28px
;
top
:
-18px
;
left
:
-14px
;}
.stepTitle
{
font-size
:
15px
;
color
:
#171413
;
padding-bottom
:
5px
}
.tip
{
font-size
:
10px
;
color
:
#999999
;}
.detailTitle
{
font-size
:
10px
;
color
:
#171413
;}
.orderBox
{
width
:
100%
;
padding
:
0
10px
;
background
:
#fff
;}
.orderItem
{
display
:
flex
;
display
:
-webkit-box
;
display
:
-webkit-flex
;
align-items
:
center
;
padding-bottom
:
5px
}
.orderItemLeft
{
font-size
:
13px
;
color
:
#171413
}
.orderItemRight
{
font-size
:
13px
;
color
:
#666666
}
.detailBox
{
display
:
flex
;
display
:
-webkit-box
;
display
:
-webkit-flex
;
padding
:
0
10px
10px
10px
;
align-items
:
center
}
.detailBoxLeft
{
width
:
80px
;
height
:
80px
;
border-radius
:
3px
;
margin-right
:
7px
}
.detailBoxRight
{
flex
:
1
;}
.copy
{
font-size
:
10px
;
color
:
#666666
;
background
:
#EEEEEE
;
border-radius
:
3px
;
padding
:
3px
;
margin-left
:
10px
}
.picBox
{
display
:
flex
;
display
:
-webkit-box
;
display
:
-webkit-flex
;
align-items
:
center
;
flex-wrap
:
wrap
}
.picItem
{
width
:
calc
(
33.3%
-
10px
);
margin-right
:
10px
;
margin-bottom
:
10px
;}
.bag
{
background
:
#171413
;
border-radius
:
3px
;
padding
:
0
2px
;
color
:
#fff
;
font-size
:
10px
;
margin-right
:
5px
}
</
style
>
</
style
>
src/views/vehicle/vehicleInfo/index.vue
View file @
56661c8c
...
@@ -1238,12 +1238,12 @@
...
@@ -1238,12 +1238,12 @@
},
},
set
:
function
([
startDate
,
endDate
])
{
set
:
function
([
startDate
,
endDate
])
{
if
(
this
.
$utils
.
isDate
(
startDate
))
{
if
(
this
.
$utils
.
isDate
(
startDate
))
{
this
.
form4Apply
.
bookStartDate
=
formatDate
(
startDate
,
'yyyy-MM-dd'
);
this
.
form4Apply
.
bookStartDate
=
formatDate
(
startDate
,
'yyyy-MM-dd
hh:mm:ss
'
);
}
else
{
}
else
{
this
.
form4Apply
.
bookStartDate
=
undefined
;
this
.
form4Apply
.
bookStartDate
=
undefined
;
}
}
if
(
this
.
$utils
.
isDate
(
endDate
))
{
if
(
this
.
$utils
.
isDate
(
endDate
))
{
this
.
form4Apply
.
bookEndDate
=
formatDate
(
endDate
,
'yyyy-MM-dd'
);
this
.
form4Apply
.
bookEndDate
=
formatDate
(
endDate
,
'yyyy-MM-dd
hh:mm:ss
'
);
}
else
{
}
else
{
this
.
form4Apply
.
bookEndDate
=
undefined
;
this
.
form4Apply
.
bookEndDate
=
undefined
;
}
}
...
...
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