209 lines
5.6 KiB
HTML
209 lines
5.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>成本中心退料单</title>
|
|
<style>
|
|
@page {
|
|
size: A4 landscape; /* 横向 A4 */
|
|
margin: 10mm; /* 页边距 */
|
|
}
|
|
|
|
body {
|
|
font-family: SimSun, serif;
|
|
font-size: 12px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.container {
|
|
width: 260mm;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
background-color: white;
|
|
padding: 10px;
|
|
border: 1px solid #ccc;
|
|
page-break-after: always;
|
|
}
|
|
|
|
.container:last-child {
|
|
page-break-after: auto;
|
|
}
|
|
|
|
.company-name {
|
|
text-align: center;
|
|
font-size: 18px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
font-size: 25px;
|
|
font-weight: bold;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.info-item label {
|
|
display: inline-block;
|
|
width: 80px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.table-data {
|
|
clear: both;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.table-data table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border: 1px solid #000;
|
|
}
|
|
|
|
.table-desc table {
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
|
|
.table-desc td {
|
|
text-align: left;
|
|
border: 0;
|
|
}
|
|
|
|
th, td {
|
|
border: 1px solid #000;
|
|
padding: 5px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
}
|
|
|
|
th {
|
|
background-color: #f0f0f0;
|
|
font-weight: bold;
|
|
height: 20px;
|
|
}
|
|
|
|
td {
|
|
height: 15px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.footer-item {
|
|
float: left;
|
|
width: 19.9%;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.footer-item label {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.filled-row {
|
|
background-color: #fff;
|
|
}
|
|
|
|
.package-logo {
|
|
width: 150px;
|
|
margin: 0 auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.package-logo img {
|
|
width: 100%;
|
|
}
|
|
|
|
.qrcode {
|
|
width: 100px;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.qrcode img {
|
|
width: 100%;
|
|
}
|
|
|
|
.col-left {
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container" th:each="page,pageStat : ${pages}">
|
|
<div style="position:relative;">
|
|
<div class="package-logo" style="margin: 5px;position:absolute;"><img src="../img/logo1.png"/></div>
|
|
<div class="qrcode"><img th:src="${base.qrcode}" src="../img/qrcode.png"/></div>
|
|
<div>
|
|
<div class="company-name">福建南方路面机械有限公司</div>
|
|
<div class="title">部门退料单</div>
|
|
</div>
|
|
</div>
|
|
<div class="table-desc">
|
|
<table>
|
|
<tr>
|
|
<td style="width: 30%;">移动类型:<span th:text="${info.bwart}"></span></td>
|
|
<td>日期:<span th:text="${base.date}"></span></td>
|
|
<td style="width: 25%;">页码:<span th:text="${pageStat.count}">1</span>/<span
|
|
th:text="${pageStat.size}">1</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td>退料部门:<span th:text="${info.ktext}"></span></td>
|
|
<td>成本中心:<span th:text="${info.kostl}"></span></td>
|
|
<td>单号:<span th:text="${info.no}">ICO2156115651</span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div class="table-data">
|
|
<table>
|
|
<tr>
|
|
<td style="width: 30px">序号</td>
|
|
<td style="width: 70px">物料号</td>
|
|
<td>物料描述</td>
|
|
<td style="width: 80px">收料库</td>
|
|
<td style="width: 50px">物料组</td>
|
|
<td style="width: 30px">单位</td>
|
|
<td style="width: 50px">数量</td>
|
|
<td style="width: 60px">仓位</td>
|
|
<td style="width: 50px">备注</td>
|
|
</tr>
|
|
<tr class="filled-row" th:each="item,iterStat : ${page.datas}">
|
|
<td th:text="${iterStat.count}">序号</td>
|
|
<td th:text="${item.matnr}">物料号</td>
|
|
<td th:text="${item.maktx}" class="col-left">非金属联件和紧固件等 M6 DIN 982 不锈钢304</td>
|
|
<td th:text="${info.lgort}">收料库</td>
|
|
<td th:text="${item.matkl}">物料组</td>
|
|
<td th:text="${item.meins}">单位</td>
|
|
<td th:text="${item.num}">1000.00</td>
|
|
<td th:text="${item.lgpbe}">5.00</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<div class="footer-item">
|
|
<label>收料部门负责人</label>
|
|
</div>
|
|
<div class="footer-item">
|
|
<label>经办人</label>
|
|
</div>
|
|
<div class="footer-item">
|
|
<label>材料计划员</label>
|
|
</div>
|
|
<div class="footer-item">
|
|
<label>退料部门负责人</label>
|
|
</div>
|
|
<div class="footer-item">
|
|
<label>经办人</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |