Commit ea534a9cb28bc6a1ecbf633a0ff245e6860f73e7

Authored by 易文鹏
1 parent 537adf18

feat:出库组盘右侧显示新增库区显示

src/main/java/com/huaheng/framework/config/ShiroConfig.java
@@ -254,6 +254,7 @@ public class ShiroConfig { @@ -254,6 +254,7 @@ public class ShiroConfig {
254 // filterChainDefinitionMap.put("/admin/home", "anon,captchaValidate"); 254 // filterChainDefinitionMap.put("/admin/home", "anon,captchaValidate");
255 filterChainDefinitionMap.put("/mobile/download/*", "anon"); 255 filterChainDefinitionMap.put("/mobile/download/*", "anon");
256 filterChainDefinitionMap.put("/config/zone/*", "anon"); 256 filterChainDefinitionMap.put("/config/zone/*", "anon");
  257 + filterChainDefinitionMap.put("/receipt/receiptHeader/listPda", "anon");
257 filterChainDefinitionMap.put("/admin/login", "anon"); 258 filterChainDefinitionMap.put("/admin/login", "anon");
258 filterChainDefinitionMap.put("/login", "anon"); 259 filterChainDefinitionMap.put("/login", "anon");
259 filterChainDefinitionMap.put("/file/**", "anon"); 260 filterChainDefinitionMap.put("/file/**", "anon");
src/main/java/com/huaheng/pc/shipment/shippingCombination/controller/ShippingCombinationController.java
@@ -401,7 +401,7 @@ public class ShippingCombinationController extends BaseController { @@ -401,7 +401,7 @@ public class ShippingCombinationController extends BaseController {
401 lambdaQuery.eq(ShipmentDetail::getShipmentId, shipmentDetail.getShipmentId()) 401 lambdaQuery.eq(ShipmentDetail::getShipmentId, shipmentDetail.getShipmentId())
402 .lt(ShipmentDetail::getStatus, QuantityConstant.TASK_STATUS_COMPLETED); 402 .lt(ShipmentDetail::getStatus, QuantityConstant.TASK_STATUS_COMPLETED);
403 List<ShipmentDetail> shipmentDetailDatas = shipmentDetailService.list(lambdaQuery); 403 List<ShipmentDetail> shipmentDetailDatas = shipmentDetailService.list(lambdaQuery);
404 - if (shipmentDetailDatas.size() < 1) { 404 + if (shipmentDetailDatas.isEmpty()) {
405 shipmentHeader.setFirstStatus(QuantityConstant.SHIPMENT_HEADER_COMPLETED); 405 shipmentHeader.setFirstStatus(QuantityConstant.SHIPMENT_HEADER_COMPLETED);
406 shipmentHeader.setLastStatus(QuantityConstant.SHIPMENT_HEADER_COMPLETED); 406 shipmentHeader.setLastStatus(QuantityConstant.SHIPMENT_HEADER_COMPLETED);
407 shipmentHeaderService.updateById(shipmentHeader); 407 shipmentHeaderService.updateById(shipmentHeader);
src/main/resources/templates/shipment/shippingCombination/shippingCombination.html
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 var containerHeaderStatus = [[${@dict.getType('shipmentContainerHeaderStatus')}]]; 86 var containerHeaderStatus = [[${@dict.getType('shipmentContainerHeaderStatus')}]];
87 var inventoryStatus = [[${@dict.getType('inventorySts')}]]; 87 var inventoryStatus = [[${@dict.getType('inventorySts')}]];
88 var taskType = [[${@dict.getType('taskType')}]]; 88 var taskType = [[${@dict.getType('taskType')}]];
89 - 89 + var zone = [[${@zone.getCode()}]];
90 var prefix = ctx + "shipment/shippingCombination"; 90 var prefix = ctx + "shipment/shippingCombination";
91 var prefix_container = ctx + "shipment/shipmentContainerHeader" 91 var prefix_container = ctx + "shipment/shipmentContainerHeader"
92 92
@@ -240,6 +240,21 @@ @@ -240,6 +240,21 @@
240 visible: false 240 visible: false
241 }, 241 },
242 { 242 {
  243 + field: 'zoneCode',
  244 + title: '库区',
  245 + align: 'center',
  246 + formatter: function (value, row, index) {
  247 + var actions = [];
  248 + $.each(zone, function (index, dict) {
  249 + if (dict.code == value) {
  250 + actions.push("<span class='badge badge-info'>" + dict.name + "</span>");
  251 + return false;
  252 + }
  253 + });
  254 + return actions.join('');
  255 + }
  256 + },
  257 + {
243 field: 'companyCode', 258 field: 'companyCode',
244 title: '货主', 259 title: '货主',
245 visible: false 260 visible: false