UI-Project/src/views/UnLoadGlass/Landingindication.vue
@@ -83,8 +83,8 @@ const newItem = { content: itemData.item.content, fillColor: itemData.item.fillColor, width: itemData.item.width === "" ? "" : 10, height: itemData.item.height === "" ? "" : 90 width: itemData.item.width === 0 ? "" : 10, height: itemData.item.height === 0 ? "" : 90 }; if (index === 2 && itemData.item.width > 0) { @@ -115,22 +115,22 @@ //setInterval(fetchFlowCardId, 2000) // const showCustomAlert = (content) => { // var str="架号 : 111\n" + // "长 : 111\n" + // "宽 : 111\n" + // "厚 : 111\n"+ // "玻璃ID : 111\n"+ // "膜系 : 111\n"; const showCustomAlert = (content) => { var str="架号 : 111\n" + "长 : 111\n" + "宽 : 111\n" + "厚 : 111\n"+ "玻璃ID : 111\n"+ "膜系 : 111\n"; // Swal.fire({ // title: '玻璃信息', // html: '<pre>' + str + '</pre>', // customClass: { // popup: 'format-pre' // } // }); // }; Swal.fire({ title: '玻璃信息', html: '<pre>' + str + '</pre>', customClass: { popup: 'format-pre' } }); }; const showRectInfo = (rectInfo) => { const content = rectInfo.item.content; UI-Project/src/views/UnLoadGlass/Landingindicationtwo.vue
@@ -83,8 +83,8 @@ const newItem = { content: itemData.item.content, fillColor: itemData.item.fillColor, width: itemData.item.width === "" ? "" : 10, height: itemData.item.height === "" ? "" : 90 width: itemData.item.width === 0 ? "" : 10, height: itemData.item.height === 0 ? "" : 90 }; if (index === 2 && itemData.item.width > 0) { hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downworkstation/service/impl/DownWorkstationServiceImpl.java
@@ -76,20 +76,29 @@ List<Map<String, Object>> result = new ArrayList<>(); for (DownWorkstionAndDownGlassinfo downWorkstionAndDownGlassinfo : workstationList) { Map<String, Object> rack = new HashMap<>(); // 创建子项(item)对象 Map<String, Object> item = new HashMap<>(); item.put("height", downWorkstionAndDownGlassinfo.getTotalheight()); // 设置子项高度,根据实际情况设置 item.put("width", downWorkstionAndDownGlassinfo.getTotalwidth()); // 设置子项宽度,根据实际情况设置 item.put("fillColor", "yellow"); // 设置子项颜色 item.put("content", downWorkstionAndDownGlassinfo.getFlowCardId()); // 使用流程卡号作为子项内容 item.put("height", downWorkstionAndDownGlassinfo.getTotalheight()); item.put("width", downWorkstionAndDownGlassinfo.getTotalwidth()); item.put("fillColor", "yellow"); item.put("content", downWorkstionAndDownGlassinfo.getFlowCardId()); rack.put("item", item); // 将子项对象放入货架对象中 // 查询 DownGlassInfo 并添加到 item 中 MPJQueryWrapper<DownGlassInfo> glassInfoQueryWrapper = new MPJQueryWrapper<>(); glassInfoQueryWrapper.select("*"); // 查询所有列 glassInfoQueryWrapper.eq("flow_card_id", downWorkstionAndDownGlassinfo.getFlowCardId()); List<DownGlassInfo> downGlassInfoList = downGlassInfoMapper.selectList(glassInfoQueryWrapper); result.add(rack); // 将货架对象添加到结果列表中 //log.info("货架对象: {}", rack); if (!downGlassInfoList.isEmpty()) { item.put("downGlassInfoList", downGlassInfoList); } rack.put("item", item); result.add(rack); } log.info("result"+(result)); return result; // 返回最终结果 } hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/job/DownCacheGlassTask.java
@@ -143,6 +143,10 @@ return; } log.info("2、获取到的玻璃信息为{}", glassInfo); // if(glassInfo.getFlowCardId()=){ // // } //添加进片任务 查找空格 List<DownStorageCageDetails> list = downStorageCageService.selectCacheEmpty(); if(list.size()>0){