diff --git a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/ShipmentMaterialCodeQRVO.java b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/ShipmentMaterialCodeQRVO.java index 39a3d07f..874a03f9 100644 --- a/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/ShipmentMaterialCodeQRVO.java +++ b/nflg-wms-common/src/main/java/com/nflg/wms/common/pojo/vo/ShipmentMaterialCodeQRVO.java @@ -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); + } + /** * 实发数量 */ diff --git a/nflg-wms-shipment/src/main/java/com/nflg/wms/shipment/controller/DeliveryController.java b/nflg-wms-shipment/src/main/java/com/nflg/wms/shipment/controller/DeliveryController.java index 1cec4838..36e93012 100644 --- a/nflg-wms-shipment/src/main/java/com/nflg/wms/shipment/controller/DeliveryController.java +++ b/nflg-wms-shipment/src/main/java/com/nflg/wms/shipment/controller/DeliveryController.java @@ -202,17 +202,17 @@ public class DeliveryController extends BaseController { public void exportItemToExcel(HttpServletResponse response, @RequestParam Long id) throws IOException { WmsShipmentDelivery delivery = deliveryService.getById(id); VUtil.trueThrowBusinessError(Objects.isNull(delivery)).throwMessage("清单不存在"); - AtomicInteger index = new AtomicInteger(1); - List list = deliveryItemService.lambdaQuery() - .eq(WmsShipmentDeliveryItem::getDeliveryId, id) - .orderByAsc(WmsShipmentDeliveryItem::getId) - .list() - .stream().map(item -> { - ShipmentMaterialCodeItemVO vo = Convert.convert(ShipmentMaterialCodeItemVO.class, item); - vo.setIndex(index.getAndIncrement()); - return vo; - }).toList(); -// List list = deliveryItemService.getItemsVO(id); +// AtomicInteger index = new AtomicInteger(1); +// List list = deliveryItemService.lambdaQuery() +// .eq(WmsShipmentDeliveryItem::getDeliveryId, id) +// .orderByAsc(WmsShipmentDeliveryItem::getId) +// .list() +// .stream().map(item -> { +// ShipmentMaterialCodeItemVO vo = Convert.convert(ShipmentMaterialCodeItemVO.class, item); +// vo.setIndex(index.getAndIncrement()); +// return vo; +// }).toList(); + List list = deliveryItemService.getItemsVO(id); response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + URLEncoder.encode("发货清单-" + delivery.getNo() + ".xlsx", StandardCharsets.UTF_8)); new Workbook() diff --git a/nflg-wms-shipment/src/main/resources/template/label/material.html b/nflg-wms-shipment/src/main/resources/template/label/material.html index 16559d61..813de42f 100644 --- a/nflg-wms-shipment/src/main/resources/template/label/material.html +++ b/nflg-wms-shipment/src/main/resources/template/label/material.html @@ -39,7 +39,6 @@ .qrcode { width: 380px; height: 380px; - margin: 10px; } .lst{ width: 800px; @@ -54,16 +53,16 @@
0PC7B724KV6FM
- + 机台编号 - + 26LBZ4000L001 - + 客户名称 - + 北京市京联鑫路用材料有限公司 @@ -77,13 +76,13 @@ 数量 - + 10 - + diff --git a/nflg-wms-shipment/src/main/resources/template/发货清单模版.xlsx b/nflg-wms-shipment/src/main/resources/template/发货清单模版.xlsx index b646b745..2c7a8160 100644 Binary files a/nflg-wms-shipment/src/main/resources/template/发货清单模版.xlsx and b/nflg-wms-shipment/src/main/resources/template/发货清单模版.xlsx differ diff --git a/nflg-wms-shipment/src/main/resources/template/装箱清单模版.xlsx b/nflg-wms-shipment/src/main/resources/template/装箱清单模版.xlsx index 8df884a3..e4432ded 100644 Binary files a/nflg-wms-shipment/src/main/resources/template/装箱清单模版.xlsx and b/nflg-wms-shipment/src/main/resources/template/装箱清单模版.xlsx differ