提交 674b71ea authored 作者: zjm's avatar zjm

fix(PDF模版): 修改了核查自查模版信息

修改了核查自查模版信息
上级 ca019a63
...@@ -18,14 +18,7 @@ ...@@ -18,14 +18,7 @@
height: 10px; height: 10px;
line-height: 10px; line-height: 10px;
} }
.decorationLine{
/*text-decoration:underline;*/
/*text-decoration-color: red;*/
/*-webkit-text-decoration-color: red;*/
box-sizing: border-box;
border-bottom: 1px solid #000;
height: 24px;
}
/*@page{size:297mm 210mm;}<!-- 设置PDF页面大小,此配置只对生成PDF文件有效,不会对页面显示生效 -->*/ /*@page{size:297mm 210mm;}<!-- 设置PDF页面大小,此配置只对生成PDF文件有效,不会对页面显示生效 -->*/
@page { @page {
...@@ -116,10 +109,11 @@ ...@@ -116,10 +109,11 @@
} }
table.altrowstable { table.altrowstable {
width: 100%; margin: 1px 0 0 1px;
width: 99%;
font-size: 14px; font-size: 14px;
color: #141414; color: #141414;
border-width: 2px; border-width: 1px;
border-color: #000; border-color: #000;
border-collapse: collapse; border-collapse: collapse;
text-align: center; text-align: center;
...@@ -140,128 +134,156 @@ ...@@ -140,128 +134,156 @@
table.altrowstable td { table.altrowstable td {
height: 23px; height: 23px;
line-height:23px; line-height: 23px;
font-size: 15px; font-size: 15px;
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
border:1px solid #000; border: 1px solid #000;
width: 100%; width: 100%;
} }
.td2{
.td2 {
height: 50px !important; height: 50px !important;
line-height:25px; line-height: 25px;
} }
.td3{
.td3 {
height: 75px !important; height: 75px !important;
line-height:25px; line-height: 25px;
} }
.td4{
line-height:25px; .td4 {
line-height: 25px;
height: 100px !important; height: 100px !important;
} }
.td5{
line-height:25px; .td5 {
line-height: 25px;
height: 125px !important; height: 125px !important;
} }
.td6{
line-height:25px; .td6 {
line-height: 25px;
height: 150px !important; height: 150px !important;
} }
.td7{
line-height:25px; .td7 {
line-height: 25px;
height: 175px !important; height: 175px !important;
} }
.td8{
line-height:25px; .td8 {
line-height: 25px;
height: 200px !important; height: 200px !important;
} }
.td9{
line-height:25px; .td9 {
line-height: 25px;
height: 225px !important; height: 225px !important;
} }
.td10{
line-height:25px; .td10 {
line-height: 25px;
height: 250px !important; height: 250px !important;
} }
.td11{
line-height:25px; .td11 {
line-height: 25px;
height: 275px !important; height: 275px !important;
} }
.td12{
line-height:25px; .td12 {
line-height: 25px;
height: 300px !important; height: 300px !important;
} }
.td13{
line-height:25px; .td13 {
line-height: 25px;
height: 325px !important; height: 325px !important;
} }
.td14{
line-height:25px; .td14 {
line-height: 25px;
height: 350px !important; height: 350px !important;
} }
.td15{
line-height:25px; .td15 {
line-height: 25px;
height: 375px !important; height: 375px !important;
} }
.td16{
line-height:25px; .td16 {
line-height: 25px;
height: 400px !important; height: 400px !important;
} }
.td17{
line-height:25px; .td17 {
line-height: 25px;
height: 425px !important; height: 425px !important;
} }
.td18{
line-height:25px; .td18 {
line-height: 25px;
height: 450px !important; height: 450px !important;
} }
.td19{
line-height:25px; .td19 {
line-height: 25px;
height: 475px !important; height: 475px !important;
} }
.td20{
line-height:25px; .td20 {
line-height: 25px;
height: 500px !important; height: 500px !important;
} }
.td21{
line-height:25px; .td21 {
line-height: 25px;
height: 525px !important; height: 525px !important;
} }
.td22{
line-height:25px; .td22 {
line-height: 25px;
height: 550px !important; height: 550px !important;
} }
.td23{
line-height:25px; .td23 {
line-height: 25px;
height: 575px !important; height: 575px !important;
} }
.td24{
line-height:25px; .td24 {
line-height: 25px;
height: 600px !important; height: 600px !important;
} }
.td25{
line-height:25px; .td25 {
line-height: 25px;
height: 625px !important; height: 625px !important;
} }
.td26{
line-height:25px; .td26 {
line-height: 25px;
height: 650px !important; height: 650px !important;
} }
.td27{
line-height:25px; .td27 {
line-height: 25px;
height: 675px !important; height: 675px !important;
} }
.td28{ .td28 {
line-height:25px; line-height: 25px;
height: 700px !important; height: 700px !important;
} }
.td29{
line-height:25px; .td29 {
line-height: 25px;
height: 725px !important; height: 725px !important;
} }
.td30{
line-height:25px; .td30 {
line-height: 25px;
height: 750px !important; height: 750px !important;
} }
...@@ -274,7 +296,6 @@ ...@@ -274,7 +296,6 @@
} }
.person { .person {
color: #4a475b;
text-align: right; text-align: right;
font-size: 16px; font-size: 16px;
} }
...@@ -284,14 +305,28 @@ ...@@ -284,14 +305,28 @@
margin-right: 30pt; margin-right: 30pt;
} }
/* tr:nth-child(odd) { .footer {
background: #fafafa; width: 99%;
} */ display: flex;
justify-content: space-between;
}
.footer_left{
font-size: 10px;
color: #646464;
line-height: 10px;
}
.underline {
text-decoration: underline;
text-decoration-thickness: 3px;
}
.bold{
font-weight: bold;
}
</style> </style>
</head> </head>
<body> <body>
<div class="returnTablePrint"> <div class="returnTablePrint">
<div class="content"> <div class="content">
<div> <div>
<div class="listWrapper"> <div class="listWrapper">
...@@ -304,10 +339,16 @@ ...@@ -304,10 +339,16 @@
</div> </div>
</p> </p>
<div style="height: 853px;overflow: hidden"> <div style="height: 853px;overflow: hidden">
<table class="altrowstable" id="alternatecolor">
<tr>
<th>型号</th>
<th>名称</th>
<th>数量</th>
</tr>
<#list checks as dev> <#list checks as dev>
<table class="altrowstable" border="0" id="alternatecolor">
<#if (dev.model)??> <#if (dev.model)??>
<#if dev.isPart == 0> <#if dev.isPart==0>
<tr> <tr>
<td style="font-weight: bold;:overflow: hidden">${dev.model!}</td> <td style="font-weight: bold;:overflow: hidden">${dev.model!}</td>
<td style="font-weight: bold;overflow: hidden">${dev.name!}</td> <td style="font-weight: bold;overflow: hidden">${dev.name!}</td>
...@@ -322,80 +363,189 @@ ...@@ -322,80 +363,189 @@
</#if> </#if>
</#if> </#if>
<tr> <tr>
<#if dev.oneCount == 1> <#if dev.oneCount==1>
<td colspan="3" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3" style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 2> ${dev.seqStirng!}</td>
<td colspan="3" class="td2" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==2>
<#elseif dev.oneCount == 3> <td colspan="3" class="td2"
<td colspan="3" class="td3" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}</td>
<#elseif dev.oneCount == 4> <#elseif dev.oneCount==3>
<td colspan="3" class="td4" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3" class="td3"
style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 5> ${dev.seqStirng!}</td>
<td colspan="3" class="td5" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td>
<#elseif dev.oneCount==4>
<#elseif dev.oneCount == 6> <td colspan="3" class="td4"
<td colspan="3" class="td6" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}</td>
<#elseif dev.oneCount == 7>
<td colspan="3" class="td7" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==5>
<td colspan="3" class="td5"
<#elseif dev.oneCount == 8> style="text-align: left;padding: 0 2em;color: #555;">
<td colspan="3" class="td8" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> ${dev.seqStirng!}</td>
<#elseif dev.oneCount == 9> <#elseif dev.oneCount==6>
<td colspan="3" class="td9" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3" class="td6"
style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 10> ${dev.seqStirng!}</td>
<td colspan="3" class="td10" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td>
<#elseif dev.oneCount==7>
<#elseif dev.oneCount == 11> <td colspan="3" class="td7"
<td colspan="3" class="td11" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}</td>
<#elseif dev.oneCount == 12>
<td colspan="3" class="td12" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==8>
<td colspan="3" class="td8"
<#elseif dev.oneCount == 13> style="text-align: left;padding: 0 2em;color: #555;">
<td colspan="3" class="td13" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> ${dev.seqStirng!}</td>
<#elseif dev.oneCount == 14>
<td colspan="3" class="td14" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==9>
<#elseif dev.oneCount == 15> <td colspan="3" class="td9"
<td colspan="3" class="td15" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 16> ${dev.seqStirng!}</td>
<td colspan="3" class="td16" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td>
<#elseif dev.oneCount == 17> <#elseif dev.oneCount==10>
<td colspan="3" class="td17" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3" class="td10"
<#elseif dev.oneCount == 18> style="text-align: left;padding: 0 2em;color: #555;">
<td colspan="3" class="td18" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> ${dev.seqStirng!}</td>
<#elseif dev.oneCount == 19>
<td colspan="3" class="td19" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==11>
<#elseif dev.oneCount == 20> <td colspan="3" class="td11"
<td colspan="3" class="td20" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 21> ${dev.seqStirng!}</td>
<td colspan="3" class="td21" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td>
<#elseif dev.oneCount == 22> <#elseif dev.oneCount==12>
<td colspan="3" class="td22" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3" class="td12"
<#elseif dev.oneCount == 23> style="text-align: left;padding: 0 2em;color: #555;">
<td colspan="3" class="td23" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> ${dev.seqStirng!}</td>
<#elseif dev.oneCount == 24>
<td colspan="3" class="td24" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==13>
<#elseif dev.oneCount == 25> <td colspan="3" class="td13"
<td colspan="3" class="td25" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> style="text-align: left;padding: 0 2em;color: #555;">
<#elseif dev.oneCount == 26> ${dev.seqStirng!}</td>
<td colspan="3" class="td26" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif dev.oneCount==14>
<#elseif dev.oneCount == 27> <td colspan="3"
<td colspan="3" class="td27" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> class="td14"
<#elseif dev.oneCount == 28> style="text-align: left;padding: 0 2em;color: #555;">
<td colspan="3" class="td28" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> ${dev.seqStirng!}
<#elseif dev.oneCount == 29> </td>
<td colspan="3" class="td29" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <#elseif
<#elseif dev.oneCount == 30> dev.oneCount==15>
<td colspan="3" class="td30" style="text-align: left;padding: 0 2em;color: #555;">${dev.seqStirng!}</td> <td colspan="3"
class="td15"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==16>
<td colspan="3"
class="td16"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==17>
<td colspan="3"
class="td17"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==18>
<td colspan="3"
class="td18"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==19>
<td colspan="3"
class="td19"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==20>
<td colspan="3"
class="td20"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==21>
<td colspan="3"
class="td21"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==22>
<td colspan="3"
class="td22"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==23>
<td colspan="3"
class="td23"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==24>
<td colspan="3"
class="td24"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==25>
<td colspan="3"
class="td25"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==26>
<td colspan="3"
class="td26"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==27>
<td colspan="3"
class="td27"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==28>
<td colspan="3"
class="td28"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==29>
<td colspan="3"
class="td29"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
<#elseif
dev.oneCount==30>
<td colspan="3"
class="td30"
style="text-align: left;padding: 0 2em;color: #555;">
${dev.seqStirng!}
</td>
</#if> </#if>
</tr> </tr>
</table>
</#list> </#list>
</table>
</div> </div>
</div> </div>
<p class="person" style="margin-top: 10px;font-size: 15px;width: 100%;text-align: left;"> <p class="person" style="margin-top: 10px;font-size: 15px;width: 100%;text-align: left;">
...@@ -407,33 +557,37 @@ ...@@ -407,33 +557,37 @@
</p> </p>
</div> </div>
</div> </div>
</div> </div>
<div> <div class="footer">
<!--<p class="bottomTxt" style="float: left;">注:编号连续使用"-"省略</p>--> <!--<p class="bottomTxt" style="float: left;">注:编号连续使用"-"省略</p>-->
<div class="footer_left">
<p>注1: <span class="underline">00000000</span>样式为非在库装备;</p>
<p>注2: <span class="bold">型号加粗表示为装备,</span>非加粗表示为附件。</p>
</div>
<p class="bottomTxt" style="float: right;">第${page}页/共${count}页</p> <p class="bottomTxt" style="float: right;">第${page}页/共${count}页</p>
</div> </div>
</div> </div>
<!--<script type="text/javascript">--> <!--<script type="text/javascript">-->
<!--function altRows(id){--> <!--function altRows(id){-->
<!--if(document.getElementsByTagName){--> <!--if(document.getElementsByTagName){-->
<!--var table = document.getElementById(id);--> <!--var table = document.getElementById(id);-->
<!--var rows = table.getElementsByTagName("tr");--> <!--var rows = table.getElementsByTagName("tr");-->
<!--for(i = 0; i < rows.length; i++){--> <!--for(i = 0; i < rows.length; i++){-->
<!--if(i % 2 == 0){--> <!--if(i % 2 == 0){-->
<!--rows[i].className = "evenrowcolor";--> <!--rows[i].className = "evenrowcolor";-->
<!--}else{--> <!--}else{-->
<!--rows[i].className = "oddrowcolor";--> <!--rows[i].className = "oddrowcolor";-->
<!--}--> <!--}-->
<!--}--> <!--}-->
<!--}--> <!--}-->
<!--}--> <!--}-->
<!--window.onload=function(){--> <!--window.onload=function(){-->
<!--altRows('alternatecolor');--> <!--altRows('alternatecolor');-->
<!--}--> <!--}-->
<!--</script>--> <!--</script>-->
</body> </body>
</html> </html>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论