Compare commits

..

No commits in common. "acdac8e11d143351feb359e4ee18b4f500ff024f" and "86517ae77563e4f7913e2c817455a860914c44ca" have entirely different histories.

6 changed files with 24 additions and 29 deletions

View File

@ -8,7 +8,11 @@ import com.nflg.wms.common.constant.BarCodeProcessStage;
import com.nflg.wms.common.pojo.ApiResult;
import com.nflg.wms.common.pojo.PageData;
import com.nflg.wms.common.pojo.dto.InventoryDTO;
import com.nflg.wms.common.pojo.dto.PackageChildDTO;
import com.nflg.wms.common.pojo.dto.PackageDTO;
import com.nflg.wms.common.pojo.qo.*;
import com.nflg.wms.common.pojo.vo.PackingScanVO;
import com.nflg.wms.common.pojo.vo.PackingVO;
import com.nflg.wms.common.pojo.vo.QrCodeVO;
import com.nflg.wms.common.pojo.vo.TransferOrderVO;
import com.nflg.wms.common.util.UserUtil;
@ -41,7 +45,7 @@ public class LocationTransferController extends BaseController {
private IWmsQrCodeMasterService qrCodeMasterService;
@Resource
private IWmsBinService wmsBinService;
private IWmsBinService binService;
@Resource
private IWmsWarehouseService warehouseService;
@ -118,7 +122,7 @@ public class LocationTransferController extends BaseController {
.collect(Collectors.toList()).size();
VUtil.trueThrowBusinessError(count > 0).throwMessage("存在相同储位的二维码");
WmsBin wmsBin = wmsBinService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation())
WmsBin wmsBin = binService.lambdaQuery().eq(WmsBin::getNo, request.getBinLocation())
.one();
VUtil.trueThrowBusinessError(ObjectUtil.isNull(wmsBin)).throwMessage("无效的储位");
WmsWarehouse wmsWarehouse = warehouseService.lambdaQuery().eq(WmsWarehouse::getId, wmsBin.getWarehouseId())

View File

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

View File

@ -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<ShipmentMaterialCodeItemVO> 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<ShipmentMaterialCodeItemVO> list = deliveryItemService.getItemsVO(id);
AtomicInteger index = new AtomicInteger(1);
List<ShipmentMaterialCodeItemVO> 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<ShipmentMaterialCodeItemVO> 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()

View File

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