Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-static-bg
Project
Overview
Details
Activity
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
姜雷
cdsf-static-bg
Commits
6eed4852
Commit
6eed4852
authored
Oct 31, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改派车车辆可以为多选
parent
0ab12f2d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
14 deletions
+28
-14
App.vue
src/App.vue
+3
-0
publicCar.vue
src/containers/management/publicCar/publicCar.vue
+17
-4
publicCar.vue
src/containers/print/publicCar.vue
+8
-10
No files found.
src/App.vue
View file @
6eed4852
...
...
@@ -100,6 +100,9 @@ input[type='number'] {
.col-line-3
{
width
:
32%
;
}
.col-line-3-1
{
width
:
68%
;
}
</
style
>
<
script
>
export
default
{
...
...
src/containers/management/publicCar/publicCar.vue
View file @
6eed4852
...
...
@@ -24,6 +24,7 @@
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"searchList"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-download"
@
click=
"exportList"
>
导出
</el-button>
</el-form>
<div
class=
"tabel-wrap"
>
<el-table
border
v-loading=
"loading"
:data=
"list"
style=
"width: 100%"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
...
...
@@ -58,6 +59,7 @@
<el-pagination
layout=
"prev, pager, next"
:current-page=
"pagination.pageNum"
:page-size=
"pagination.pageSize"
:total=
"pagination.total"
@
current-change=
"changePage"
>
</el-pagination>
</div>
<drag-dialog
:title=
"editType ? '处理' : '详情'"
:visible
.
sync=
"dialogEditVisible"
:before-close=
"resetEditDialog"
width=
"70%"
top=
"5vh"
>
<el-form
class=
"editForm"
:disabled=
"loading"
>
<div
class=
"line-wrap"
>
...
...
@@ -89,8 +91,8 @@
<el-form-item
class=
"col-line-3"
label=
"派车人"
label-width=
"100px"
>
<span>
{{selected.dealName}}
</span>
</el-form-item>
<el-form-item
class=
"col-line-3"
label=
"派车车牌"
label-width=
"100px"
>
<el-select
v-if=
"editType"
v-model=
"selected.carPlate"
filterable
clearab
le
placeholder=
"派车车牌"
>
<el-form-item
class=
"col-line-3
-1
"
label=
"派车车牌"
label-width=
"100px"
>
<el-select
class=
"w100"
v-if=
"editType"
v-model=
"selected.carPlateList"
filterable
clearable
multip
le
placeholder=
"派车车牌"
>
<el-option
v-for=
"item in carPlateOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.name"
>
</el-option>
</el-select>
...
...
@@ -221,6 +223,7 @@ export default {
birthday
:
''
,
jobNumber
:
''
,
cellphone
:
''
,
carPlateList
:
[],
};
},
getCategoryValue
(
c
,
r
,
val
)
{
...
...
@@ -260,6 +263,7 @@ export default {
lineDescription
:
data
.
row
.
lineDescription
,
dealName
:
data
.
row
.
dealName
||
this
.
userInfo
.
name
,
carPlate
:
data
.
row
.
carPlate
,
carPlateList
:
data
.
row
.
carPlate
?
data
.
row
.
carPlate
.
split
(
','
)
:
[],
startKilometers
:
data
.
row
.
startKilometers
,
stopKilometers
:
data
.
row
.
stopKilometers
,
trueKilometers
:
data
.
row
.
trueKilometers
,
...
...
@@ -271,13 +275,19 @@ export default {
};
this
.
dialogEditVisible
=
true
;
},
resetEditDialog
(
done
)
{
this
.
initSelected
();
done
&&
typeof
done
==
'function'
?
done
()
:
(
this
.
dialogEditVisible
=
false
);
},
toogleDealResult
(
val
)
{
if
(
val
===
2
)
{
this
.
selected
.
dealOpinion
=
''
;
}
},
validateSelect
()
{
if
(
this
.
selected
.
dealResult
==
2
&&
!
this
.
selected
.
carPlate
)
{
if
(
this
.
selected
.
dealResult
==
2
&&
!
this
.
selected
.
carPlate
List
.
length
)
{
this
.
$message
.
error
(
'请选择派车车牌!'
);
return
;
}
...
...
@@ -306,7 +316,7 @@ export default {
const
entity
=
{
userId
:
this
.
userInfo
.
id
,
id
:
this
.
selected
.
id
,
carPlate
:
this
.
selected
.
carPlate
,
carPlate
:
this
.
selected
.
carPlate
List
.
join
(
','
)
,
startKilometers
:
this
.
selected
.
startKilometers
,
stopKilometers
:
this
.
selected
.
stopKilometers
,
trueKilometers
:
this
.
selected
.
trueKilometers
,
...
...
@@ -422,6 +432,9 @@ export default {
margin-left
:
30px
;
}
}
.w100
{
width
:
100%
;
}
.printIframe
{
width
:
100%
;
height
:
500px
;
...
...
src/containers/print/publicCar.vue
View file @
6eed4852
...
...
@@ -32,19 +32,17 @@
</div>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
部门负责人
<br>
签字(盖章)
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-10"
></div>
<div
:span=
"4"
class=
"tableCell tabelCol-4 directCol"
>
<div
:span=
"20"
class=
"tableCell tabelCol-20"
></div>
</div>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div>
派车人
</div>
<div>
派车车牌
</div>
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-6 directCol"
>
<span>
{{
selected
.
dealName
}}
</span>
<span>
{{
selected
.
carPlate
}}
</span>
<div
:span=
"6"
class=
"tableCell tabelCol-6"
>
{{
selected
.
dealName
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div>
派车车牌
</div>
</div>
<div
:span=
"10"
class=
"tableCell tabelCol-10"
>
{{
selected
.
carPlate
}}
</div>
</div>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
出车公里数
</div>
...
...
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