Browse Source

修改移动端库存查询跳转到入库申请页面

lwx_dev
erdanergou 3 years ago
parent
commit
23b9f51de2
  1. 6
      src/main/java/com/dreamchaser/depository_manage/controller/PageController.java

6
src/main/java/com/dreamchaser/depository_manage/controller/PageController.java

@ -1049,6 +1049,12 @@ public class PageController {
List<SplitInfo> splitInfoByMid = splitUnitService.findSplitInfoByMid(inventoryById.getMid());
inventory.setSplitInfoList(splitInfoByMid);
mv.addObject("record", inventory);
String userAgent = request.getHeader("user-agent");
// 判断当前使用的设备为移动端还是pc端
boolean b = DeviceUtil.checkAgentIsMobile(userAgent);
if (b) {
mv.setViewName("pages/depository/Inventory-view_mobile");
}
return mv;
} else {
throw new MyException("缺少必要参数");

Loading…
Cancel
Save