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 605e235e..4e5e173f 100644 --- a/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java +++ b/src/main/java/com/dreamchaser/depository_manage/controller/MaterialController.java @@ -1782,6 +1782,8 @@ public class MaterialController { Integer placeId = ObjectFormatUtil.toInteger(map.get("placeId")); // 获取当前库存所在库位的对应信息 MaterialAndPlace placeAndMaterialByMidAndPid = placeService.findPlaceAndMaterialByMidAndPid(placeId, id); + + if ("-1".equals(unit)) { // 如果盘点的是默认单位 quantity = placeAndMaterialByMidAndPid.getQuantity() / 100.0; @@ -1807,11 +1809,15 @@ public class MaterialController { } + /** + * 获取当前物料在当前单位下的库存数量 + * + * @param map 查询条件 + * @return + */ @PostMapping("/findSplitInventoryByUnit") public RestResponse findSplitInventoryByUnit(@RequestBody Map map) { if (map.containsKey("id")) { - - // 获取当前的计量单位 String unit = (String) map.get("unit"); // 获取当前库存id @@ -1908,37 +1914,16 @@ public class MaterialController { public RestResponse getQuantityForLocationAndUnit(@RequestBody Map map) { // 当前计量单位 String unit = map.get("unit"); - // 当前的仓库id - String depositoryId = map.get("depositoryId"); // 当前库位编码 - String placeCode = map.get("placeCode"); - // 当前物料id - Integer mid = ObjectFormatUtil.toInteger(map.get("mid")); - MaterialAndPlace placeAndMaterialByMidAndPid = null; + String id = map.get("id"); + MaterialAndPlace placeAndMaterialByMidAndPid = placeService.findPlaceAndMaterialById(ObjectFormatUtil.toInteger(id)); double quantity = 0.0; - int placeId = 0; - if ("0000".equals(placeCode)) { - // 如果要改变默认库位 - - // 获取当前物料的对应关系 - placeAndMaterialByMidAndPid = placeService.findPlaceAndMaterialByMidAndPid(0, mid); - - } else { - // 获取当前库位id - Map paramForPlace = new HashMap<>(); - paramForPlace.put("code", placeCode); - paramForPlace.put("depositoryId", depositoryId); - List placeByCondition = placeService.findPlaceByCondition(paramForPlace); - //获取对应库位 - Place place = placeByCondition.get(0); - // 获取当前物料的对应关系 - placeId = place.getId(); - placeAndMaterialByMidAndPid = placeService.findPlaceAndMaterialByMidAndPid(placeId, mid); - } - Inventory inventoryById = materialService.findInventoryById(mid); - if (inventoryById.getUnit().equals(unit)) { - // 如果转移的基础单位 + double amount = 0.0; + Inventory inventoryById = materialService.findInventoryById(placeAndMaterialByMidAndPid.getMid()); + if (inventoryById.getUnit().equals(unit) || "-1".equals(unit)) { + // 如果获取的是基础单位 quantity = (placeAndMaterialByMidAndPid.getQuantity() / 100.0); + amount = ObjectFormatUtil.multiply(quantity, inventoryById.getPrice()); } else { // 获取当前的拆单记录 Map paramForSplitInfo = new HashMap<>(); @@ -1947,16 +1932,19 @@ public class MaterialController { paramForSplitInfo.put("newUnit", unit); SplitInfo splitInfo = splitUnitService.findSplitInfoByMidAndUnit(paramForSplitInfo); SplitInventory splitInventory = splitUnitService.findSplitInventoryByIidAndSid(placeAndMaterialByMidAndPid.getId(), splitInfo.getId()); + int Scale = splitUnitService.findSplitInfoScaleQuantity(splitInfo, -1); + double price = ObjectFormatUtil.divide(inventoryById.getPrice(), Scale, 2); if (splitInventory != null) { - quantity = splitInventory.getSaveQuantity() / 100.0; + quantity = splitUnitService.findAllInventoryForSplitInfo(-1, placeAndMaterialByMidAndPid, splitInfo.getId(), 0, true); } else { - int Scale = splitUnitService.findSplitInfoScaleQuantity(splitInfo, -1); quantity = (inventoryById.getQuantity() * Scale / 100.0); } + amount = ObjectFormatUtil.multiply(quantity, price); + } Map result = new HashMap<>(); result.put("quantity", quantity); - result.put("placeId", placeId); + result.put("amount", amount); return new RestResponse(result); } diff --git a/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java b/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java index e6c2f8d9..7b6f0c00 100644 --- a/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java +++ b/src/main/java/com/dreamchaser/depository_manage/controller/PageController.java @@ -496,7 +496,7 @@ public class PageController { return mv; } - // 库位树形菜单 + /* // 库位树形菜单 @GetMapping("/selectPlaceByDepository") public ModelAndView selectPlaceByDepository(Integer depositoryId, Integer mid, String placeCode, String unit) { ModelAndView mv = new ModelAndView(); @@ -543,8 +543,47 @@ public class PageController { mv.addObject("unit", unit); mv.setViewName("pages/material/selectPlaceByDepository"); return mv; - } + }*/ + + // 同一仓库下的库位树形菜单 + @GetMapping("/selectPlaceByDepository") + public ModelAndView selectPlaceByDepository(Integer id, String unit) { + if (id != null) { + ModelAndView mv = new ModelAndView(); + MaterialAndPlace placeAndMaterialById = placeService.findPlaceAndMaterialById(id); + Integer mid = placeAndMaterialById.getMid(); + Inventory inventoryById = materialService.findInventoryById(mid); + if (inventoryById.getUnit().equals(unit)) { + // 如果转移的基础单位 + mv.addObject("quantity", (placeAndMaterialById.getQuantity() / 100)); + } else { + // 获取当前的拆单记录 + Map paramForSplitInfo = new HashMap<>(); + paramForSplitInfo.put("mid", inventoryById.getMid()); + paramForSplitInfo.put("newUnit", unit); + SplitInfo splitInfo = splitUnitService.findSplitInfoByMidAndUnit(paramForSplitInfo); + SplitInventory splitInventory = splitUnitService.findSplitInventoryByIidAndSid(placeAndMaterialById.getId(), splitInfo.getId()); + if (splitInventory != null) { + double quantity = splitUnitService.findAllInventoryForSplitInfo(-1, placeAndMaterialById, splitInfo.getId(), 0, true); + + mv.addObject("quantity", quantity); + } else { + int Scale = splitUnitService.findSplitInfoScaleQuantity(splitInfo, -1); + mv.addObject("quantity", (inventoryById.getQuantity() * Scale / 100)); + } + } + mv.addObject("depositoryId", placeAndMaterialById.getDid()); + mv.addObject("mid", mid); + mv.addObject("unit", unit); + mv.addObject("placeId", placeAndMaterialById.getPid()); + mv.setViewName("pages/material/selectPlaceByDepository"); + return mv; + } else { + throw new MyException("缺少必要参数"); + } + + } /** * 专用于卡片仓库树形菜单页面 @@ -688,6 +727,34 @@ public class PageController { return mv; } + @GetMapping("materialEditForInventory") + public ModelAndView materialEditForInvetory(Integer id, HttpServletRequest request) { + ModelAndView mv = new ModelAndView(); + mv.setViewName("pages/material/material-viewForInventoryEdit"); + String token = request.getHeader("user-token"); + if (token == null) { + token = (String) request.getSession().getAttribute("userToken"); + } + UserByPort userToken = AuthenticationTokenPool.getUserToken(token); + if (id != null) { + Material material = materialService.findMaterialById(id); + Map map = new HashMap<>(); + map.put("mcode", material.getCode()); + map.put("codeFlag", 1); + // 获取物料与条形码的对应关系 + Integer maindeparment = userToken.getMaindeparment(); + if (PublicConfig.roleAdminorgList.contains(maindeparment)) { + mv.addObject("display", "block"); + } else { + mv.addObject("display", "none"); + } + mv.addObject("record", materialService.findMaterialAndTypeById(id)); + } else { + throw new MyException("缺少必要参数!"); + } + return mv; + } + /** * 物料类型创建页面 * @@ -1116,6 +1183,59 @@ public class PageController { ModelAndView mv = new ModelAndView(); mv.setViewName("pages/depository/Inventory-view_back"); Inventory inventoryById = materialService.findInventoryById(id); + if (inventoryById != null) { + InventoryP inventory = new InventoryP(inventoryById); + List placeAndMaterialByDidAndMid = placeService.findPlaceAndMaterialByDidAndMid(inventory.getDepositoryId(), inventoryById.getMid()); + for (MaterialAndPlaceForViewP materialAndPlaceForViewP : placeAndMaterialByDidAndMid) { + double quantity = materialAndPlaceForViewP.getInventory() / 100.0; + materialAndPlaceForViewP.setInventory(quantity); + materialAndPlaceForViewP.setAmount(ObjectFormatUtil.multiply(inventory.getPrice(),quantity)); + } + inventory.setMaterialAndPlaceList(placeAndMaterialByDidAndMid); + List splitInfoByMid = splitUnitService.findSplitInfoByMid(inventoryById.getMid()); + inventory.setSplitInfoList(splitInfoByMid); + + mv.addObject("record", inventory); + String userAgent = request.getHeader("user-agent"); + String token = request.getHeader("user-token"); + if (token == null) { + token = (String) request.getSession().getAttribute("userToken"); + } + UserByPort userToken = AuthenticationTokenPool.getUserToken(token); + Integer maindeparment = userToken.getMaindeparment(); + if (PublicConfig.roleAdminorgList.contains(maindeparment)) { + mv.addObject("display", "block"); + } else { + mv.addObject("display", "none"); + } + // 判断当前使用的设备为移动端还是pc端 + boolean b = DeviceUtil.checkAgentIsMobile(userAgent); + if (b) { + mv.setViewName("pages/depository/Inventory-view_mobile"); + } + return mv; + } else { + throw new MyException("缺少必要参数"); + } + } else { + throw new MyException("缺少必要参数"); + } + + } + + /** + * 跳转到库存详情页面 + * + * @param id 待查看库存 + * @param request + * @return + */ + @GetMapping("/InventoryViewBack") + public ModelAndView InventoryViewBack(Integer id, HttpServletRequest request) { + if (id != null) { + ModelAndView mv = new ModelAndView(); + mv.setViewName("pages/depository/Inventory-view"); + Inventory inventoryById = materialService.findInventoryById(id); if (inventoryById != null) { InventoryP inventory = new InventoryP(inventoryById); List placeByMidAndDid = placeService.findPlaceByMidAndDid(inventoryById.getId(), inventory.getDepositoryId()); @@ -2515,15 +2635,15 @@ public class PageController { split = new String[0]; } StringBuilder departmentHeadName = new StringBuilder(); - Map departmentHeadUserIcon = new HashMap<>(); + Map departmentHeadUserIcon = new HashMap<>(); String useAdminorgName = ""; for (String value : split) { if ("".equals(value)) { continue; } UserByPort departmenthead = PublicConfig.FindUserById(ObjectFormatUtil.toInteger(value), userKey, token); - String name = departmenthead.getMaindeparmentname()+"-"+departmenthead.getName(); - departmentHeadUserIcon.put(name,departmenthead.getIconphoto()); + String name = departmenthead.getMaindeparmentname() + "-" + departmenthead.getName(); + departmentHeadUserIcon.put(name, departmenthead.getIconphoto()); departmentHeadName.append(name).append(","); useAdminorgName = departmenthead.getMaindeparmentname(); } @@ -3666,7 +3786,7 @@ public class PageController { // 用于展示库存数据 @GetMapping("/toShowInventory") - public ModelAndView toShowInventory(@RequestParam Map param,HttpServletRequest request) { + public ModelAndView toShowInventory(@RequestParam Map param, HttpServletRequest request) { ModelAndView mv = new ModelAndView(); String token = request.getHeader("user-token"); String userKey = request.getHeader("user-key"); @@ -3677,8 +3797,8 @@ public class PageController { UserByPort userToken = AuthenticationTokenPool.getUserToken(token); if (param.containsKey("id")) { Integer maindeparment = userToken.getMaindeparment(); - if(PublicConfig.roleAdminorgList.contains(maindeparment)){ - mv.addObject("display","inline-block"); + if (PublicConfig.roleAdminorgList.contains(maindeparment)) { + mv.addObject("display", "inline-block"); } String type = param.get("type"); mv.addObject("id", param.get("id")); diff --git a/src/main/java/com/dreamchaser/depository_manage/pojo/InventoryP.java b/src/main/java/com/dreamchaser/depository_manage/pojo/InventoryP.java index d6c1f7cc..c34ff9aa 100644 --- a/src/main/java/com/dreamchaser/depository_manage/pojo/InventoryP.java +++ b/src/main/java/com/dreamchaser/depository_manage/pojo/InventoryP.java @@ -225,6 +225,9 @@ public class InventoryP { private List depositoryList; + private List materialAndPlaceList; + + public InventoryP(Integer id, Integer depositoryId, String mname, Integer quantity, Double price, String typeName) { this.id = id; this.mname = mname; @@ -242,15 +245,15 @@ public class InventoryP { this.price = inventory.getPrice(); // 单价 this.state = inventory.getState(); // 物料状态 this.amounts = inventory.getAmounts() / 100; // 总额 - this.unit = inventory.getUnit(); // 计量单位 - this.texture = inventory.getTexture(); // 材质 + this.unit = inventory.getUnit() == null ? "" : inventory.getUnit(); // 计量单位 + this.texture = inventory.getTexture() == null ? "" : inventory.getTexture(); // 材质 this.code = inventory.getCode(); // 存货编码 - this.version = inventory.getVersion(); // 规格型号 + this.version = inventory.getVersion() == null ? "" : inventory.getVersion(); // 规格型号 this.depositoryCode = inventory.getDepositoryCode(); // 仓库编码 this.depositoryId = inventory.getDepositoryId(); // 仓库id this.placeCode = inventory.getPlaceCode(); // 库位编码 this.productionPlace = inventory.getProductionPlace(); // 产地 - this.brand = inventory.getBrand(); // 品牌 + this.brand = inventory.getBrand() == null ? "" : inventory.getBrand(); // 品牌 this.remark = inventory.getRemark(); // 备注 this.shelfLifeForCalc = inventory.getShelfLife(); //保质期,用于计算 this.numberOfTemporary = inventory.getNumberOfTemporary(); // 临时数量(出库数量) @@ -258,6 +261,8 @@ public class InventoryP { this.placeKingdeeCode = inventory.getPlaceKingdeeCode(); // 库位编码(金蝶) this.depositoryName = inventory.getDepositoryName(); // 仓库名称 this.iremark = inventory.getIremark() == null ? "" : inventory.getIremark(); // 库存导入时填写的备注 + this.typeName = inventory.getTypeName(); // 物料类型名称 + this.typeId = inventory.getMaterialTypeId(); // 物料类型id } public InventoryP() { 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 91a79b06..f23b661c 100644 --- a/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java +++ b/src/main/java/com/dreamchaser/depository_manage/pojo/MaterialAndPlaceForViewP.java @@ -90,6 +90,11 @@ public class MaterialAndPlaceForViewP { */ private String mname; + /** + * 对应总额 + */ + private Double amount; + /** * 盘点数量 diff --git a/src/main/java/com/dreamchaser/depository_manage/service/PlaceService.java b/src/main/java/com/dreamchaser/depository_manage/service/PlaceService.java index 5268ed05..acc6d7bd 100644 --- a/src/main/java/com/dreamchaser/depository_manage/service/PlaceService.java +++ b/src/main/java/com/dreamchaser/depository_manage/service/PlaceService.java @@ -118,6 +118,9 @@ public interface PlaceService { */ List findPlaceByMidAndDid(Integer mid, Integer depositoryId); + + + /** * 根据库位获取当前库位所存储的物料 */ 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 c279753e..facecc0f 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 @@ -186,6 +186,26 @@ public class MaterialServiceImpl implements MaterialService { map.put("producedDate", producedDate); } map.put("updateTime", System.currentTimeMillis()); + if (map.containsKey("unit")) { + // 如果存在计量单位字段 + String unit = (String) map.get("unit"); + if (!"".equals(unit)) { + Integer id = ObjectFormatUtil.toInteger(map.get("id")); + Material materialById = materialMapper.findMaterialById(id); + if (!unit.equals(materialById.getUnit())) { + // 如果更改了计量单位 + Map paramForSplitInfo = new HashMap<>(); + paramForSplitInfo.put("oldUnit", materialById.getUnit()); + paramForSplitInfo.put("mid", materialById.getId()); + // 获取当前物料存在的拆单 + SplitInfo splitInfo = splitUnitMapper.findSplitInfoByMidAndUnit(paramForSplitInfo); + if (splitInfo != null) { + splitInfo.setOldUnit(unit); + splitUnitMapper.updateSplitInfo(splitInfo); + } + } + } + } return materialMapper.updateMaterial(map); } @@ -1610,7 +1630,7 @@ public class MaterialServiceImpl implements MaterialService { // 新增对应关系 Map insertAfter = new HashMap<>(); insertAfter.put("mid", id); - insertAfter.put("quantity", (int)(quantity * 100)); + insertAfter.put("quantity", (int) (quantity * 100)); insertAfter.put("pid", toPlaceId); // 添加对应关系 placeService.addMaterialOnPlace(insertAfter); diff --git a/src/main/java/com/dreamchaser/depository_manage/utils/ObjectFormatUtil.java b/src/main/java/com/dreamchaser/depository_manage/utils/ObjectFormatUtil.java index 801c57ac..92d14574 100644 --- a/src/main/java/com/dreamchaser/depository_manage/utils/ObjectFormatUtil.java +++ b/src/main/java/com/dreamchaser/depository_manage/utils/ObjectFormatUtil.java @@ -62,5 +62,11 @@ public class ObjectFormatUtil { BigDecimal bd2 = new BigDecimal(Double.toString(d2)); return bd1.multiply(bd2).doubleValue(); } + // double 类型相除,保留位数 + public static double divide(double a, double b, int scale){ + BigDecimal bd1 = new BigDecimal(Double.toString(a)); + BigDecimal bd2 = new BigDecimal(Double.toString(b)); + return bd1.divide(bd2, scale, BigDecimal.ROUND_HALF_UP).doubleValue(); + } } diff --git a/src/main/resources/static/css/public.css b/src/main/resources/static/css/public.css index afc7e527..cbcb7e06 100644 --- a/src/main/resources/static/css/public.css +++ b/src/main/resources/static/css/public.css @@ -309,5 +309,17 @@ body { display: inline-block; } +.mySelect{ + width: 80%; + text-align: center; + height: 30px; + border-color: #d2d2d2; + border-radius: 5px; + padding: 0 5px; +} - +.myOption{ + background-color: #f8f8f8; + color: #16b777; + font-weight: 700; +} \ No newline at end of file diff --git a/src/main/resources/static/js/stockTaking/stockTakingForLocationTable.js b/src/main/resources/static/js/stockTaking/stockTakingForLocationTable.js index 4c9e5a34..0c20e5e6 100644 --- a/src/main/resources/static/js/stockTaking/stockTakingForLocationTable.js +++ b/src/main/resources/static/js/stockTaking/stockTakingForLocationTable.js @@ -339,7 +339,7 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { let req = {}; req.depositoryId = depositoryId; req.placeId = placeId; - table.reload('currentTableForLocation', { + table.reloadData('currentTableForLocation', { url: '/material/findInventoryForStockTaking', page: { curr: 1 diff --git a/src/main/resources/static/js/stockTaking/stockTakingForMaterial.js b/src/main/resources/static/js/stockTaking/stockTakingForMaterial.js index 5c60d131..af346a9e 100644 --- a/src/main/resources/static/js/stockTaking/stockTakingForMaterial.js +++ b/src/main/resources/static/js/stockTaking/stockTakingForMaterial.js @@ -126,7 +126,7 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () { updateTableShowForMaterial = function () { let req = {}; req.mid = $("#mid").val(); - table.reload('currentTableForMaterial', { + table.reloadData('currentTableForMaterial', { url: '/material/findMaterialByConditionForStockTaking', page: { curr: 1 diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 49633835..265268d7 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -30,8 +30,8 @@ @@ -74,7 +74,7 @@
  • -
  • +
  • diff --git a/src/main/resources/templates/pages/BusinessType/businesstype_out.html b/src/main/resources/templates/pages/BusinessType/businesstype_out.html index 95a58403..d470311d 100644 --- a/src/main/resources/templates/pages/BusinessType/businesstype_out.html +++ b/src/main/resources/templates/pages/BusinessType/businesstype_out.html @@ -141,7 +141,7 @@ req.state = data.state; } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/businessType/findBusinessType', page: { curr: 1 @@ -198,7 +198,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/businessType/findBusinessType', page: { curr: 1 @@ -231,7 +231,7 @@ content: '/businessTypeEdit?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/businessType/findBusinessType', page: { curr: 1 @@ -288,7 +288,7 @@ content: '/businessTypeEdit?id=' + obj.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/businessType/findBusinessType', page: { curr: 1 @@ -326,7 +326,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/businessType/findBusinessType', page: { curr: 1 diff --git a/src/main/resources/templates/pages/application/application-out_min.html b/src/main/resources/templates/pages/application/application-out_min.html index e42c30e5..904c05db 100644 --- a/src/main/resources/templates/pages/application/application-out_min.html +++ b/src/main/resources/templates/pages/application/application-out_min.html @@ -111,7 +111,7 @@ fixed: false, content: '/scanQrCodeByOut?id=' + data.id, end: function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/ApplicationOutMinByDid', page: { curr: 1 diff --git a/src/main/resources/templates/pages/application/application_multi.html b/src/main/resources/templates/pages/application/application_multi.html index 632b67e9..9a39e10d 100644 --- a/src/main/resources/templates/pages/application/application_multi.html +++ b/src/main/resources/templates/pages/application/application_multi.html @@ -248,7 +248,7 @@ icon: 0, time: 1000 }, function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicant_multi_create', page: { curr: 1 @@ -263,7 +263,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicant_multi_create', page: { curr: 1 diff --git a/src/main/resources/templates/pages/authorization/depositoryOpen.html b/src/main/resources/templates/pages/authorization/depositoryOpen.html index 774c7d57..f08a63a0 100644 --- a/src/main/resources/templates/pages/authorization/depositoryOpen.html +++ b/src/main/resources/templates/pages/authorization/depositoryOpen.html @@ -102,7 +102,7 @@ }); } else { - table.reload('currentTableForUser', { + table.reloadData('currentTableForUser', { url: '/sys/findUsers', page: { curr: 1 @@ -195,7 +195,7 @@ req.number = data.number; } //执行搜索重载 - table.reload('currentTableForUser', { + table.reloadData('currentTableForUser', { url: '/sys/findUsers', page: { curr: 1 diff --git a/src/main/resources/templates/pages/company/company-out.html b/src/main/resources/templates/pages/company/company-out.html index 5accf42d..ad306427 100644 --- a/src/main/resources/templates/pages/company/company-out.html +++ b/src/main/resources/templates/pages/company/company-out.html @@ -139,7 +139,7 @@ } req.superior = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/companyByCondition', page: { curr: 1 diff --git a/src/main/resources/templates/pages/company/company-out_back.html b/src/main/resources/templates/pages/company/company-out_back.html index b9d7cd26..176d63fe 100644 --- a/src/main/resources/templates/pages/company/company-out_back.html +++ b/src/main/resources/templates/pages/company/company-out_back.html @@ -119,7 +119,7 @@ }); } else { - table.reload('currentTableForUser', { + table.reloadData('currentTableForUser', { url: '/sys/findUsers', page: { curr: 1 @@ -267,7 +267,7 @@ req.number = data.number; } //执行搜索重载 - table.reload('currentTableForUser', { + table.reloadData('currentTableForUser', { url: '/sys/findUsers', page: { curr: 1 diff --git a/src/main/resources/templates/pages/company/companyByParentId.html b/src/main/resources/templates/pages/company/companyByParentId.html index a98efa0e..1b833ca6 100644 --- a/src/main/resources/templates/pages/company/companyByParentId.html +++ b/src/main/resources/templates/pages/company/companyByParentId.html @@ -141,7 +141,7 @@ } req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/companyByCondition', page: { curr: 1 diff --git a/src/main/resources/templates/pages/constructionunit/constructionunit_out.html b/src/main/resources/templates/pages/constructionunit/constructionunit_out.html index fafc9df9..bd47a8b9 100644 --- a/src/main/resources/templates/pages/constructionunit/constructionunit_out.html +++ b/src/main/resources/templates/pages/constructionunit/constructionunit_out.html @@ -141,7 +141,7 @@ req.state = data.state; } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allConstructionUnit', page: { curr: 1 @@ -198,7 +198,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allConstructionUnit', page: { curr: 1 @@ -231,7 +231,7 @@ content: '/constructionUnitEdit?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allConstructionUnit', page: { curr: 1 @@ -288,7 +288,7 @@ content: '/constructionUnitEdit?id=' + obj.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allConstructionUnit', page: { curr: 1 @@ -326,7 +326,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allConstructionUnit', page: { curr: 1 diff --git a/src/main/resources/templates/pages/depository/Inventory-view_back.html b/src/main/resources/templates/pages/depository/Inventory-view_back.html index 5062e7ca..1ff795de 100644 --- a/src/main/resources/templates/pages/depository/Inventory-view_back.html +++ b/src/main/resources/templates/pages/depository/Inventory-view_back.html @@ -10,153 +10,118 @@ + - -
    - - - -
    - -
    - -
    -
    -
    - -
    - + +
    +
    +
    +
    +
    物料基本信息 + +
    +
    + + + + + + + + + + + + + + + + + + +
    物料编码:物料名称:规格型号:物料材质:
    物料品牌:物料类型: + 计量单位: + + + 物料单价:
    物料备注:
    +
    +
    +
    +
    +
    +
    库存基本信息
    +
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - -
    - -
    -
    -
    - -
    - + + + - - -
    - -
    - -
    -
    -
    - -
    - - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - +
    + + + + + + + + + + + + + + + + - + +
    所属仓库:备注:
    所处库位计量单位对应数量金额
    + + + + + + + + +
    +
    +
    - +
    +
    xs:6/12 | md:12/12
    +
    +
    @@ -169,20 +134,26 @@ } - function updateInventoryRemark(){ + function updateInventoryRemark() { } + function changePlaceCode() { + } + function changeUnitForQuantity() { + + } var barCode = []; var flag = false; - layui.use(['form', 'laydate', 'miniTab'], function () { + layui.use(['form', 'laydate', 'miniTab', 'util'], function () { var form = layui.form, laydate = layui.laydate, $ = layui.$, + util = layui.util, miniTab = layui.miniTab; let iremark = $("#iremark").val(); miniTab.listen(); @@ -204,6 +175,27 @@ }); }); + util.on('lay-on', { + 'editMaterialInfo': function (obj) { + let mid = $(obj).attr("mid"); + layer.open({ + type: 2, + offset: 'r', + anim: 'slideLeft', // 从右往左 + area: ['40%', '100%'], + shade: 0.1, + title: "物料详情", + shadeClose: true, + id: 'ID-demo-layer-direction-r', + content: '/materialEditForInventory?id=' + mid, + end: function () { + location.reload(); + } + + }); + } + }); + applicationOut = function () { var index = layer.open({ title: '出库申请', @@ -234,15 +226,14 @@ layer.full(index); }); return false; - } - + }; - updateInventoryRemark = function() { + updateInventoryRemark = function () { let id = $("#id").val(); let newIremark = $("#iremark").val(); - let index = layer.confirm('确认更改备注?', { - btn: ['确定','取消'] //按钮 - }, function(){ + let index = layer.confirm('确认更改备注?', { + btn: ['确定', '取消'] //按钮 + }, function () { let req = {}; req.id = id; req.remark = newIremark; @@ -254,7 +245,7 @@ contentType: "application/json;charset=utf-8", success: function (data) { if (data.status >= 300) { - layer.msg(data.statusInfo.message,{ + layer.msg(data.statusInfo.message, { icon: 5,//失败的表情 time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { @@ -270,11 +261,70 @@ } } }); - }, function(){ + }, function () { $("#iremark").val(iremark); }); + }; + + // 用于更改同一仓库下的库位 + changePlaceCode = function (obj) { + var id = $(obj).attr("id"); + // 当前点击行中的计量单位按钮 + let materialUnitObj = $("#materialUnit"+id+" option:selected"); + let unit = materialUnitObj.val(); + if (unit === -1 || unit === "-1") { + unit = materialUnitObj.text(); + } + unit = unit.trim(); + layer.open({ + title: '选择库位', + type: 2, + shade: 0.2, + maxmin: true, + shadeClose: true, + area: ['70%', '70%'], + content: '/selectPlaceByDepository?id=' + id + '&unit=' + unit, + success: function (layero, index) { + var children = layero.children(); + var content = $(children[1]); + var iframeChildren = $(content.children()); + content.css('height', '100%'); + iframeChildren.css('height', '100%'); + }, + end:function() { + location.reload(); + } + + }); + + }; + + /** + * 用于修改展示的库存数量 + * @param obj + */ + changeUnitForQuantity = function(obj) { + let materialUnitObj = $(obj); + let req = {}; + req.unit = materialUnitObj.val(); + let id = materialUnitObj.attr("id").split("materialUnit")[1].trim(); + req.id=id; + $.ajax({ + url: "/material/getQuantityForLocationAndUnit", + type: "post", + dataType: 'json', + data: JSON.stringify(req), + contentType: "application/json;charset=utf-8", + success: function (res) { + let data = res.data; + $("#quantity"+id).text(data.quantity); + $("#amounts"+id).text(data.amount); + } + }); + } + }); diff --git a/src/main/resources/templates/pages/depository/Inventory-view_mobile.html b/src/main/resources/templates/pages/depository/Inventory-view_mobile.html index 48372903..cda76a18 100644 --- a/src/main/resources/templates/pages/depository/Inventory-view_mobile.html +++ b/src/main/resources/templates/pages/depository/Inventory-view_mobile.html @@ -110,11 +110,16 @@
    -
    @@ -233,9 +238,7 @@ // 用于更改同一仓库下的库位 changePlaceCode = function (obj) { - var depositoryId = $("#depositoryId").val(); - var placeCode = $(obj).attr("code"); - var mid = $("#id").val(); + var id = $("#id").val(); // 当前点击行中的计量单位按钮 let unit = $("#unit").val(); if (unit === -1 || unit === "-1") { @@ -248,7 +251,7 @@ maxmin: true, shadeClose: true, area: ['70%', '70%'], - content: '/selectPlaceByDepository?depositoryId=' + depositoryId + '&mid=' + mid + '&placeCode=' + placeCode + '&unit=' + unit, + content: '/selectPlaceByDepository?id=' + id + '&unit=' + unit, success: function (layero, index) { var children = layero.children(); var content = $(children[1]); diff --git a/src/main/resources/templates/pages/depository/table-in.html b/src/main/resources/templates/pages/depository/table-in.html index 195965a5..a9302b30 100644 --- a/src/main/resources/templates/pages/depository/table-in.html +++ b/src/main/resources/templates/pages/depository/table-in.html @@ -220,7 +220,7 @@ } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicationInView', page: { curr: 1 @@ -277,7 +277,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicationInView', page: { curr: 1 diff --git a/src/main/resources/templates/pages/depository/table-out.html b/src/main/resources/templates/pages/depository/table-out.html index 18c10c3a..a70f6a95 100644 --- a/src/main/resources/templates/pages/depository/table-out.html +++ b/src/main/resources/templates/pages/depository/table-out.html @@ -285,6 +285,7 @@ flagForReload = false; let col = {field: 'price', title: '金额', minWidth: 150, sort: true}; cols.splice(6, 0, col); + // table.reloadData('currentTableId', {cols: [cols]}); table.reload('currentTableId', {cols: [cols]}); } @@ -322,7 +323,7 @@ req.version = data.version.trim(); } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicationOutView', page: { curr: 1 @@ -395,7 +396,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/depositoryRecord/applicationOutView', page: { curr: 1 diff --git a/src/main/resources/templates/pages/depository/table-stock.html b/src/main/resources/templates/pages/depository/table-stock.html index 0bf66584..ea4820c6 100644 --- a/src/main/resources/templates/pages/depository/table-stock.html +++ b/src/main/resources/templates/pages/depository/table-stock.html @@ -86,8 +86,10 @@
    @@ -97,8 +99,8 @@ - @@ -147,7 +149,7 @@ let reqForPublic = {}; - layui.use(['form', 'table', 'upload','util'], function () { + layui.use(['form', 'table', 'upload', 'util'], function () { var $ = layui.jquery, form = layui.form, upload = layui.upload, @@ -206,20 +208,19 @@ {type: "checkbox", width: 50}, {field: "code", title: '存货编码', width: 150, templet: '#materialCode'}, {field: 'mname', width: 200, title: '物料名称'}, - {field: 'brand', width: 200, title: '品牌'}, + {field: 'brand', width: 200, title: '品牌',hide:true}, {field: 'version', width: 200, title: '规格型号'}, - {field: 'typeName', width: 200, title: '物料类型'}, + {field: 'typeName', width: 200, title: '物料类型',hide:true}, {field: "unit", title: '计量单位', width: 200, templet: '#changeUnit', align: "center"}, {field: 'quantity', width: 200, title: '数量'}, {field: 'depositoryName', width: 200, title: '仓库名称'}, {field: 'depositoryCode', width: 200, title: '仓库编码'}, - // {title: '所处库位', width: 200, templet: '#changePlace', align: "center"}, - {field: "placeKingdeeCode", title: '所处库位', width: 200, templet: '#changePlace', align: "center"}, + {title: '所处库位', width: 200, templet: '#changePlace', align: "center"}, {field: 'warningCount', width: 200, title: '待过期数量', sort: true}, {field: 'price', title: '单价', width: 200, sort: true}, {field: 'amounts', title: '总金额', width: 200, sort: true}, - {field: 'texture', width: 200, title: '材质',}, - {field: 'iremark', width: 200, title: '备注',}, + {field: 'texture', width: 200, title: '材质',hide:true}, + {field: 'iremark', width: 200, title: '备注',hide:true}, {title: '操作', minWidth: 250, toolbar: '#currentTableBar', align: "center"} ]; @@ -254,17 +255,16 @@ {type: "checkbox", width: 50}, {title: '存货编码', width: 150, templet: '#materialCode'}, {field: 'mname', width: 200, title: '物料名称'}, - {field: 'brand', width: 200, title: '品牌'}, + {field: 'brand', width: 200, title: '品牌', hide: true}, {field: 'version', width: 200, title: '规格型号'}, - {field: 'typeName', width: 200, title: '物料类型'}, + {field: 'typeName', width: 200, title: '物料类型', hide: true}, {field: "unit", title: '计量单位', width: 200, templet: '#changeUnit', align: "center"}, {field: 'quantity', width: 200, title: '数量'}, {field: 'depositoryName', width: 200, title: '仓库名称'}, - {field: 'depositoryCode', width: 200, title: '仓库编码'}, + {field: 'depositoryCode', width: 200, title: '仓库编码', hide: true}, {title: '所处库位', width: 200, templet: '#changePlace', align: "center"}, - {field: "placeKingdeeCode", title: '所处库位', width: 200, templet: '#changePlace', align: "center"}, - {field: 'warningCount', width: 200, title: '待过期数量', sort: true}, - {field: 'texture', width: 200, title: '材质',}, + {field: 'warningCount', width: 200, title: '待过期数量', sort: true, hide: true}, + {field: 'texture', width: 200, title: '材质', hide: true}, {field: 'iremark', width: 200, title: '备注',}, {title: '操作', minWidth: 250, toolbar: '#currentTableBar', align: "center"} ] @@ -283,10 +283,6 @@ } $.each(res['data'], function (i, j) { let jElement = j['warningCount']; - let placeCode = j['placeCode'].split(" "); - let placeKingdeeCode = j['placeKingdeeCode'].split(" "); - let depositoryId = j['depositoryId']; - let mid = j['id']; if (jElement !== null && jElement !== undefined) { let flag = (Number(jElement) !== 0); if (flag) { @@ -294,17 +290,6 @@ } } - // 所处库位 - var placeCodeItem = $("[lay-id='currentTableId'] tr:eq(" + (i + 1) + ")").children()[10]; - //计量单位 - // 用于库位的添加 - var aItem = placeCodeItem.childNodes[0]; - // 用于计量单位的添加 - for (let k = 0; k < placeKingdeeCode.length; k++) { - if (placeKingdeeCode[k] !== "") { - $(aItem).append('') - } - } }); } @@ -364,7 +349,7 @@ } reqForPublic = req; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 @@ -404,12 +389,12 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 }, - where:reqForPublic + where: reqForPublic }, 'data'); }); } else { @@ -418,12 +403,12 @@ time: 200, }, function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 }, - where:reqForPublic + where: reqForPublic }, 'data'); }) } @@ -454,7 +439,7 @@ table.on('tool(currentTableFilter)', function (obj) { let data = obj.data; - if (obj.event === 'changeUnit') { + if (obj.event === 'changeUnit') { let showQuantity = data.showQuantity; let btn = $("#btn_" + data.id); let clickNum = Number(btn.attr("click_num")); @@ -494,7 +479,7 @@ // 事件 util.on('lay-on', { - 'applicationIn': function(obj){ + 'applicationIn': function (obj) { let mid = $(obj).attr('mid'); let depositoryId = $(obj).attr('depository'); layer.open({ @@ -503,13 +488,13 @@ anim: 'slideLeft', // 从右往左 area: ['40%', '100%'], shade: 0.1, - title:"入库申请", + title: "入库申请", shadeClose: true, id: 'ID-demo-layer-direction-r', - content: '/application_in_back?mid=' +mid + "&depositoryId=" + depositoryId + content: '/application_in_back?mid=' + mid + "&depositoryId=" + depositoryId }); }, - 'applicationOut': function(obj){ + 'applicationOut': function (obj) { let code = $(obj).attr('code'); let depositoryId = $(obj).attr('depository'); layer.open({ @@ -518,10 +503,10 @@ anim: 'slideLeft', // 从右往左 area: ['40%', '100%'], shade: 0.1, - title:"出库申请", + title: "出库申请", shadeClose: true, id: 'ID-demo-layer-direction-r', - content: '/application_out_back?code=' + code+ "&depositoryId=" + depositoryId + content: '/application_out_back?code=' + code + "&depositoryId=" + depositoryId }); }, @@ -553,12 +538,12 @@ }, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 } - , where:reqForPublic + , where: reqForPublic }, 'data'); } }); @@ -690,12 +675,12 @@ layer.close(indexForMsg); layer.close(loading2); closeShowDataMessage(); - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 }, - where:reqForPublic + where: reqForPublic }, 'data'); }) }, @@ -766,12 +751,12 @@ content: '/InventoryView?id=' + obj.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventory', page: { curr: 1 }, - where:reqForPublic + where: reqForPublic }, 'data'); } }); diff --git a/src/main/resources/templates/pages/group/application_multi.html b/src/main/resources/templates/pages/group/application_multi.html index 132104eb..40743b20 100644 --- a/src/main/resources/templates/pages/group/application_multi.html +++ b/src/main/resources/templates/pages/group/application_multi.html @@ -155,7 +155,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/applicant_multi_create', page: { curr: 1 @@ -200,7 +200,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/applicant_multi_create', page: { curr: 1 @@ -243,7 +243,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/applicant_multi_create', page: { curr: 1 diff --git a/src/main/resources/templates/pages/group/group-add.html b/src/main/resources/templates/pages/group/group-add.html index c4153696..6a6b9011 100644 --- a/src/main/resources/templates/pages/group/group-add.html +++ b/src/main/resources/templates/pages/group/group-add.html @@ -196,7 +196,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -226,7 +226,7 @@ }, //1秒关闭(如果不配置,默认是3秒) function () { //do something - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -265,7 +265,7 @@ } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 diff --git a/src/main/resources/templates/pages/group/group-out.html b/src/main/resources/templates/pages/group/group-out.html index 8cd74cf5..9c21299f 100644 --- a/src/main/resources/templates/pages/group/group-out.html +++ b/src/main/resources/templates/pages/group/group-out.html @@ -196,7 +196,7 @@ } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -229,7 +229,7 @@ } else { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -259,7 +259,7 @@ area: ['100%', '100%'], content: '/group_edit?id='+data.id, end:function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -292,7 +292,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -325,7 +325,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -387,7 +387,7 @@ fixed: false, content: '/materialForGroup?mid='+mid+'&gid='+gid, end:function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -421,7 +421,7 @@ if (data.status >= 300) { layer.msg(data.statusInfo.message);//失败的表情 } else { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -451,7 +451,7 @@ fixed: false, content: '/group_add', end:function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -488,7 +488,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -527,7 +527,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 @@ -540,7 +540,7 @@ time: 200, }, function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findAllGroup', page: { curr: 1 diff --git a/src/main/resources/templates/pages/group/group_edit.html b/src/main/resources/templates/pages/group/group_edit.html index 6e13f8e7..cca6cf30 100644 --- a/src/main/resources/templates/pages/group/group_edit.html +++ b/src/main/resources/templates/pages/group/group_edit.html @@ -179,7 +179,7 @@ fixed: false, content: '/materialForGroup?mid=' + data.mid + '&gid=' + id, end: function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findGroupInfo', page: { curr: 1 @@ -211,7 +211,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findGroupInfo', page: { curr: 1 @@ -244,7 +244,7 @@ fixed: false, content: '/group_add?gid=' + id, end: function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findGroupInfo', page: { curr: 1 @@ -282,7 +282,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/group/findGroupInfo', page: { curr: 1 diff --git a/src/main/resources/templates/pages/material/material-out.html b/src/main/resources/templates/pages/material/material-out.html index 2f28090b..ea4ee6ec 100644 --- a/src/main/resources/templates/pages/material/material-out.html +++ b/src/main/resources/templates/pages/material/material-out.html @@ -249,7 +249,7 @@ flagForRelod = false; let col = {field: 'price', width: 150, title: '物料单价'}; cols.splice(6, 0, col); - table.reload('currentTableId', {cols: [cols]}); + table.reloadData('currentTableId', {cols: [cols]}); } } @@ -386,7 +386,7 @@ layer.close(indexForMsg); layer.close(loading2); closeShowDataMessage(); - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -444,7 +444,7 @@ layer.close(indexForMsg); layer.close(loading2); closeShowDataMessage(); - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -508,7 +508,7 @@ } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -565,7 +565,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -647,7 +647,7 @@ content: '/material_view?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 @@ -718,7 +718,7 @@ }) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -778,7 +778,7 @@ content: '/material_view?id=' + obj.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 diff --git a/src/main/resources/templates/pages/material/material-out_mobile.html b/src/main/resources/templates/pages/material/material-out_mobile.html index 7400d2a0..0616ac64 100644 --- a/src/main/resources/templates/pages/material/material-out_mobile.html +++ b/src/main/resources/templates/pages/material/material-out_mobile.html @@ -260,7 +260,7 @@ content: '/material_view?id=' + obj, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/material', page: { curr: 1 diff --git a/src/main/resources/templates/pages/material/material-view.html b/src/main/resources/templates/pages/material/material-view.html index fab744a3..0afa5e96 100644 --- a/src/main/resources/templates/pages/material/material-view.html +++ b/src/main/resources/templates/pages/material/material-view.html @@ -60,7 +60,7 @@
    + autocomplete="off" class="layui-input" readonly>
    @@ -318,9 +318,6 @@ }) } - $('body').on('click', '[data-refresh]', function () { - location.reload(); - }) }); diff --git a/src/main/resources/templates/pages/material/material-viewForInventoryEdit.html b/src/main/resources/templates/pages/material/material-viewForInventoryEdit.html new file mode 100644 index 00000000..9f1999e0 --- /dev/null +++ b/src/main/resources/templates/pages/material/material-viewForInventoryEdit.html @@ -0,0 +1,237 @@ + + + + + 分步表单 + + + + + + + + + + + + + + +
    + + + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + +
    + + +
    +
    +
    + +
    + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    + +
    +
    + + +
    +
    + + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/pages/materialBarCode/materialBarCode_out.html b/src/main/resources/templates/pages/materialBarCode/materialBarCode_out.html index 95271161..a4d97e5d 100644 --- a/src/main/resources/templates/pages/materialBarCode/materialBarCode_out.html +++ b/src/main/resources/templates/pages/materialBarCode/materialBarCode_out.html @@ -123,7 +123,7 @@ dataType: "json", contentType: "application/json;charset=utf-8", success: function (d) { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findMaterialBarCode', page: { curr: 1 @@ -187,7 +187,7 @@ strings = strings.filter(item => item && item.trim()); barCode = strings; notice(strings); - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findMaterialBarCode', page: { curr: 1 @@ -229,7 +229,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findMaterialBarCode', page: { curr: 1 diff --git a/src/main/resources/templates/pages/materialtype/materialTypeByParentId.html b/src/main/resources/templates/pages/materialtype/materialTypeByParentId.html index f7fc8acb..e54eef9e 100644 --- a/src/main/resources/templates/pages/materialtype/materialTypeByParentId.html +++ b/src/main/resources/templates/pages/materialtype/materialTypeByParentId.html @@ -138,7 +138,7 @@ } req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -195,7 +195,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -306,7 +306,7 @@ icon: 6,//成功的表情 time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -318,7 +318,7 @@ } }) }, function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -347,7 +347,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -383,7 +383,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 diff --git a/src/main/resources/templates/pages/materialtype/materialType_view.html b/src/main/resources/templates/pages/materialtype/materialType_view.html index f253e7b9..a8dc9e70 100644 --- a/src/main/resources/templates/pages/materialtype/materialType_view.html +++ b/src/main/resources/templates/pages/materialtype/materialType_view.html @@ -182,7 +182,7 @@ } req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -240,7 +240,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -375,7 +375,7 @@ layer.close(indexForMsg); layer.close(loading2); closeShowDataMessage(); - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -456,7 +456,7 @@ content: '/materialType_detail?id=' + data.oldId, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -486,7 +486,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -553,7 +553,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -590,7 +590,7 @@ }) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -647,7 +647,7 @@ icon: 6,//成功的表情 time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -659,7 +659,7 @@ } }) }, function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -688,7 +688,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 @@ -725,7 +725,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/materialType/materialTypeRecord', page: { curr: 1 diff --git a/src/main/resources/templates/pages/notice/notice-out.html b/src/main/resources/templates/pages/notice/notice-out.html index 2fd32fff..b37f42b0 100644 --- a/src/main/resources/templates/pages/notice/notice-out.html +++ b/src/main/resources/templates/pages/notice/notice-out.html @@ -164,7 +164,7 @@ req.endDate = data.endDate; } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -221,7 +221,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -259,7 +259,7 @@ content: '/noticeView?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -338,7 +338,7 @@ }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -377,7 +377,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -411,7 +411,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 diff --git a/src/main/resources/templates/pages/notice/notice-out_user.html b/src/main/resources/templates/pages/notice/notice-out_user.html index c22e8045..0c0e49c1 100644 --- a/src/main/resources/templates/pages/notice/notice-out_user.html +++ b/src/main/resources/templates/pages/notice/notice-out_user.html @@ -160,7 +160,7 @@ req.endDate = data.endDate; } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -191,7 +191,7 @@ content: '/noticeView?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -265,7 +265,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 @@ -299,7 +299,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行表格重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/notice/findAllNotices', page: { curr: 1 diff --git a/src/main/resources/templates/pages/post/post-out.html b/src/main/resources/templates/pages/post/post-out.html index b412d13a..761ce32d 100644 --- a/src/main/resources/templates/pages/post/post-out.html +++ b/src/main/resources/templates/pages/post/post-out.html @@ -148,7 +148,7 @@ req.organization = organization; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/company/allPostByOrganization', page: { curr: 1 diff --git a/src/main/resources/templates/pages/post/postRole.html b/src/main/resources/templates/pages/post/postRole.html index f435ee0f..d34f7133 100644 --- a/src/main/resources/templates/pages/post/postRole.html +++ b/src/main/resources/templates/pages/post/postRole.html @@ -187,7 +187,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('demo', { + table.reloadData('demo', { url: '/company/findPostRole?postId=' + postId+'&classes='+classes, page: { curr: 1 diff --git a/src/main/resources/templates/pages/split/split-out.html b/src/main/resources/templates/pages/split/split-out.html index 72ab1bf6..ccf5c241 100644 --- a/src/main/resources/templates/pages/split/split-out.html +++ b/src/main/resources/templates/pages/split/split-out.html @@ -177,7 +177,7 @@ } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -232,7 +232,7 @@ icon:5, time:1000 },function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -251,7 +251,7 @@ icon:0, time:1000 },function () { - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -266,7 +266,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -305,7 +305,7 @@ content: '/split_edit?id=' + data.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -385,7 +385,7 @@ }) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -492,7 +492,7 @@ }) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 @@ -524,7 +524,7 @@ content: '/split_edit?id=' + obj.id, end: function () { //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/split/split_out', page: { curr: 1 diff --git a/src/main/resources/templates/pages/stockTaking/stockTakingForTable.html b/src/main/resources/templates/pages/stockTaking/stockTakingForTable.html index 339ba089..ace149de 100644 --- a/src/main/resources/templates/pages/stockTaking/stockTakingForTable.html +++ b/src/main/resources/templates/pages/stockTaking/stockTakingForTable.html @@ -282,7 +282,7 @@ let req = {}; req.depositoryId = depositoryId; req.placeId = placeId; - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/material/findInventoryForStockTaking', page: { curr: 1 diff --git a/src/main/resources/templates/pages/user/table-user.html b/src/main/resources/templates/pages/user/table-user.html index 22404634..4fdbc31d 100644 --- a/src/main/resources/templates/pages/user/table-user.html +++ b/src/main/resources/templates/pages/user/table-user.html @@ -188,7 +188,7 @@ req.number = data.number; } //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/sys/findUsers', page: { curr: 1 diff --git a/src/main/resources/templates/pages/user/userRole.html b/src/main/resources/templates/pages/user/userRole.html index ad1defe0..23bd4dcc 100644 --- a/src/main/resources/templates/pages/user/userRole.html +++ b/src/main/resources/templates/pages/user/userRole.html @@ -186,7 +186,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('demo', { + table.reloadData('demo', { url: '/findUserRole?userId=' + userId+'&classes=1', page: { curr: 1 diff --git a/src/main/resources/templates/pages/user/userRoleForIn.html b/src/main/resources/templates/pages/user/userRoleForIn.html index 31878923..ba6c80f5 100644 --- a/src/main/resources/templates/pages/user/userRoleForIn.html +++ b/src/main/resources/templates/pages/user/userRoleForIn.html @@ -182,7 +182,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('demo', { + table.reloadData('demo', { url: '/findUserInRole?userId=' + userId+'&classes=1', page: { curr: 1 diff --git a/src/main/resources/templates/pages/warehouse/depository-out.html b/src/main/resources/templates/pages/warehouse/depository-out.html index 1aa17b6d..3a0e5c69 100644 --- a/src/main/resources/templates/pages/warehouse/depository-out.html +++ b/src/main/resources/templates/pages/warehouse/depository-out.html @@ -173,7 +173,7 @@ req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -222,7 +222,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -252,7 +252,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -312,7 +312,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -362,7 +362,7 @@ req = {}; req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -393,7 +393,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -430,7 +430,7 @@ }) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -503,7 +503,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -517,7 +517,7 @@ }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -551,7 +551,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -565,7 +565,7 @@ }, function () { // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -600,7 +600,7 @@ }, function () { // window.location='/findWareHouseByParentId?parentId=0'+parentId // 执行重加载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 @@ -631,7 +631,7 @@ let req = {}; req.parentId = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/repository/warehouseRecord', page: { curr: 1 diff --git a/src/main/resources/templates/pages/warehouse/warehouseByParentId.html b/src/main/resources/templates/pages/warehouse/warehouseByParentId.html index e4c3ed91..3092f7e8 100644 --- a/src/main/resources/templates/pages/warehouse/warehouseByParentId.html +++ b/src/main/resources/templates/pages/warehouse/warehouseByParentId.html @@ -181,7 +181,7 @@ } req.did = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/place/findPlace', page: { curr: 1 @@ -237,7 +237,7 @@ time: 500 //1秒关闭(如果不配置,默认是3秒) }); //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/place/findPlace', page: { curr: 1 @@ -288,7 +288,7 @@ req = {}; req.did = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/place/findPlace', page: { curr: 1 @@ -402,7 +402,7 @@ let req = {}; req.did = parentId; //执行搜索重载 - table.reload('currentTableId', { + table.reloadData('currentTableId', { url: '/place/findPlace', page: { curr: 1 diff --git a/target/classes/static/css/public.css b/target/classes/static/css/public.css index afc7e527..cbcb7e06 100644 --- a/target/classes/static/css/public.css +++ b/target/classes/static/css/public.css @@ -309,5 +309,17 @@ body { display: inline-block; } +.mySelect{ + width: 80%; + text-align: center; + height: 30px; + border-color: #d2d2d2; + border-radius: 5px; + padding: 0 5px; +} - +.myOption{ + background-color: #f8f8f8; + color: #16b777; + font-weight: 700; +} \ No newline at end of file diff --git a/target/classes/templates/index.html b/target/classes/templates/index.html index 49633835..265268d7 100644 --- a/target/classes/templates/index.html +++ b/target/classes/templates/index.html @@ -30,8 +30,8 @@ @@ -74,7 +74,7 @@
  • -
  • +
  • diff --git a/target/classes/templates/pages/depository/Inventory-view_mobile.html b/target/classes/templates/pages/depository/Inventory-view_mobile.html index 48372903..cda76a18 100644 --- a/target/classes/templates/pages/depository/Inventory-view_mobile.html +++ b/target/classes/templates/pages/depository/Inventory-view_mobile.html @@ -110,11 +110,16 @@
    -
    @@ -233,9 +238,7 @@ // 用于更改同一仓库下的库位 changePlaceCode = function (obj) { - var depositoryId = $("#depositoryId").val(); - var placeCode = $(obj).attr("code"); - var mid = $("#id").val(); + var id = $("#id").val(); // 当前点击行中的计量单位按钮 let unit = $("#unit").val(); if (unit === -1 || unit === "-1") { @@ -248,7 +251,7 @@ maxmin: true, shadeClose: true, area: ['70%', '70%'], - content: '/selectPlaceByDepository?depositoryId=' + depositoryId + '&mid=' + mid + '&placeCode=' + placeCode + '&unit=' + unit, + content: '/selectPlaceByDepository?id=' + id + '&unit=' + unit, success: function (layero, index) { var children = layero.children(); var content = $(children[1]); diff --git a/target/classes/templates/pages/material/material-view.html b/target/classes/templates/pages/material/material-view.html index fab744a3..0afa5e96 100644 --- a/target/classes/templates/pages/material/material-view.html +++ b/target/classes/templates/pages/material/material-view.html @@ -60,7 +60,7 @@
    + autocomplete="off" class="layui-input" readonly>
  • @@ -318,9 +318,6 @@ }) } - $('body').on('click', '[data-refresh]', function () { - location.reload(); - }) });