wms/nflg-wms-admin/src/main/resources/template/qrcode/dp.html

49 lines
1.6 KiB
HTML
Raw Normal View History

2025-07-11 18:45:43 +08:00
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>标签信息展示</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<style>
@media print {
body {
font-size: 12pt;
}
}
body {
font-family: SimSun, Arial, sans-serif;
margin: 0;
padding: 0;
}
table {
margin: 0 auto;
border-collapse: collapse;
}
.title {
font-weight: bold;
font-size: 1.2em;
text-align: center;
display: table-cell;
vertical-align: middle;
}
</style>
</head>
<body>
<table th:each="item : ${list}" th:style="${item.index == 0} ? 'page-break-before: auto;' : 'page-break-before: always;'">
<tr>
<td style="width: 150px;text-align: center">
<img height="120" th:src="${item.qrCode}" width="120"/>
<div th:text="${item.printNo}">20250227100950-0</div>
</td>
<td style="padding: 10px;width: 200px;text-align: left;vertical-align: top">
<div class="title"><img alt="二维码" height="20" src="../../img/ico.png" style="margin-right: 5px;" width="20"/>NFLG</div>
<div>SAP编码: <span th:text="${item.materialNo}"></span></div>
<div>名称: <span th:text="${item.materialDesc}"></span></div>
<div>数量: <span th:text="${item.printNum}"></span></div>
<div>批次号: <span th:text="${item.batchNo}"></span></div>
</td>
</tr>
</table>
</body>
</html>