Commit cc1489dadf6a02cd03c12b5d00732075b3e59b1f
1 parent
ac6b244a
feat:出库单历史也加上两个打印按钮
Showing
4 changed files
with
21 additions
and
19 deletions
src/main/java/com/huaheng/pc/config/location/service/LocationServiceImpl.java
... | ... | @@ -490,7 +490,7 @@ public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> i |
490 | 490 | @Override |
491 | 491 | public Location getInsideNear(Location location) { |
492 | 492 | LambdaQueryWrapper<Location> queryWrapper = Wrappers.lambdaQuery(); |
493 | - queryWrapper.eq(Location::getWarehouseCode, location.getWarehouseCode()); | |
493 | + //queryWrapper.eq(Location::getWarehouseCode, location.getWarehouseCode()); | |
494 | 494 | queryWrapper.eq(Location::getZoneCode, location.getZoneCode()); |
495 | 495 | queryWrapper.eq(Location::getRoadway, location.getRoadway());//巷道 |
496 | 496 | queryWrapper.eq(Location::getIColumn, location.getIColumn());//列 |
... | ... |
src/main/java/com/huaheng/pc/receipt/receiptHeader/controller/ReceiptHeaderController.java
... | ... | @@ -179,7 +179,7 @@ public class ReceiptHeaderController extends BaseController { |
179 | 179 | //ReceiptHeader receiptHeaderData = new ReceiptHeader(); |
180 | 180 | ReceiptDetail receiptDetail = receiptDetailService.getOne(new LambdaQueryWrapper<ReceiptDetail>().eq(ReceiptDetail::getSNNO, receiptHeader.getSNNO())); |
181 | 181 | if (receiptDetail == null) { |
182 | - receiptDetail = receiptDetailService.getOne(new LambdaQueryWrapper<ReceiptDetail>().eq(ReceiptDetail::getReceiptCode, receiptHeader.getSNNO())); | |
182 | + receiptDetail = receiptDetailService.getOne(new LambdaQueryWrapper<ReceiptDetail>().like(ReceiptDetail::getReceiptCode, receiptHeader.getSNNO())); | |
183 | 183 | if (receiptDetail == null) { |
184 | 184 | return AjaxResult.error("该SN或入库单号不存在"); |
185 | 185 | } |
... | ... |
src/main/java/com/huaheng/pc/shipment/shippingCombination/service/ShippingCombinationService.java
... | ... | @@ -84,11 +84,11 @@ public class ShippingCombinationService { |
84 | 84 | if (policy.equals("PL") || noticeNo.contains("展会")) { |
85 | 85 | list.removeIf(detail -> !detail.getNoticeCode().equals(noticeNo)); |
86 | 86 | } |
87 | - | |
87 | + | |
88 | 88 | //排序:主体颜色加喷漆状态、喷漆状态、主体颜色、喷漆状态(底漆)、无颜色、先进先出 |
89 | 89 | return list.stream() |
90 | 90 | .sorted(Comparator.comparing((InventoryDetail detail) -> { |
91 | - if (StringUtils.isNotEmpty(noticeNo) && paintStatus.equals(detail.getNoticeCode())) { | |
91 | + if (StringUtils.isNotEmpty(noticeNo) && noticeNo.equals(detail.getNoticeCode())) { | |
92 | 92 | return 1; |
93 | 93 | } else if (StringUtils.isNotEmpty(color) && StringUtils.isNotEmpty(paintStatus) && color.equals(detail.getMaterialColor()) && paintStatus.equals(detail.getPaintStatus())) { |
94 | 94 | return 2; |
... | ... |
src/main/resources/templates/shipment/shipmentHeaderHistory/shipmentHeaderHistory.html
... | ... | @@ -376,7 +376,8 @@ |
376 | 376 | align: 'center', |
377 | 377 | formatter: function (value, row, index) { |
378 | 378 | var actions = []; |
379 | - actions.push('<a id="table_edit" class="btn btn-success btn-xs ' + printFlag + '" href="#" onclick="receiptPrint(\'' + row.id + '\')"><i class="fa fa-print"></i>打印</a> '); | |
379 | + actions.push('<a id="table_edit" class="btn btn-success btn-xs ' + printFlag + '" href="#" onclick="receiptPrint(\'' + row.id + '\',1)"><i class="fa fa-print"></i>打印1</a> '); | |
380 | + actions.push('<a id="table_edit" class="btn btn-success btn-xs ' + printFlag + '" href="#" onclick="receiptPrint(\'' + row.id + '\',2)"><i class="fa fa-print"></i>打印2</a> '); | |
380 | 381 | return actions.join(''); |
381 | 382 | } |
382 | 383 | }, |
... | ... | @@ -942,21 +943,22 @@ |
942 | 943 | } |
943 | 944 | } |
944 | 945 | |
945 | - /* 打印 */ | |
946 | - function receiptPrint(id) { | |
947 | - var url = prefix + "/autoreport/" + id; | |
948 | - $.ajax({ | |
949 | - url: url, | |
950 | - type: "get", | |
951 | - success: function (response) { | |
952 | - if (response.code === 200) { | |
953 | - $.modal.alertSuccess('打印成功:' + response.msg); | |
954 | - } else { | |
955 | - $.modal.alertError('打印失败:' + response.msg); | |
956 | - } | |
946 | + | |
947 | + /* 打印 */ | |
948 | + function receiptPrint(id, version) { | |
949 | + var url = prefix + "/autoreport/" + id + "/" + version; | |
950 | + $.ajax({ | |
951 | + url: url, | |
952 | + type: "get", | |
953 | + success: function (response) { | |
954 | + if (response.code === 200) { | |
955 | + $.modal.alertSuccess('打印成功:' + response.msg); | |
956 | + } else { | |
957 | + $.modal.alertError('打印失败:' + response.msg); | |
957 | 958 | } |
958 | - }) | |
959 | - } | |
959 | + } | |
960 | + }) | |
961 | + } | |
960 | 962 | |
961 | 963 | |
962 | 964 | /* 单个删除 */ |
... | ... |