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
bc6796e1
Commit
bc6796e1
authored
Nov 19, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base-modify'
# Conflicts: # src/views/order/rentVehicleInfo/index.vue
parents
07e1e4b6
67eeab46
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
405 additions
and
304 deletions
+405
-304
vehicleType.js
src/api/vehicleType.js
+5
-2
rentOrderDetailModal.vue
src/views/order/modal/rentOrderDetailModal.vue
+3
-3
index.vue
src/views/order/rentVehicleInfo/index.vue
+195
-114
discountRecord.vue
src/views/purseManage/discountRecord.vue
+14
-7
index.vue
src/views/vehicle/vehicleInfo/index.vue
+120
-125
index.vue
src/views/vehicle/vehicleSchedulManage/index.vue
+55
-47
priceList.vue
src/views/vehicleType/priceList.vue
+13
-6
No files found.
src/api/vehicleType.js
View file @
bc6796e1
...
...
@@ -191,10 +191,13 @@ export function dayList(day) {
}
// 日历价格设置
export
function
add_edit
(
params
)
{
export
function
add_edit
(
params
,
date
)
{
return
fetch
({
url
:
'/vehicle/admin/vehicle_model/calendar_price/add_edit
'
,
url
:
'/vehicle/admin/vehicle_model/calendar_price/add_edit
/'
+
date
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
},
data
:
params
});
}
...
...
src/views/order/modal/rentOrderDetailModal.vue
View file @
bc6796e1
...
...
@@ -381,7 +381,7 @@ export default {
duration
:
2000
})
}
else
{
this
.
returnForm
.
id
=
this
.
form
.
detailI
d
this
.
returnForm
.
id
=
this
.
orderDetailInfo
.
orderRentVehicleDetail
.
i
d
updateEndCompany
(
this
.
returnForm
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$notify
({
...
...
@@ -407,7 +407,7 @@ export default {
resetCar
()
{
this
.
clearFrom
()
this
.
resetCarVisible
=
true
this
.
resetCarForm
.
no
=
this
.
form
.
no
this
.
resetCarForm
.
no
=
this
.
orderDetailInfo
.
no
},
cancelResetCar
()
{
this
.
resetCarVisible
=
false
...
...
@@ -435,7 +435,7 @@ export default {
duration
:
2000
})
this
.
resetCarVisible
=
false
this
.
form
.
vehicleNumberPlat
=
this
.
resetCarForm
.
numberPlate
this
.
orderDetailInfo
.
vehicleNumberPlat
=
this
.
resetCarForm
.
numberPlate
this
.
updateNumberPlat
=
true
}
else
{
this
.
$notify
({
...
...
src/views/order/rentVehicleInfo/index.vue
View file @
bc6796e1
...
...
@@ -115,12 +115,12 @@
>
<el-table-column
align=
"center"
label=
"ID"
width=
"70"
>
<template
scope=
"scope"
>
<span>
{{
scope
.
row
.
i
d
}}
</span>
<span>
{{
scope
.
row
.
orderI
d
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"订单号/下单时间"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
n
o
}}
</span>
<span>
{{
scope
.
row
.
orderN
o
}}
</span>
<br
/>
<span>
{{
scope
.
row
.
crtTime
}}
</span>
</
template
>
...
...
@@ -132,23 +132,23 @@
</el-table-column>
<el-table-column
min-width=
"250"
align=
"center"
label=
"名称/车牌号"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
n
ame
}}
</span>
<span>
{{
scope
.
row
.
vehicleN
ame
}}
</span>
<br
/>
<span>
{{
scope
.
row
.
vehicleNumberPlat
}}
</span>
<span>
{{
scope
.
row
.
numberPlate
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"150"
align=
"center"
label=
"姓名/手机号"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
realN
ame
}}
</span>
/
<span>
{{
scope
.
row
.
usern
ame
}}
</span>
/
<span>
{{
scope
.
row
.
telephone
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"取车时间/还车时间"
>
<
template
scope=
"scope"
>
取:
<span>
{{
dateFormat
(
scope
.
row
.
orderRentVehicleDetail
.
startTime
)
}}
</span>
<span>
{{
dateFormat
(
scope
.
row
.
startTime
)
}}
</span>
<br
/>
还:
<span>
{{
dateFormat
(
scope
.
row
.
orderRentVehicleDetail
.
endTime
)
}}
</span>
<span>
{{
dateFormat
(
scope
.
row
.
endTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"交车公司"
>
...
...
@@ -167,7 +167,7 @@
</el-table-column>
<el-table-column
width=
"110"
align=
"center"
label=
"订单金额"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
order
Amount
}}
元
</span>
<span>
{{
scope
.
row
.
real
Amount
}}
元
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"110"
align=
"center"
label=
"支付方式"
>
...
...
@@ -246,8 +246,7 @@
<!-- 订单详情 -->
<rentOrderDetailModal
:form=
"form"
:rentCostDetail=
"tourCostDetail"
:orderDetailInfo=
"orderDetailInfo"
v-if=
"rentDialogVisible"
v-on:rentOrderDetailDialogEvent=
"rentOrderDetailDialogEvent"
></rentOrderDetailModal>
...
...
@@ -259,7 +258,7 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"10"
>
<el-form-item
label=
"客户姓名:"
>
<span>
{{form.
realN
ame}}
</span>
<span>
{{form.
usern
ame}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
...
...
@@ -358,8 +357,8 @@
</div>
<div
v-show=
"modalTitle=='还车记录'"
>
<div
v-show=
"orderReturnVehicleCrosstown.type == 3"
>
<el-form-item
label=
"定损类型:"
>
<span></span>
<
!-- <
el-form-item label="定损类型:">
<span></span>
-->
</el-form-item>
<el-form-item
label=
"定损总赔:"
>
<span>
{{dedDetailDTOListAll}}
</span>
...
...
@@ -573,7 +572,8 @@ import {
getOrderVehicleCrosstown
,
getStep
,
calculate
,
getViolatePrice
getViolatePrice
,
orderDetail
}
from
'api/order/rentVehicle'
import
{
toEast8Date
,
...
...
@@ -627,10 +627,12 @@ export default {
hasDiscount
:
undefined
,
hasMemberRight
:
undefined
,
hasPay
:
undefined
,
i
d
:
undefined
,
orderI
d
:
undefined
,
name
:
undefined
,
realName
:
undefined
,
no
:
undefined
,
username
:
undefined
,
orderNo
:
undefined
,
startTime
:
undefined
,
endTime
:
undefined
,
orderAmount
:
undefined
,
orderOrigin
:
undefined
,
orderVehicleCrosstownDto
:
{
...
...
@@ -769,6 +771,89 @@ export default {
order_btn_order_violcation_save
:
false
,
depositDetail
:
false
,
checkUserInfo
:
[],
orderDetailInfo
:
{
code
:
undefined
,
couponAmount
:
undefined
,
crtHost
:
undefined
,
crtName
:
undefined
,
crtTime
:
undefined
,
crtUser
:
undefined
,
damagesAmount
:
undefined
,
dedDetailDTO
:
undefined
,
detailId
:
undefined
,
endCompanyName
:
undefined
,
extraAmount
:
undefined
,
goodsAmount
:
undefined
,
hasDiscount
:
undefined
,
hasMemberRight
:
undefined
,
hasPay
:
undefined
,
id
:
undefined
,
illegalReserve
:
undefined
,
items
:
[],
memberLevel
:
undefined
,
memberName
:
undefined
,
name
:
undefined
,
no
:
undefined
,
orderAmount
:
undefined
,
orderOrigin
:
undefined
,
orderRentVehicleDetail
:
{
bookRecordId
:
undefined
,
costDetail
:
undefined
,
crtTime
:
undefined
,
damageSafe
:
undefined
,
dayNum
:
0
,
deposit
:
undefined
,
driverType
:
undefined
,
endAddr
:
undefined
,
endCity
:
undefined
,
endCityName
:
undefined
,
endCompanyId
:
undefined
,
endTime
:
undefined
,
fixedLossStatus
:
undefined
,
freeDays
:
undefined
,
handelViolation
:
undefined
,
id
:
undefined
,
modelId
:
undefined
,
orderId
:
undefined
,
rebate
:
undefined
,
score
:
undefined
,
startAddr
:
undefined
,
startCity
:
undefined
,
startCityName
:
undefined
,
startCompanyId
:
undefined
,
startTime
:
undefined
,
stime
:
undefined
,
suserid
:
undefined
,
updTime
:
undefined
,
usedDay
:
undefined
,
vehicleId
:
undefined
,
violateTrafficAmount
:
undefined
},
orderVehicleCrosstownDto
:
{
licenseIdCard
:
''
,
licenseImg
:
''
,
licenseName
:
''
,
licensePhone
:
''
},
outTradeNo
:
undefined
,
payOrigin
:
undefined
,
payTime
:
undefined
,
picture
:
undefined
,
realAmount
:
undefined
,
refundStatus
:
undefined
,
rentVehiclePriceVO
:
undefined
,
startCompanyName
:
undefined
,
status
:
undefined
,
telephone
:
undefined
,
type
:
undefined
,
updTime
:
undefined
,
userCompanyStatus
:
undefined
,
userId
:
undefined
,
username
:
undefined
,
vehicalNumberPlat
:
undefined
,
vehicleUserLicenses
:
undefined
,
version
:
undefined
,
violateAmount
:
undefined
,
costDetail
:
{
key
:
undefined
,
val
:
undefined
,
...
...
@@ -780,6 +865,8 @@ export default {
}
]
}
},
}
},
created
()
{
...
...
@@ -899,7 +986,7 @@ export default {
appUserId
:
row
.
userId
,
changeViolateAmount
:
null
}
calculate
(
row
.
n
o
,
params
).
then
(
data
=>
{
calculate
(
row
.
orderN
o
,
params
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$notify
({
title
:
'成功'
,
...
...
@@ -941,9 +1028,63 @@ export default {
that
.
row
=
row
}
},
getOrderDetail
()
{
if
(
this
.
form
.
orderNo
)
{
var
param
=
{
"orderNo"
:
this
.
form
.
orderNo
,
"flag"
:
true
}
orderDetail
(
param
).
then
(
response
=>
{
this
.
orderDetailInfo
=
response
.
data
if
(
this
.
orderDetailInfo
&&
this
.
orderDetailInfo
.
memberLevel
)
{
if
(
this
.
orderDetailInfo
.
memberLevel
==
1
)
{
this
.
orderDetailInfo
.
memberName
=
"普通会员"
}
if
(
this
.
orderDetailInfo
.
memberLevel
==
2
)
{
this
.
orderDetailInfo
.
memberName
=
"黄金会员"
}
if
(
this
.
orderDetailInfo
.
memberLevel
==
3
)
{
this
.
orderDetailInfo
.
memberName
=
"钻石会员"
}
if
(
this
.
orderDetailInfo
.
orderRentVehicleDetail
.
costDetail
)
{
this
.
orderDetailInfo
.
costDetail
=
JSON
.
parse
(
this
.
orderDetailInfo
.
orderRentVehicleDetail
.
costDetail
)
}
if
(
this
.
orderDetailInfo
.
costDetail
.
paramJson
)
{
this
.
orderDetailInfo
.
rentVehiclePriceVO
=
JSON
.
parse
(
this
.
orderDetailInfo
.
costDetail
.
paramJson
)
}
if
(
this
.
orderDetailInfo
.
items
)
{
for
(
var
i
=
0
;
i
<
this
.
orderDetailInfo
.
items
.
length
;
i
++
)
{
if
(
this
.
orderDetailInfo
.
items
[
i
].
type
==
104
)
{
this
.
orderDetailInfo
.
carArticlesJson
=
this
.
orderDetailInfo
.
items
[
i
].
detail
}
}
}
if
(
this
.
orderDetailInfo
.
status
==
2
)
{
this
.
orderDetailInfo
.
ststusName
=
'取消'
}
if
(
this
.
orderDetailInfo
.
status
==
-
1
)
{
this
.
orderDetailInfo
.
ststusName
=
'定损中'
}
if
(
this
.
orderDetailInfo
.
status
==
3
)
{
this
.
orderDetailInfo
.
ststusName
=
'待付款'
}
if
(
this
.
orderDetailInfo
.
status
==
4
)
{
this
.
orderDetailInfo
.
ststusName
=
'待出行'
}
if
(
this
.
orderDetailInfo
.
status
==
5
)
{
this
.
orderDetailInfo
.
ststusName
=
'出行中'
}
if
(
this
.
orderDetailInfo
.
status
==
6
)
{
this
.
orderDetailInfo
.
ststusName
=
'已完成'
}
}
this
.
rentDialogVisible
=
true
})
}
},
checkViolateAmount
()
{
console
.
log
(
this
.
topAmount
)
console
.
log
(
this
.
violateAmount
)
if
(
this
.
topAmount
<
this
.
violateAmount
)
{
this
.
$notify
({
title
:
'失败'
,
...
...
@@ -959,7 +1100,7 @@ export default {
appUserId
:
this
.
row
.
userId
,
changeViolateAmount
:
this
.
violateAmount
}
calculate
(
this
.
row
.
n
o
,
params
).
then
(
data
=>
{
calculate
(
this
.
row
.
orderN
o
,
params
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$notify
({
title
:
'成功'
,
...
...
@@ -988,7 +1129,7 @@ export default {
cancelReason
:
'后台取消'
,
appUserId
:
row
.
userId
}
getViolatePrice
(
row
.
n
o
).
then
(
data
=>
{
getViolatePrice
(
row
.
orderN
o
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
that
.
topAmount
=
data
.
data
.
topAmount
that
.
cancel
(
row
,
data
.
data
.
cutAmount
)
...
...
@@ -1022,37 +1163,15 @@ export default {
if
(
this
.
form
.
status
==
-
1
)
{
this
.
form
.
ststusName
=
'定损中'
}
this
.
form
.
orderRentVehicleDetail
.
startTime
=
this
.
form
.
orderRentVehicleDetail
.
startTime
?
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
)
this
.
form
.
startTime
=
this
.
form
.
startTime
?
timestamp2Date
(
this
.
form
.
startTime
)
:
''
this
.
form
.
orderRentVehicleDetail
.
endTime
=
this
.
form
.
orderRentVehicleDetail
.
endTime
?
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
)
this
.
form
.
endTime
=
this
.
form
.
endTime
?
timestamp2Date
(
this
.
form
.
endTime
)
:
''
if
(
this
.
form
.
orderRentVehicleDetail
.
costDetail
)
{
try
{
this
.
costDetail
=
JSON
.
parse
(
this
.
form
.
orderRentVehicleDetail
.
costDetail
)
var
cost
=
''
// console.log(this.costDetail.children);
if
(
this
.
costDetail
.
children
)
{
this
.
costDetail
.
children
.
forEach
(
function
(
a
)
{
var
detail
=
a
.
detail
==
undefined
?
''
:
a
.
detail
cost
+=
a
.
key
+
':'
+
detail
+
' '
})
}
}
catch
(
e
)
{
this
.
templateModel
()
}
}
// console.log(cost);
this
.
tourCostDetail
=
cost
if
(
this
.
form
.
orderRentVehicleDetail
.
driverType
==
1
)
{
this
.
serviceCost
=
this
.
form
.
orderRentVehicleDetail
.
dayNum
*
600
}
this
.
rentDialogVisible
=
true
this
.
getOrderDetail
();
},
/**
* 租车订单详情弹框关闭
...
...
@@ -1084,7 +1203,6 @@ export default {
illegalEvent
(
params
)
{
this
.
illegalVisible
=
false
if
(
params
)
{
// console.log(params);
}
},
/**
...
...
@@ -1093,11 +1211,10 @@ export default {
detailEvent
(
params
)
{
this
.
detailVisible
=
false
if
(
params
)
{
// console.log(params);
}
},
handleHandoverOrderVehicle
(
row
)
{
// console.log(row);
this
.
modalTitle
=
'交车记录'
this
.
form
=
row
if
(
this
.
form
.
status
==
2
)
{
...
...
@@ -1118,27 +1235,7 @@ export default {
if
(
this
.
form
.
status
==
-
1
)
{
this
.
form
.
ststusName
=
'定损中'
}
this
.
form
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
)
this
.
form
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
)
this
.
costDetail
=
JSON
.
parse
(
this
.
form
.
orderRentVehicleDetail
.
costDetail
)
var
cost
=
''
if
(
this
.
costDetail
.
children
)
{
this
.
costDetail
.
children
.
forEach
(
function
(
a
)
{
var
detail
=
a
.
detail
==
undefined
?
''
:
a
.
detail
cost
+=
a
.
key
+
':'
+
detail
+
' '
})
}
this
.
tourCostDetail
=
cost
if
(
this
.
form
.
orderRentVehicleDetail
.
driverType
==
1
)
{
this
.
serviceCost
=
this
.
form
.
orderRentVehicleDetail
.
dayNum
*
600
}
this
.
orderVehicleQuery
.
orderId
=
this
.
form
.
id
this
.
orderVehicleQuery
.
orderId
=
this
.
form
.
orderId
this
.
orderVehicleQuery
.
type
=
1
this
.
orderVehicleQuery
.
types
=
null
this
.
getAllOrderVehicleCrosstown
()
...
...
@@ -1176,7 +1273,6 @@ export default {
},
handleReturnOrderVehicle
(
row
)
{
// console.log(row);
this
.
modalTitle
=
'还车记录'
this
.
form
=
row
if
(
this
.
form
.
status
==
2
)
{
...
...
@@ -1197,27 +1293,14 @@ export default {
if
(
this
.
form
.
status
==
-
1
)
{
this
.
form
.
ststusName
=
'定损中'
}
this
.
form
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
this
.
form
.
startTime
=
timestamp2Date
(
this
.
form
.
startTime
)
this
.
form
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
this
.
form
.
endTime
=
timestamp2Date
(
this
.
form
.
endTime
)
this
.
costDetail
=
JSON
.
parse
(
this
.
form
.
orderRentVehicleDetail
.
costDetail
)
var
cost
=
''
if
(
this
.
costDetail
.
children
)
{
this
.
costDetail
.
children
.
forEach
(
function
(
a
)
{
var
detail
=
a
.
detail
==
undefined
?
''
:
a
.
detail
cost
+=
a
.
key
+
':'
+
detail
+
' '
})
}
this
.
tourCostDetail
=
cost
if
(
this
.
form
.
orderRentVehicleDetail
.
driverType
==
1
)
{
this
.
serviceCost
=
this
.
form
.
orderRentVehicleDetail
.
dayNum
*
600
}
this
.
orderVehicleQuery
.
orderId
=
this
.
form
.
id
this
.
orderVehicleQuery
.
orderId
=
this
.
form
.
orderId
this
.
orderVehicleQuery
.
types
=
'2,3'
this
.
orderVehicleQuery
.
type
=
null
this
.
getAllOrderVehicleCrosstown
()
...
...
@@ -1227,7 +1310,6 @@ export default {
this
.
depositDetail
=
false
},
handleRefundVehicle
(
row
)
{
// console.log(row);
this
.
activeInfo
=
row
var
that
=
this
that
.
pictureList
=
[]
...
...
@@ -1235,7 +1317,7 @@ export default {
that
.
depositRefundRecord
=
[]
that
.
dedTotal
=
0
that
.
Tel
=
''
getStep
(
row
.
n
o
+
'&address=1'
).
then
(
response
=>
{
getStep
(
row
.
orderN
o
+
'&address=1'
).
then
(
response
=>
{
this
.
activeRecord
=
response
.
data
[
0
]
response
.
data
.
forEach
(
function
(
item
)
{
...
...
@@ -1280,7 +1362,7 @@ export default {
var
arr
=
item
.
depositRefundRecord
}
that
.
depositRefundRecord
=
arr
// console.log(that.depositRefundRecord);
}
})
})
...
...
@@ -1304,11 +1386,11 @@ export default {
if
(
this
.
form
.
status
==
-
1
)
{
this
.
form
.
ststusName
=
'定损中'
}
this
.
form
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
startTime
this
.
form
.
startTime
=
timestamp2Date
(
this
.
form
.
startTime
)
this
.
form
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
this
.
form
.
orderRentVehicleDetail
.
endTime
this
.
form
.
endTime
=
timestamp2Date
(
this
.
form
.
endTime
)
this
.
orderVehicleCrosstownVisible
=
true
this
.
vehicleDetail
=
false
...
...
@@ -1415,7 +1497,6 @@ export default {
page
(
this
.
listQuery
).
then
(
response
=>
{
if
(
response
.
data
.
data
)
{
response
.
data
.
data
.
map
(
function
(
el
)
{
// console.log(el);
if
(
el
.
status
==
2
)
{
el
.
ststusName
=
'取消'
}
...
...
src/views/purseManage/discountRecord.vue
View file @
bc6796e1
...
...
@@ -58,7 +58,7 @@
</el-table-column>
<el-table-column
align=
"center"
label=
"收款账号"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
accountN
umber
}}
</span>
<span>
{{
scope
.
row
.
accountN
ame
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -111,8 +111,8 @@
<el-radio
v-model=
"dialogFrom.status"
label=
"1"
>
通过
</el-radio>
<el-radio
v-model=
"dialogFrom.status"
label=
"2"
>
拒绝
</el-radio>
</el-form-item>
<el-form-item
label=
"订单号"
v-if=
"dialogFrom.status==1"
required
>
<el-input
v-model=
"dialogFrom.
con
o"
placeholder=
"请输入订单号"
></el-input>
<el-form-item
label=
"订单号"
v-if=
"dialogFrom.status==1
&& this.activeOfflineWay == 2
"
required
>
<el-input
v-model=
"dialogFrom.
payMentN
o"
placeholder=
"请输入订单号"
></el-input>
</el-form-item>
<el-form-item
label=
"拒绝原因"
v-if=
"dialogFrom.status==2"
required
>
<el-input
type=
"textarea"
v-model=
"dialogFrom.reason"
placeholder=
"拒绝原因"
></el-input>
...
...
@@ -120,7 +120,7 @@
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"edit('dialogFrom')"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"edit('dialogFrom')"
:loading=
"submitBtn"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -155,6 +155,7 @@ export default {
},
data
()
{
return
{
submitBtn
:
false
,
time
:[],
//提现时间
typeOptions
:
[
{
...
...
@@ -170,6 +171,7 @@ export default {
val
:
'1'
}
],
activeOfflineWay
:
null
,
dialogVisible
:
false
,
BASE_API
:
process
.
env
.
BASE_API
,
showLoadingBody
:
false
,
...
...
@@ -190,7 +192,7 @@ export default {
tableKey
:
0
,
dialogFrom
:
{
status
:
'1'
,
con
o
:
''
,
payMentN
o
:
''
,
reason
:
''
}
}
...
...
@@ -254,14 +256,16 @@ export default {
},
handleUpdate
(
row
)
{
this
.
dialogFrom
.
cathId
=
row
.
id
this
.
activeOfflineWay
=
row
.
offlineWay
this
.
dialogVisible
=
true
},
edit
(
formName
)
{
var
that
=
this
const
set
=
this
.
$refs
set
[
formName
].
validate
(
valid
=>
{
if
(
this
.
dialogFrom
.
status
==
1
)
{
if
(
this
.
dialogFrom
.
con
o
==
''
)
{
if
(
this
.
dialogFrom
.
status
==
1
&&
this
.
activeOfflineWay
==
2
)
{
if
(
this
.
dialogFrom
.
payMentN
o
==
''
)
{
this
.
$notify
({
title
:
'警告'
,
message
:
'请输入订单号'
,
...
...
@@ -283,6 +287,7 @@ export default {
}
}
if
(
valid
)
{
this
.
submitBtn
=
true
;
editObj
(
that
.
dialogFrom
).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
dialogVisible
=
false
...
...
@@ -293,6 +298,7 @@ export default {
type
:
'success'
,
duration
:
2000
})
this
.
submitBtn
=
false
;
}
else
{
this
.
$notify
({
title
:
'失败'
,
...
...
@@ -302,6 +308,7 @@ export default {
type
:
'error'
,
duration
:
2000
})
this
.
submitBtn
=
false
;
}
})
}
else
{
...
...
src/views/vehicle/vehicleInfo/index.vue
View file @
bc6796e1
...
...
@@ -9,17 +9,12 @@
label-width=
"100px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"车牌"
>
<el-input
v-model=
"listQuery.numberPlate"
placeholder=
"请输入车牌"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"车辆编码"
>
<el-input
type=
"number"
v-model
.
number=
"listQuery.code"
placeholder=
"请输入车辆编码"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"车辆状态"
>
<el-select
class=
"filter-item"
v-model=
"listQuery.status"
placeholder=
"请选择车辆状态"
>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
...
...
@@ -31,8 +26,6 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"分公司"
prop=
"subordinateBranch"
>
<el-autocomplete
class=
"inline-input"
...
...
@@ -42,10 +35,6 @@
@
select=
"handleSelect"
></el-autocomplete>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"区域"
prop=
"zoneId"
>
<el-select
class=
"filter-item"
...
...
@@ -56,8 +45,6 @@
<el-option
v-for=
"val in getAllZoneList"
:key=
"val.id"
:label=
"val.name"
:value=
"val.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"省份"
prop=
"addrProvince"
>
<el-autocomplete
class=
"inline-input"
...
...
@@ -73,8 +60,6 @@
<!--:value="item.id">
</el-option>
-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"城市"
prop=
"addrCity"
>
<el-autocomplete
class=
"inline-input"
...
...
@@ -90,8 +75,6 @@
<!--:value="item.id">
</el-option>
-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"车型"
prop=
"modelId"
>
<el-autocomplete
class=
"inline-input"
...
...
@@ -101,7 +84,6 @@
@
select=
"handleVehicleModelSelect"
></el-autocomplete>
</el-form-item>
</el-col>
</el-row>
<el-button
class=
"filter-item"
...
...
@@ -550,12 +532,10 @@
v-model=
"form.annualVerificationDate"
type=
"date"
placeholder=
"选择日期"
style=
"width:100%"
>
</el-date-picker>
style=
"width:100%"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<p
style=
"border-bottom:1px solid #bfcbd9;padding-bottom:10px"
>
用途、位置及里程
</p>
...
...
@@ -755,7 +735,6 @@
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"行驶证"
prop=
"drivingLicensePath"
:style=
"{display:'block'}"
>
<el-upload
class=
"avatar-uploader"
:action=
"BASE_API + '/vehicle/vehicleInfo/upload/drivingLicense'"
...
...
@@ -771,7 +750,15 @@
class=
"avatar"
:style=
"{display:'block'}"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
:style=
"{lineHeight:'350px'}"
style=
"position: relative;"
><br/><span
class=
"driving-title"
>
行驶证正面
</span></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
:style=
"{lineHeight:'350px'}"
style=
"position: relative;"
>
<br
/>
<span
class=
"driving-title"
>
行驶证正面
</span>
</i>
</el-upload>
<el-upload
...
...
@@ -789,8 +776,15 @@
class=
"avatar"
:style=
"{display:'block'}"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
:style=
"{lineHeight:'350px'}"
style=
"position: relative;"
><br/><span
class=
"driving-title"
>
行驶证副本
</span></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
:style=
"{lineHeight:'350px'}"
style=
"position: relative;"
>
<br
/>
<span
class=
"driving-title"
>
行驶证副本
</span>
</i>
</el-upload>
</el-form-item>
</el-col>
...
...
@@ -1066,7 +1060,7 @@ export default {
showLoadingBody
:
false
,
allVehicleList
:
[],
//全部车型
form
:
{
insuranceEndDate
:
null
,
//商业险日期
insuranceEndDate
:
null
,
//商业险日期
vehicleModelName
:
''
,
//车型
subordinateBranchName
:
''
,
//所属分公司
subordinateBranch
:
undefined
,
...
...
@@ -2648,7 +2642,8 @@ export default {
VEHICLE_CONSTANT_VEHICLE_BRAND
,
code
)
?
getConstantByTypeAndCode
(
VEHICLE_CONSTANT_VEHICLE_BRAND
,
code
).
val
?
getConstantByTypeAndCode
(
VEHICLE_CONSTANT_VEHICLE_BRAND
,
code
)
.
val
:
'品牌不存在'
},
getAllBranch
:
()
=>
{
...
...
@@ -2662,7 +2657,8 @@ export default {
return
'未知'
}
return
getConstantByTypeAndCode
(
VEHICLE_CONSTANT_VEHICLE_USE
,
code
)
?
getConstantByTypeAndCode
(
VEHICLE_CONSTANT_VEHICLE_USE
,
code
).
val
?
getConstantByTypeAndCode
(
VEHICLE_CONSTANT_VEHICLE_USE
,
code
)
.
val
:
'用途未知'
},
getAllUseType
:
()
=>
{
...
...
@@ -2699,7 +2695,6 @@ export default {
this
.
listQuery
.
belongToName
=
undefined
}
page
(
listQueryTemp
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
let
totalCountRs
=
undefined
...
...
@@ -2715,7 +2710,7 @@ export default {
// })
// }
this
.
listLoading
=
false
console
.
log
(
response
.
data
.
data
)
;
console
.
log
(
response
.
data
.
data
)
this
.
list
=
response
.
data
.
data
this
.
total
=
response
.
data
.
totalCount
...
...
@@ -3087,12 +3082,12 @@ export default {
mileageLastUpdate
:
undefined
,
// receiveTime: undefined,
drivingLicensePath
:
undefined
,
drivingLicenseDuplicatePath
:
undefined
,
drivingLicenseDuplicatePath
:
undefined
,
remark
:
undefined
,
strongInsuranceEndDate
:
undefined
,
strongInsuranceNo
:
undefined
,
strongInsuranceCompany
:
undefined
,
insuranceEndDate
:
null
insuranceEndDate
:
null
}
},
resetTemp4Apply
()
{
...
...
@@ -3128,7 +3123,7 @@ export default {
}
</
script
>
<
style
>
.driving-title
{
.driving-title
{
position
:
absolute
;
top
:
34px
;
left
:
140px
;
...
...
src/views/vehicle/vehicleSchedulManage/index.vue
View file @
bc6796e1
...
...
@@ -161,7 +161,7 @@
<vehiclePlanModal
v-if=
"anpai"
:currentItem=
"currentItem"
v-on:anpaiDialogEvent =
"anpaiDialogEvent"
></vehiclePlanModal>
<!--租车详情弹框-->
<!--rentOrder-->
<rentOrderDetailModal
:
form=
"rentOrderInfo"
:rentCostDetail=
"rentCostDetail"
v-if=
"rentOrder"
v-on:rentOrderDetailDialogEvent=
"rentOrderDetailDialogEvent"
></rentOrderDetailModal>
<rentOrderDetailModal
:
orderDetailInfo=
"orderDetailInfo"
v-if=
"rentOrder"
v-on:rentOrderDetailDialogEvent=
"rentOrderDetailDialogEvent"
></rentOrderDetailModal>
<!--旅游订单详情-->
<tourOrderDetailModal
:tourRow=
"tourRow"
v-if=
"tourDialogVisible"
v-on:tourOrderDetailDialogEvent=
"tourOrderDetailDialogEvent"
></tourOrderDetailModal>
<!--禁用弹框-->
...
...
@@ -359,7 +359,7 @@
}
from
'api/base_info/branch_company/'
;
import
{
getAllBranchCompanyByZoneId
,
page
orderDetail
}
from
'api/order/rentVehicle'
;
import
{
formatDate
...
...
@@ -461,7 +461,7 @@
anpai
:
false
,
//安排用车弹框
jinyong
:
false
,
//禁用弹框
currentItem
:
{},
//待操作数据
rentOrder
Info
:
{},
//租车订单详情
orderDetail
Info
:
{},
//租车订单详情
rentCostDetail
:
{},
//租车订单费用明细
tourDialogVisible
:
false
,
//旅游订单弹框
tourRow
:
{},
//旅游订单详情-当前行
...
...
@@ -686,50 +686,58 @@
* 根据订单号获取订单详情
* */
getOneVechi
:
function
(
orderNo
)
{
let
params
=
{
oneNo
:
orderNo
};
page
(
params
).
then
(
res
=>
{
if
(
res
.
status
==
200
)
{
let
a
=
res
.
data
.
data
[
0
];
let
vehicleUserLicenses
=
{};
// if (a.status == 5) {
// vehicleUserLicenses = {
// name: a.orderVehicleCrosstownDto.licenseName,
// phone: a.orderVehicleCrosstownDto.licensePhone,
// idCard: a.orderVehicleCrosstownDto.licenseIdCard
// };
// } else {
// if (a.vehicleUserLicenses.length > 0) {
// vehicleUserLicenses = a.vehicleUserLicenses[0];
// }
// }
a
.
orderRentVehicleDetail
.
startTime
=
timestamp2Date
(
a
.
orderRentVehicleDetail
.
startTime
);
a
.
orderRentVehicleDetail
.
endTime
=
timestamp2Date
(
a
.
orderRentVehicleDetail
.
endTime
);
let
arr
=
a
.
picture
?
a
.
picture
.
split
(
","
)
:
[];
a
.
picture
=
arr
.
length
>
0
?
arr
[
0
]
:
""
;
a
.
payTime
=
timestamp2Date
(
a
.
payTime
);
this
.
rentOrderInfo
=
a
;
var
param
=
{
"orderNo"
:
orderNo
,
"flag"
:
true
}
orderDetail
(
param
).
then
(
response
=>
{
this
.
orderDetailInfo
=
response
.
data
if
(
this
.
orderDetailInfo
&&
this
.
orderDetailInfo
.
memberLevel
)
{
if
(
this
.
orderDetailInfo
.
memberLevel
==
1
)
{
this
.
orderDetailInfo
.
memberName
=
"普通会员"
}
if
(
this
.
orderDetailInfo
.
memberLevel
==
2
)
{
this
.
orderDetailInfo
.
memberName
=
"黄金会员"
}
if
(
this
.
orderDetailInfo
.
memberLevel
==
3
)
{
this
.
orderDetailInfo
.
memberName
=
"钻石会员"
}
if
(
this
.
orderDetailInfo
.
orderRentVehicleDetail
.
costDetail
)
{
this
.
orderDetailInfo
.
costDetail
=
JSON
.
parse
(
this
.
orderDetailInfo
.
orderRentVehicleDetail
.
costDetail
)
this
.
costDetail
=
JSON
.
parse
(
this
.
rentOrderInfo
.
orderRentVehicleDetail
.
costDetail
);
var
cost
=
''
;
this
.
costDetail
.
children
.
map
(
function
(
a
)
{
cost
+=
a
.
key
+
":"
+
a
.
detail
+
" "
;
});
this
.
rentCostDetail
=
cost
;
if
(
this
.
rentOrderInfo
.
orderRentVehicleDetail
.
driverType
==
1
)
{
this
.
serviceCost
=
this
.
rentOrderInfo
.
orderRentVehicleDetail
.
dayNum
*
600
}
this
.
rentOrder
=
true
;
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
'操作失败!'
,
type
:
'error'
,
duration
:
2000
});
if
(
this
.
orderDetailInfo
.
costDetail
.
paramJson
)
{
this
.
orderDetailInfo
.
rentVehiclePriceVO
=
JSON
.
parse
(
this
.
orderDetailInfo
.
costDetail
.
paramJson
)
}
});
if
(
this
.
orderDetailInfo
.
items
)
{
for
(
var
i
=
0
;
i
<
this
.
orderDetailInfo
.
items
.
length
;
i
++
)
{
if
(
this
.
orderDetailInfo
.
items
[
i
].
type
==
104
)
{
this
.
orderDetailInfo
.
carArticlesJson
=
this
.
orderDetailInfo
.
items
[
i
].
detail
}
}
}
if
(
this
.
orderDetailInfo
.
status
==
2
)
{
this
.
orderDetailInfo
.
ststusName
=
'取消'
}
if
(
this
.
orderDetailInfo
.
status
==
-
1
)
{
this
.
orderDetailInfo
.
ststusName
=
'定损中'
}
if
(
this
.
orderDetailInfo
.
status
==
3
)
{
this
.
orderDetailInfo
.
ststusName
=
'待付款'
}
if
(
this
.
orderDetailInfo
.
status
==
4
)
{
this
.
orderDetailInfo
.
ststusName
=
'待出行'
}
if
(
this
.
orderDetailInfo
.
status
==
5
)
{
this
.
orderDetailInfo
.
ststusName
=
'出行中'
}
if
(
this
.
orderDetailInfo
.
status
==
6
)
{
this
.
orderDetailInfo
.
ststusName
=
'已完成'
}
}
this
.
rentOrder
=
true
})
},
/**
* 关闭保养弹框后逻辑处理
...
...
src/views/vehicleType/priceList.vue
View file @
bc6796e1
...
...
@@ -366,15 +366,22 @@ export default {
}
})
}
if
(
params
==
''
)
{
this
.
$message
.
error
(
'请设置不同车型不同价格4'
)
return
false
add_edit
(
''
,
this
.
activeTime
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$message
.
success
(
'设置成功'
)
this
.
chooseData
=
[]
this
.
getList
()
}
else
{
this
.
$message
.
error
(
data
.
message
)
}
})
}
else
{
add_edit
(
params
).
then
(
data
=>
{
add_edit
(
params
,
this
.
activeTime
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$message
.
success
(
'设置成功'
)
this
.
chooseData
=
[]
this
.
changeIsGlobal
(
0
)
this
.
getList
()
}
else
{
this
.
$message
.
error
(
data
.
message
)
...
...
@@ -398,8 +405,8 @@ export default {
data
.
data
.
forEach
(
element
=>
{
element
.
multiple
=
element
.
multiple
||
''
element
.
price
=
element
.
price
||
''
element
.
level
=
element
.
level
||
''
element
.
freeDays
=
element
.
freeDays
||
''
element
.
level
=
element
.
level
||
''
element
.
freeDays
=
element
.
freeDays
||
''
})
this
.
dayListData
=
data
.
data
this
.
setMultiplePop
=
true
...
...
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