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
3f79ff83
Commit
3f79ff83
authored
Nov 02, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
修改打印样式 See merge request
!13
parents
258ad078
124d9898
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
13 deletions
+39
-13
publicCar.vue
src/containers/management/publicCar/publicCar.vue
+4
-1
publicCar.vue
src/containers/print/publicCar.vue
+35
-12
No files found.
src/containers/management/publicCar/publicCar.vue
View file @
3f79ff83
...
@@ -370,7 +370,10 @@ export default {
...
@@ -370,7 +370,10 @@ export default {
},
},
showPrintDialog
(
data
)
{
showPrintDialog
(
data
)
{
let
categoryName
=
JSON
.
parse
(
data
.
row
.
categoryName
).
map
(
let
categoryName
=
JSON
.
parse
(
data
.
row
.
categoryName
).
map
(
item
=>
(
item
.
checked
?
`☑
${
item
.
name
}
`
:
`▢
${
item
.
name
}
`
)
(
item
,
index
)
=>
item
.
checked
?
`☑
${
index
+
1
}
、
${
item
.
name
}
`
:
`▢
${
index
+
1
}
、
${
item
.
name
}
`
);
);
this
.
selected
=
{
this
.
selected
=
{
id
:
data
.
row
.
id
,
id
:
data
.
row
.
id
,
...
...
src/containers/print/publicCar.vue
View file @
3f79ff83
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<span>
用车类型
<br>
(勾选)
</span>
<span>
用车类型
<br>
(勾选)
</span>
</div>
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
categoryName
}}
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal
mtel
"
>
{{
selected
.
categoryName
}}
</div>
</div>
</div>
<div
class=
"tableRow"
>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车起始时间
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车起始时间
</div>
...
@@ -28,21 +28,26 @@
...
@@ -28,21 +28,26 @@
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<span>
用车详细路线
</span>
<span>
用车详细路线
</span>
</div>
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
lineDescription
}}
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal
mtel
"
>
{{
selected
.
lineDescription
}}
</div>
</div>
</div>
<div
class=
"tableRow"
>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
部门负责人
<br>
签字(盖章)
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
部门负责人
<br>
签字(盖章)
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20"
></div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
></div>
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4 directCol"
>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div>
派车人
</div>
<div>
派车人
</div>
</div>
<div
:span=
"6"
class=
"tableCell tabelCol-6"
>
{{
selected
.
dealName
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<div>
派车车牌
</div>
<div>
派车车牌
</div>
</div>
</div>
<div
:span=
"10"
class=
"tableCell tabelCol-10"
>
{{
selected
.
carPlate
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-12 directCol"
>
<span
class=
"carPlate"
>
{{
selected
.
dealName
}}
</span>
<div
class=
"carPlate"
>
<template
v-for=
"(rowIndex) in carPlateArrRow"
>
<div
:key=
"rowIndex"
>
{{
carPlateArr
.
slice
((
rowIndex
-
1
)
*
3
,
3
*
rowIndex
).
join
(
','
)
}}
</div>
</
template
>
</div>
</div>
</div>
</div>
<div
class=
"tableRow"
>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
出车公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
出车公里数
</div>
...
@@ -102,6 +107,13 @@ export default {
...
@@ -102,6 +107,13 @@ export default {
return
sed
;
return
sed
;
},
},
carPlateArr
()
{
return
this
.
selected
.
carPlate
.
split
(
','
);
},
carPlateArrRow
()
{
const
length
=
this
.
carPlateArr
.
length
;
return
Math
.
ceil
(
length
/
3
);
},
},
},
created
()
{
created
()
{
window
.
vmPrint
=
this
.
printHandle
;
window
.
vmPrint
=
this
.
printHandle
;
...
@@ -124,7 +136,7 @@ export default {
...
@@ -124,7 +136,7 @@ export default {
height
:
978px
;
height
:
978px
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
;
margin
:
0
auto
;
line-height
:
4
5
px
;
line-height
:
4
8
px
;
.tableTitle
{
.tableTitle
{
font-size
:
20px
;
font-size
:
20px
;
line-height
:
80px
;
line-height
:
80px
;
...
@@ -150,11 +162,22 @@ export default {
...
@@ -150,11 +162,22 @@ export default {
border-bottom
:
none
;
border-bottom
:
none
;
}
}
.tal
{
.tal
{
text-indent
:
2
0px
;
text-indent
:
1
0px
;
text-align
:
left
;
text-align
:
left
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
align-items
:
flex-start
;
}
}
.mtel
{
text-indent
:
0
;
line-height
:
30px
;
padding
:
15px
10px
;
}
.carPlate
{
width
:
100%
;
padding
:
0
20px
;
text-align
:
left
;
line-height
:
30px
;
}
.directCol
{
.directCol
{
flex-direction
:
column
;
flex-direction
:
column
;
line-height
:
36px
;
line-height
:
36px
;
...
...
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