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
aac62864
Commit
aac62864
authored
Sep 16, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出车记录添加出车公司查询
parent
a37ae453
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
223 additions
and
168 deletions
+223
-168
index.vue
src/views/vehicle/vehicleDepartureLog/index.vue
+223
-168
No files found.
src/views/vehicle/vehicleDepartureLog/index.vue
View file @
aac62864
...
@@ -10,22 +10,42 @@
...
@@ -10,22 +10,42 @@
type=
"date"
type=
"date"
:editable=
"false"
:editable=
"false"
format=
"yyyy-MM-dd"
format=
"yyyy-MM-dd"
prop
=
"time"
prop
=
"time"
placeholder=
"请选择日期"
>
placeholder=
"请选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"5"
>
<el-col
:span=
"5"
>
<el-form-item>
<el-form-item>
<el-input
type=
"number"
style=
"width: 200px;"
v-model
.
number=
"listQuery.code"
placeholder=
"请输入车辆编码"
></el-input>
<el-input
type=
"number"
style=
"width: 200px;"
v-model
.
number=
"listQuery.code"
placeholder=
"请输入车辆编码"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"5"
>
<el-col
:span=
"5"
>
<el-form-item
>
<el-form-item>
<el-input
@
keyup
.
enter
.
native=
"handleFilter"
style=
"width: 200px;"
class=
"filter-item"
placeholder=
"车牌号"
<el-input
@
keyup
.
enter
.
native=
"handleFilter"
style=
"width: 200px;"
class=
"filter-item"
placeholder=
"车牌号"
v-model=
"listQuery.numberPlate"
></el-input>
v-model=
"listQuery.numberPlate"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"所属大区"
>
<el-select
class=
"filter-item"
v-model=
"listQuery.zoneId"
placeholder=
"请选择"
@
change=
"getProvinceRegions"
>
<el-option
:key=
"undefined"
label=
"无"
:value=
"undefined"
></el-option>
<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=
"出车分公司"
>
<el-select
class=
"filter-item"
v-model=
"listQuery.departureId"
placeholder=
"请选择"
@
change=
"getAllBranchCompanyChange"
>
<el-option
:key=
"undefined"
label=
"无"
:value=
"undefined"
></el-option>
<el-option
v-for=
"val in allBranchCompany"
:key=
"val.id"
:label=
"val.name"
:value=
"val.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-col
:span=
"5"
>
<el-form-item>
<el-form-item>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"handleFilter"
>
搜索
</el-button>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
icon=
"search"
@
click=
"handleFilter"
>
搜索
</el-button>
...
@@ -126,25 +146,25 @@
...
@@ -126,25 +146,25 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"使用人电话"
v-if=
"showMoreMoreCol"
>
<el-table-column
width=
"200"
align=
"center"
label=
"使用人电话"
v-if=
"showMoreMoreCol"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
userTel
}}
</span>
<span>
{{
scope
.
row
.
userTel
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"验车人电话"
v-if=
"showMoreMoreCol"
>
<el-table-column
width=
"200"
align=
"center"
label=
"验车人电话"
v-if=
"showMoreMoreCol"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
checkManTel
}}
</span>
<span>
{{
scope
.
row
.
checkManTel
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"100"
align=
"center"
label=
"开始公里数"
v-if=
"showMoreMoreCol"
>
<el-table-column
width=
"100"
align=
"center"
label=
"开始公里数"
v-if=
"showMoreMoreCol"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
mileageStart
}}
</span>
<span>
{{
scope
.
row
.
mileageStart
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"100"
align=
"center"
label=
"结束公里数"
v-if=
"showMoreMoreCol"
>
<el-table-column
width=
"100"
align=
"center"
label=
"结束公里数"
v-if=
"showMoreMoreCol"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
mileageEnd
}}
</span>
<span>
{{
scope
.
row
.
mileageEnd
}}
</span>
</
template
>
</
template
>
...
@@ -187,11 +207,22 @@
...
@@ -187,11 +207,22 @@
page
,
page
,
statistic
statistic
}
from
'../../../api/vehicle/departureLog'
;
}
from
'../../../api/vehicle/departureLog'
;
import
{
getAllCompany
,
getAll
}
from
'api/base_info/branch_company/'
;
import
{
getAllZone
}
from
'api/base_info/constant/'
;
import
{
getAllBranchCompanyByZoneId
}
from
'api/order/rentVehicle'
;
import
{
import
{
toEast8Date
,
toEast8Date
,
deepCopyDate
,
deepCopyDate
,
newEast8Date
newEast8Date
}
from
'utils/dateUtils'
;
}
from
'utils/dateUtils'
;
export
default
{
export
default
{
name
:
'vehicleDepartureLog'
,
name
:
'vehicleDepartureLog'
,
data
()
{
data
()
{
...
@@ -212,7 +243,7 @@
...
@@ -212,7 +243,7 @@
arrivalTime
:
null
,
arrivalTime
:
null
,
mileageStart
:
null
,
mileageStart
:
null
,
mileageEnd
:
null
,
mileageEnd
:
null
,
state
:
null
state
:
null
,
},
},
rules
:
{
rules
:
{
name
:
[
name
:
[
...
@@ -226,11 +257,18 @@
...
@@ -226,11 +257,18 @@
list
:
null
,
list
:
null
,
total
:
null
,
total
:
null
,
listLoading
:
true
,
listLoading
:
true
,
allBranchCompany
:[],
baranchQuery
:
{
zoneId
:
null
},
allZoneArr
:[],
//全部片区
listQuery
:
{
listQuery
:
{
page
:
1
,
page
:
1
,
limit
:
20
,
limit
:
20
,
time
:
""
,
time
:
""
,
numberPlate
:
undefined
zoneId
:
undefined
,
numberPlate
:
undefined
,
departureId
:
undefined
,
},
},
dialogStatus
:
''
,
dialogStatus
:
''
,
textMap
:
{
textMap
:
{
...
@@ -257,7 +295,11 @@
...
@@ -257,7 +295,11 @@
computed
:
{
computed
:
{
...
mapGetters
([
...
mapGetters
([
'elements'
'elements'
])
]),
//获取大区列表
getAllZoneList
()
{
return
getAllZone
();
},
},
},
methods
:
{
methods
:
{
handleFilter
()
{
handleFilter
()
{
...
@@ -269,9 +311,9 @@
...
@@ -269,9 +311,9 @@
this
.
statisticVisiable
=
true
;
this
.
statisticVisiable
=
true
;
}
}
},
},
dateToString
:
function
(
date
)
{
dateToString
:
function
(
date
)
{
var
year
=
date
.
getFullYear
();
var
year
=
date
.
getFullYear
();
var
month
=
(
date
.
getMonth
()
+
1
).
toString
();
var
month
=
(
date
.
getMonth
()
+
1
).
toString
();
var
day
=
(
date
.
getDate
()).
toString
();
var
day
=
(
date
.
getDate
()).
toString
();
if
(
month
.
length
==
1
)
{
if
(
month
.
length
==
1
)
{
month
=
"0"
+
month
;
month
=
"0"
+
month
;
...
@@ -287,7 +329,7 @@
...
@@ -287,7 +329,7 @@
if
(
!
this
.
listQuery
.
numberPlate
)
{
if
(
!
this
.
listQuery
.
numberPlate
)
{
this
.
statisticVisiable
=
false
;
this
.
statisticVisiable
=
false
;
}
}
if
(
this
.
listQuery
.
time
)
{
if
(
this
.
listQuery
.
time
)
{
this
.
listQuery
.
time
=
this
.
dateToString
(
this
.
listQuery
.
time
);
this
.
listQuery
.
time
=
this
.
dateToString
(
this
.
listQuery
.
time
);
}
}
page
(
this
.
listQuery
)
page
(
this
.
listQuery
)
...
@@ -304,7 +346,20 @@
...
@@ -304,7 +346,20 @@
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
listQuery
.
page
=
val
;
this
.
listQuery
.
page
=
val
;
this
.
getList
();
this
.
getList
();
}
},
//监听change事件
getProvinceRegions
(
item
)
{
this
.
listQuery
.
zoneId
=
item
this
.
baranchQuery
.
zoneId
=
item
this
.
listQuery
.
departureId
=
undefined
;
getAllBranchCompanyByZoneId
(
this
.
baranchQuery
)
.
then
(
response
=>
{
this
.
allBranchCompany
=
response
.
data
;
})
},
getAllBranchCompanyChange
(
item
)
{
this
.
listQuery
.
departureId
=
item
},
}
}
}
}
</
script
>
</
script
>
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