diff --git a/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java b/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java index 529cc089..0458be91 100644 --- a/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java +++ b/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java @@ -1677,6 +1677,12 @@ public class MaterialController { } + /** + * 用于库存盘点时根据物料查询所处位置 + * @param map + * @param request + * @return + */ @GetMapping("/findMaterialByConditionForStockTaking") public RestResponse findMaterialByConditionForStockTaking(@RequestParam Map map, HttpServletRequest request) { if (map.containsKey("mid")) { diff --git a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml index 1b8c6fe7..c67d494f 100644 --- a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml +++ b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml @@ -53,6 +53,7 @@ + @@ -65,7 +66,7 @@ - depository_id,mname,type_id,tname,mcode,version,price,unit,texture,pcode,dname,adminorg,dcode,iid,inventory,id,pid,mid,kingdeecode + depository_id,mname,type_id,tname,mcode,version,price,unit,texture,pcode,dname,adminorg,dcode,iid,inventory,id,pid,mid,kingdeecode,mbrand diff --git a/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java b/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java index 12b489d4..de39fa4d 100644 --- a/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java +++ b/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java @@ -62,6 +62,11 @@ public class MaterialAndPlaceForViewP { */ private String version; + /** + * 物料品牌 + */ + private String mbrand; + /** * 物料单价 */ diff --git a/src/main/java/com/dreamchaser/depository_manage/service/impl/MaterialServiceImpl.java b/src/main/java/com/dreamchaser/depository_manage/service/impl/MaterialServiceImpl.java index 342ca4d8..eb376205 100644 --- a/src/main/java/com/dreamchaser/depository_manage/service/impl/MaterialServiceImpl.java +++ b/src/main/java/com/dreamchaser/depository_manage/service/impl/MaterialServiceImpl.java @@ -586,6 +586,9 @@ public class MaterialServiceImpl implements MaterialService { for (MaterialAndPlaceForViewP materialByDidsAndMid : placeAndMaterialByDidsAndMid ) { materialByDidsAndMid.setInventory(materialByDidsAndMid.getInventory() / 100); + if(materialByDidsAndMid.getMbrand() == null){ + materialByDidsAndMid.setMbrand(""); + } } return packMpvList(placeAndMaterialByDidsAndMid, map); } @@ -2698,6 +2701,9 @@ public class MaterialServiceImpl implements MaterialService { for (MaterialAndPlaceForViewP placeAndPlaceForViewP : placeAndMaterialByCondition ) { placeAndPlaceForViewP.setInventory(placeAndPlaceForViewP.getInventory() / 100); + if(placeAndPlaceForViewP.getMbrand() == null){ + placeAndPlaceForViewP.setMbrand(""); + } } return packMpvList(placeAndMaterialByCondition, map); } diff --git a/src/main/resources/templates/pages/scanQrCode/ScanQrCode.html b/src/main/resources/templates/pages/scanQrCode/ScanQrCode.html index 85d80d04..c234efba 100644 --- a/src/main/resources/templates/pages/scanQrCode/ScanQrCode.html +++ b/src/main/resources/templates/pages/scanQrCode/ScanQrCode.html @@ -66,7 +66,7 @@ outboundLogic = function (req) { - let loading2 = layer.open({ type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); + let loading2 = layer.open({type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); layui.$.ajax({ url: "/material/qywxScanCodeOut", type: "post", @@ -104,19 +104,19 @@ layer.close(loading2); // 如果是物料 material = data.material; - window.location.href = "/toShowInventory?id="+material.id+"&type=m"; + window.location.href = "/toShowInventory?id=" + material.id + "&type=m"; } else if (flag === 2) { layer.close(loading2); // 如果扫描的为库位 place = data.place;// 将扫描结果保存到vue中 - window.location.href = "/toShowInventory?id="+place.id+"&type=p"; + window.location.href = "/toShowInventory?id=" + place.id + "&type=p"; } else if (flag === 3) { layer.close(loading2); depository = data.depository;// 将扫描结果保存到vue中 - window.location.href = "/toShowInventory?id="+depository.id+"&type=d"; + window.location.href = "/toShowInventory?id=" + depository.id + "&type=d"; } diff --git a/src/main/resources/templates/pages/showInventory/showInventoryForLocation.html b/src/main/resources/templates/pages/showInventory/showInventoryForLocation.html index bf3d0866..54dbfc93 100644 --- a/src/main/resources/templates/pages/showInventory/showInventoryForLocation.html +++ b/src/main/resources/templates/pages/showInventory/showInventoryForLocation.html @@ -67,9 +67,7 @@ -
+
    @@ -79,10 +77,6 @@ - - + + + + + + + + \ No newline at end of file diff --git a/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml b/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml index 1b8c6fe7..c67d494f 100644 --- a/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml +++ b/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml @@ -53,6 +53,7 @@ + @@ -65,7 +66,7 @@ - depository_id,mname,type_id,tname,mcode,version,price,unit,texture,pcode,dname,adminorg,dcode,iid,inventory,id,pid,mid,kingdeecode + depository_id,mname,type_id,tname,mcode,version,price,unit,texture,pcode,dname,adminorg,dcode,iid,inventory,id,pid,mid,kingdeecode,mbrand diff --git a/target/classes/templates/pages/scanQrCode/ScanQrCode.html b/target/classes/templates/pages/scanQrCode/ScanQrCode.html index 85d80d04..c234efba 100644 --- a/target/classes/templates/pages/scanQrCode/ScanQrCode.html +++ b/target/classes/templates/pages/scanQrCode/ScanQrCode.html @@ -66,7 +66,7 @@ outboundLogic = function (req) { - let loading2 = layer.open({ type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); + let loading2 = layer.open({type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); layui.$.ajax({ url: "/material/qywxScanCodeOut", type: "post", @@ -104,19 +104,19 @@ layer.close(loading2); // 如果是物料 material = data.material; - window.location.href = "/toShowInventory?id="+material.id+"&type=m"; + window.location.href = "/toShowInventory?id=" + material.id + "&type=m"; } else if (flag === 2) { layer.close(loading2); // 如果扫描的为库位 place = data.place;// 将扫描结果保存到vue中 - window.location.href = "/toShowInventory?id="+place.id+"&type=p"; + window.location.href = "/toShowInventory?id=" + place.id + "&type=p"; } else if (flag === 3) { layer.close(loading2); depository = data.depository;// 将扫描结果保存到vue中 - window.location.href = "/toShowInventory?id="+depository.id+"&type=d"; + window.location.href = "/toShowInventory?id=" + depository.id + "&type=d"; } diff --git a/target/classes/templates/pages/showInventory/showInventoryForLocation.html b/target/classes/templates/pages/showInventory/showInventoryForLocation.html index bf3d0866..54dbfc93 100644 --- a/target/classes/templates/pages/showInventory/showInventoryForLocation.html +++ b/target/classes/templates/pages/showInventory/showInventoryForLocation.html @@ -67,9 +67,7 @@ -
    +
      @@ -79,10 +77,6 @@ - -