Commit 5f3f9614 by 姜雷

Merge branch 'develop' into 'test'

Develop See merge request !7
parents a81e8b4a d2142dda
<template> <template>
<div class="login-container"> <div class="login-container">
<div class="login-form-wrpa"> <div class="login-form-wrap">
<el-form autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm" label-position="left" label-width="0px" class="card-box login-form"> <el-form autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm" label-position="left" label-width="0px" class="card-box login-form">
<!-- <div class="title">{{title}}</div> --> <!-- <div class="title">{{title}}</div> -->
<div class="title">成师后勤管理系统</div> <div class="title">成师后勤管理系统</div>
...@@ -156,7 +156,7 @@ $light_gray: #eee; ...@@ -156,7 +156,7 @@ $light_gray: #eee;
margin: 0px auto 70px auto; margin: 0px auto 70px auto;
text-align: center; text-align: center;
} }
.login-form-wrpa { .login-form-wrap {
width: 1290px; width: 1290px;
height: 730px; height: 730px;
background: url('../../assets/images/login/login_screen_bg@3x.png') center background: url('../../assets/images/login/login_screen_bg@3x.png') center
...@@ -197,4 +197,46 @@ $light_gray: #eee; ...@@ -197,4 +197,46 @@ $light_gray: #eee;
bottom: 28px; bottom: 28px;
} }
} }
@media screen and (max-width: 1334px) {
.login-container {
background-image: url('../../assets/images/login/login_bg@2x.png');
input {
padding: 12px 5px 12px 15px;
height: 31px;
}
.el-input {
height: 31px;
}
.login-form-wrap {
width: 860px;
height: 487px;
background: url('../../assets/images/login/login_screen_bg@2x.png') center;
}
.login-form {
top: 133.333px;
right: 152.333px;
width: 224px;
}
.title {
font-size: 26px;
margin: 0px auto 46px auto;
}
.loginFormItem {
height: 34px;
background-color: #fff;
border-radius: 8px;
margin-bottom: 28px;
.el-form-item__content {
line-height: 22px;
}
}
.svg-container {
padding: 6px 5px 6px 15px;
width: 20px;
&_login {
font-size: 14px;
}
}
}
}
</style> </style>
...@@ -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,
......
...@@ -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%;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment