238 lines
6.1 KiB
HTML
238 lines
6.1 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 th:text="${base.title}">生产退料单</title>
|
|
<style>
|
|
@page {
|
|
size: A4 landscape; /* 横向 A4 */
|
|
margin: 10mm; /* 页边距 */
|
|
}
|
|
|
|
body {
|
|
font-family: SimSun, serif;
|
|
font-size: 12px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.container {
|
|
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;
|
|
}
|
|
|
|
.col-seq {
|
|
width: 40px;
|
|
}
|
|
|
|
.col-code {
|
|
width: 80px;
|
|
}
|
|
|
|
.col-desc {
|
|
text-align: center;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.col-unit {
|
|
width: 30px;
|
|
}
|
|
|
|
.col-apply {
|
|
width: 55px;
|
|
}
|
|
|
|
.col-actual {
|
|
width: 55px;
|
|
}
|
|
|
|
.col-warehouse {
|
|
width: 80px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.footer-item {
|
|
float: left;
|
|
width: 25%;
|
|
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 : ${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" th:text="${base.title}">生产退料单</div>
|
|
</div>
|
|
</div>
|
|
<div class="table-desc">
|
|
<table>
|
|
<tr>
|
|
<td style="width: 30%;">退料部门:<span th:text="${info.ktext}">(0040)通用车间</span></td>
|
|
<td>工厂/退料仓库:<span th:text="${info.dwerk}">1010</span>/<span th:text="${info.lgort2}">0007</span>
|
|
</td>
|
|
<td style="width: 22%;"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>生产订单号:<span th:text="${info.aufnr}">20022949</span></td>
|
|
<td>序列号:<span></span></td>
|
|
<td>单据编号:<span th:text="${info.no}">OP202508146285</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td>物料编码:<span th:text="${info.plnbez}">ZL00856130</span></td>
|
|
<td>物料描述:<span th:text="${info.maktx}">QCE-WFC1100RSE-037-001推铲输送机</span></td>
|
|
<td>单据日期:<span th:text="${base.date}">2025-08-01</span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div class="table-data">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td class="col-seq">序号</td>
|
|
<td class="col-code">物料编码</td>
|
|
<td class="col-desc">物料描述</td>
|
|
<td class="col-unit">单位</td>
|
|
<td class="col-apply">申请数量</td>
|
|
<td class="col-actual">实退数量</td>
|
|
<td class="col-warehouse">储位</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="filled-row" th:each="item,iterStat : ${page.datas}">
|
|
<td th:text="${iterStat.index+1}">1</td>
|
|
<td th:text="${item.matnr}">1100045428</td>
|
|
<td th:text="${item.maktx2}" class="col-left">非金属联件和紧固件等 M6 DIN 982 不锈钢304</td>
|
|
<td th:text="${item.meins}">PC</td>
|
|
<td th:text="${item.sqsl}">1.00</td>
|
|
<td th:text="${item.num}"></td>
|
|
<td th:text="${item.lgpbe}">LK30</td>
|
|
</tr>
|
|
</tbody>
|
|
</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>
|
|
</div>
|
|
</body>
|
|
</html> |