style(label): 调整物料标签模板样式并优化数据显示

- 移除二维码容器多余边距设置
- 调整表格列宽以改善布局显示效果
- 客户名称列取消固定宽度以支持自适应
- 将实际数量字段替换为格式化后的数量文本显示
- 为物料清单图片添加固定宽度样式
- 新增数量格式化工具类集成到数据传输对象中
This commit is contained in:
曹鹏飞 2026-03-09 11:27:47 +08:00
parent 26cb7bf1a2
commit a2e6a012a9
2 changed files with 16 additions and 7 deletions

View File

@ -1,5 +1,6 @@
package com.nflg.wms.common.pojo.vo;
import com.nflg.wms.common.util.NumberUtil;
import lombok.Data;
import java.math.BigDecimal;
@ -34,6 +35,15 @@ public class ShipmentMaterialCodeQRVO {
*/
private BigDecimal num;
/**
* 应发数量文本
*/
private String numText;
public String getNumText() {
return NumberUtil.format(num);
}
/**
* 实发数量
*/

View File

@ -39,7 +39,6 @@
.qrcode {
width: 380px;
height: 380px;
margin: 10px;
}
.lst{
width: 800px;
@ -54,16 +53,16 @@
<img alt="" class="qrcode" th:src="${ext.qrCode}"/>
<div style="font-size: 16pt" th:text="${info.no}">0PC7B724KV6FM</div>
</td>
<td style="width: 110px;">
<td style="width: 140px;">
机台编号
</td>
<td style="width: 180px;" th:text="${info.no}">
<td style="width: 200px;" th:text="${info.no}">
26LBZ4000L001
</td>
<td style="width: 110px;">
<td style="width: 140px;">
客户名称
</td>
<td style="width: 400px;text-align: left" th:text="${info.customerName}">
<td style="text-align: left" th:text="${info.customerName}">
北京市京联鑫路用材料有限公司
</td>
</tr>
@ -77,13 +76,13 @@
<td>
数量
</td>
<td th:text="${info.actualNum}">
<td th:text="${info.numText}">
10
</td>
</tr>
<tr>
<td colspan="4">
<img alt="" src="https://img-s.msn.cn/tenant/amp/entityid/AA1VWN3Q.img?w=768&h=333&m=6" class="lst" th:src="${ext.lst}"/>
<img style="width: 750px;" alt="" src="https://img-s.msn.cn/tenant/amp/entityid/AA1VWN3Q.img?w=768&h=333&m=6" class="lst" th:src="${ext.lst}"/>
</td>
</tr>
</table>