wms/nflg-wms-admin/src/main/resources/template/外协领料单.html

231 lines
6.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 {
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: 24%;
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.lifnr}"></span></td>
<td>供应商描述:<span th:text="${info.name1}"></span></td>
<td style="width: 25%;">ISO编号<span></span></td>
</tr>
<tr>
<td>收货仓库:<span th:text="${info.lgort}"></span></td>
<td>采购组:<span th:text="${info.ekgrp}"></span></td>
<td>订单日期:<span th:text="${base.date}">2025-08-25</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 style="width: 30px">项目</td>
<td style="width: 70px">收回物料</td>
<td>物料描述</td>
<td style="width: 80px">图号</td>
<td style="width: 30px">单位</td>
<td style="width: 50px">数量</td>
<td style="width: 50px">备注</td>
</tr>
<tr class="filled-row" th:each="item,iterStat : ${page.headers}">
<td th:text="${iterStat.count}">1</td>
<td th:text="${item.ebeln}"></td>
<td th:text="${item.ebelp}"></td>
<td th:text="${item.matnr}">物料号</td>
<td th:text="${item.maktx}" class="col-left">非金属联件和紧固件等 M6 DIN 982 不锈钢304</td>
<td></td>
<td th:text="${item.meins}">单位</td>
<td th:text="${item.num}">1000.00</td>
<td></td>
</tr>
</table>
</div>
<div style="clear: both;margin-top: 20px;"></div>
<div class="table-data">
<table>
<tr>
<td style="width: 30px">序号</td>
<td style="width: 70px">储位</td>
<td style="width: 70px">发出物料</td>
<td>物料描述</td>
<td style="width: 80px">实发数量</td>
<td style="width: 30px">单位</td>
<td style="width: 50px">未发数</td>
<td style="width: 50px">发货仓库</td>
</tr>
<tr class="filled-row" th:each="item,iterStat : ${page.datas}">
<td th:text="${iterStat.count}">1</td>
<td th:text="${item.lgpbe}"></td>
<td th:text="${item.matnr1}">物料号</td>
<td th:text="${item.maktx1}" class="col-left">非金属联件和紧固件等 M6 DIN 982 不锈钢304</td>
<td th:text="${item.num}">100.00</td>
<td th:text="${item.meins}">单位</td>
<td th:text="${item.enmng1}">20.00</td>
<td th:text="${item.lgort1}"></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>
</div>
</body>
</html>