208 lines
5.5 KiB
HTML
208 lines
5.5 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;
|
|
min-height: 15px;
|
|
}
|
|
|
|
th {
|
|
background-color: #f0f0f0;
|
|
font-weight: bold;
|
|
height: 20px;
|
|
}
|
|
|
|
td {
|
|
height: 15px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.footer-item {
|
|
float: left;
|
|
width: 33.1%;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.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;
|
|
max-lines: 2;
|
|
overflow: hidden;
|
|
}
|
|
</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: 40%;">采购订单号:<span th:text="${info.ebeln}">7700070142</span></td>
|
|
<td>过账日期:<span th:text="${base.date}">2025-05-11</span></td>
|
|
<td style="width: 25%;">页码:<span th:text="${pageStat.count}">1</span>/<span
|
|
th:text="${pageStat.size}">1</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">供 应 商:</td>
|
|
<td>物料凭证号:<span th:text="${info.matDoc}">5001194186</span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div class="table-data">
|
|
<table>
|
|
<tr>
|
|
<td style="width: 50px">订单项次</td>
|
|
<td style="width: 50px">移动类型</td>
|
|
<td style="width: 70px">物料号</td>
|
|
<td>物料描述</td>
|
|
<td style="width: 30px">单位</td>
|
|
<td style="width: 40px">数量</td>
|
|
<td style="width: 40px">工厂</td>
|
|
<td style="width: 40px">仓库</td>
|
|
<td style="width: 60px">仓位</td>
|
|
</tr>
|
|
<tr class="filled-row" th:each="item,iterStat : ${page.datas}">
|
|
<td th:text="${item.ebelp}">10</td>
|
|
<td></td>
|
|
<td th:text="${item.matnr}">2100701424</td>
|
|
<td th:text="${item.maktx}" class="col-left">非金属联件和紧固件等 M6 DIN 982
|
|
不锈钢304非金属联件和紧固件等
|
|
</td>
|
|
<td th:text="${item.meins}">PC</td>
|
|
<td th:text="${item.sqsl}">12.00</td>
|
|
<td th:text="${item.werks}">1030</td>
|
|
<td th:text="${item.lgort}">0081</td>
|
|
<td th:text="${item.binNos1}">XL2D</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>
|
|
</div>
|
|
</body>
|
|
</html> |