diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java b/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java index 7a291ce1..0106b5cb 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/mobilePort/controller/MobilePortController.java @@ -18,6 +18,110 @@ import java.util.HashMap; @RequestMapping("/api/info") public class MobilePortController { + /** + * 库区管理 + * @author 王闯 + * @date 2023/1/7 14:27 + * @param sch + * @return ActionResult + */ + @GetMapping("/areaManage/areaList") + @ApiOperation("移动端-库区管理-列表") + public ActionResult areaList(@RequestParam(name = "sch") String sch)throws IOException { + String data="[\n" + + " {\n" + + " \"areaCode\": \"库区CodeA\",\n" + + " \"time\": \"2022年12⽉18⽇\",\n" + + " \"areaName\": \"库区名称A\",\n" + + " \"warehouse\": \"矿产资源废钢贸易库\",\n" + + " \"createdBy\": \"创建⼈\",\n" + + " \"maximumInventory\": 2000,\n" + + " \"safetyStock\": 800,\n" + + " \"minimumStock\": 300,\n" + + " \"unit\": \"吨\",\n" + + " \"materialType\": 0,\n" + + " \"materialTotal\": 0,\n" + + " \"receiptQuantity\": 5000,\n" + + " \"deliveryQuantity\": 5000\n" + + " },\n" + + " {\n" + + " \"areaCode\": \"库区CodeA\",\n" + + " \"time\": \"2022年12⽉18⽇\",\n" + + " \"areaName\": \"库区名称A\",\n" + + " \"warehouse\": \"矿产资源废钢贸易库\",\n" + + " \"createdBy\": \"创建⼈\",\n" + + " \"maximumInventory\": 2000,\n" + + " \"safetyStock\": 800,\n" + + " \"minimumStock\": 300,\n" + + " \"unit\": \"吨\",\n" + + " \"materialType\": 0,\n" + + " \"materialTotal\": 0,\n" + + " \"receiptQuantity\": 5000,\n" + + " \"deliveryQuantity\": 5000\n" + + " }\n" + + "]"; + return ActionResult.success(JsonUtil.getJsonToJsonArray(data)); + } + /** + * 合同明细 + * @author 王闯 + * @date 2023/1/7 14:27 + * @param wareHouseName + * @return ActionResult + */ + @GetMapping("/warehouseManage/warehouseList") + @ApiOperation("移动端-仓库管理-列表") + public ActionResult warehouseList(@RequestParam(name = "wareHouseName") String wareHouseName)throws IOException { + String data="[\n" + + " {\n" + + " \"warehouseName\": \"矿产资源废钢贸易库\",\n" + + " \"warehouseType\": \"贸易虚拟库\",\n" + + " \"activeState\": \"激活\",\n" + + " \"company\": \"城市矿产\",\n" + + " \"warehouseLocation\": \"xxx省xxx市\",\n" + + " \"warehouseMaterialType\": 0,\n" + + " \"warehouseTotalQuantity\": 0,\n" + + " \"outboundTotalQuantity\": 71904,\n" + + " \"warehousingTotalAmount\": 71904\n" + + " },\n" + + " {\n" + + " \"warehouseName\": \"矿产资源废钢贸易库\",\n" + + " \"warehouseType\": \"贸易虚拟库\",\n" + + " \"activeState\": \"激活\",\n" + + " \"company\": \"城市矿产\",\n" + + " \"warehouseLocation\": \"xxx省xxx市\",\n" + + " \"warehouseMaterialType\": 0,\n" + + " \"warehouseTotalQuantity\": 0,\n" + + " \"outboundTotalQuantity\": 71904,\n" + + " \"warehousingTotalAmount\": 71904\n" + + " },\n" + + " {\n" + + " \"warehouseName\": \"矿产资源废钢贸易库\",\n" + + " \"warehouseType\": \"贸易虚拟库\",\n" + + " \"activeState\": \"激活\",\n" + + " \"company\": \"城市矿产\",\n" + + " \"warehouseLocation\": \"xxx省xxx市\",\n" + + " \"warehouseMaterialType\": 0,\n" + + " \"warehouseTotalQuantity\": 0,\n" + + " \"outboundTotalQuantity\": 71904,\n" + + " \"warehousingTotalAmount\": 71904\n" + + " },\n" + + " {\n" + + " \"warehouseName\": \"矿产资源废钢贸易库\",\n" + + " \"warehouseType\": \"贸易虚拟库\",\n" + + " \"activeState\": \"激活\",\n" + + " \"company\": \"城市矿产\",\n" + + " \"warehouseLocation\": \"xxx省xxx市\",\n" + + " \"warehouseMaterialType\": 0,\n" + + " \"warehouseTotalQuantity\": 0,\n" + + " \"outboundTotalQuantity\": 71904,\n" + + " \"warehousingTotalAmount\": 71904\n" + + " }\n" + + "]"; + return ActionResult.success(JsonUtil.getJsonToJsonArray(data)); + } + + /** * 合同文件列表 * @author 王闯 @@ -358,6 +462,7 @@ public class MobilePortController { map.put("goInfo",goInfo); + HashMap map2 = new HashMap<>(); map2.put("title","付款预警"); map2.put("titleColor","#F59A23");