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
d2142dda
Commit
d2142dda
authored
Oct 17, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整打印样式
parent
744bcd9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
22 deletions
+43
-22
publicCar.vue
src/containers/management/publicCar/publicCar.vue
+2
-2
publicCar.vue
src/containers/print/publicCar.vue
+41
-20
No files found.
src/containers/management/publicCar/publicCar.vue
View file @
d2142dda
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
this
.
fetchCarPlateOptions
();
this
.
fetchCarPlateOptions
();
}
}
let
categoryName
=
JSON
.
parse
(
data
.
row
.
categoryName
).
map
(
let
categoryName
=
JSON
.
parse
(
data
.
row
.
categoryName
).
map
(
item
=>
(
item
.
checked
?
`
■
${
item
.
name
}
`
:
`□
${
item
.
name
}
`
)
item
=>
(
item
.
checked
?
`
☑
${
item
.
name
}
`
:
`▢
${
item
.
name
}
`
)
);
);
this
.
selected
=
{
this
.
selected
=
{
id
:
data
.
row
.
id
,
id
:
data
.
row
.
id
,
...
@@ -352,7 +352,7 @@ export default {
...
@@ -352,7 +352,7 @@ 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
=>
(
item
.
checked
?
`
☑
${
item
.
name
}
`
:
`▢
${
item
.
name
}
`
)
);
);
this
.
selected
=
{
this
.
selected
=
{
id
:
data
.
row
.
id
,
id
:
data
.
row
.
id
,
...
...
src/containers/print/publicCar.vue
View file @
d2142dda
...
@@ -15,26 +15,32 @@
...
@@ -15,26 +15,32 @@
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
userCount
}}
人
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
userCount
}}
人
</div>
</div>
</div>
<div
class=
"tableRow tableMinHeightBig"
>
<div
class=
"tableRow tableMinHeightBig"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车类型
<br>
(勾选)
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<span>
用车类型
<br>
(勾选)
</span>
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
categoryName
}}
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
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>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
beginDate
}}
-
{{
selected
.
endDate
}}
(共
{{
2
}}
天)
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
beginDate
}}
-
{{
selected
.
endDate
}}
(共
{{
day
}}
天)
</div>
</div>
</div>
<div
class=
"tableRow tableMinHeightBig"
>
<div
class=
"tableRow tableMinHeightBig"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车详细路线
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
<span>
用车详细路线
</span>
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
selected
.
lineDescription
}}
</div>
<div
:span=
"20"
class=
"tableCell tabelCol-20 tal"
>
{{
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=
"4"
class=
"tableCell tabelCol-10"
></div>
<div
:span=
"4"
class=
"tableCell tabelCol-10"
></div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
派车人
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4 directCol"
>
<div
:span=
"4"
class=
"tableCell tabelCol-6"
>
<div>
派车人
</div>
<div>
派车车牌
</div>
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-6 directCol"
>
<span>
<span>
{{
selected
.
dealName
}}
{{
selected
.
dealName
}}
</span>
</span>
<br
/>
<span>
<span>
{{
selected
.
carPlate
}}
{{
selected
.
carPlate
}}
</span>
</span>
...
@@ -42,19 +48,19 @@
...
@@ -42,19 +48,19 @@
</div>
</div>
<div
class=
"tableRow"
>
<div
class=
"tableRow"
>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
出车公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
出车公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
startKilometers
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
startKilometers
?
selected
.
startKilometers
:
''
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
收车公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
收车公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
stopKilometers
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
stopKilometers
?
selected
.
stopKilometers
:
''
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
实际公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
实际公里数
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
trueKilometers
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
trueKilometers
?
selected
.
trueKilometers
:
''
}}
</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>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
priceSource
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
priceSource
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车单价
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车单价
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
price
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
price
?
selected
.
price
:
''
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车金额
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
用车金额
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
totalPrice
}}
</div>
<div
:span=
"4"
class=
"tableCell tabelCol-4"
>
{{
selected
.
totalPrice
?
selected
.
totalPrice
:
''
}}
</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>
...
@@ -80,6 +86,14 @@ export default {
...
@@ -80,6 +86,14 @@ export default {
selected
:
JSON
.
parse
(
data
),
selected
:
JSON
.
parse
(
data
),
};
};
},
},
computed
:
{
day
()
{
let
sed
=
new
Date
(
this
.
selected
.
endDate
)
-
new
Date
(
this
.
selected
.
beginDate
);
return
Math
.
ceil
(
sed
/
60
/
60
/
24
);
},
},
created
()
{
created
()
{
window
.
vmPrint
=
this
.
printHandle
;
window
.
vmPrint
=
this
.
printHandle
;
},
},
...
@@ -97,31 +111,28 @@ export default {
...
@@ -97,31 +111,28 @@ export default {
color
:
#000
;
color
:
#000
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
text-align
:
center
;
text-align
:
center
;
max-
width
:
649px
;
width
:
649px
;
max-
height
:
978px
;
height
:
978px
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
;
margin
:
0
auto
;
padding-bottom
:
40px
;
line-height
:
45px
;
line-height
:
40px
;
.tableTitle
{
.tableTitle
{
font-size
:
20px
;
font-size
:
20px
;
line-height
:
80px
;
line-height
:
80px
;
}
}
.printTable
{
.printTable
{
border
:
1px
solid
#000
;
border
:
1px
solid
#000
;
.tal
{
text-indent
:
20px
;
text-align
:
left
;
}
.tableRow
{
.tableRow
{
display
:
flex
;
display
:
flex
;
}
}
.tableCell
{
.tableCell
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
padding
:
10px
0
;
padding
:
10px
0
;
border-bottom
:
1px
solid
#000
;
border-bottom
:
1px
solid
#000
;
border-right
:
1px
solid
#000
;
border-right
:
1px
solid
#000
;
word-break
:
break-all
;
word-break
:
break-all
;
white-space
:
wrap
;
}
}
.tableCell
:last-child
{
.tableCell
:last-child
{
border-right
:
none
;
border-right
:
none
;
...
@@ -129,6 +140,16 @@ export default {
...
@@ -129,6 +140,16 @@ export default {
.tableRow
:last-child
.tableCell
{
.tableRow
:last-child
.tableCell
{
border-bottom
:
none
;
border-bottom
:
none
;
}
}
.tal
{
text-indent
:
20px
;
text-align
:
left
;
justify-content
:
flex-start
;
align-items
:
flex-start
;
}
.directCol
{
flex-direction
:
column
;
line-height
:
36px
;
}
.tabelCol-4
{
.tabelCol-4
{
width
:
16
.66667%
;
width
:
16
.66667%
;
}
}
...
...
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