UI-Project/src/views/UnLoadGlass/PrintFlow.vue
@@ -211,11 +211,11 @@ </tr> <tr> <td rowspan='2'>序号</td> <td rowspan='2'>编号</td> <td v-if="like!=null" rowspan="2">小片顺序</td> <td v-else style="display: none;" rowspan="2">小片顺序</td> <td rowspan='2'>宽*高</td> <td rowspan='2'>数量</td> <td rowspan='2'>落架数</td> <td rowspan='2'>面积</td> <td rowspan='2'>周长</td> <td rowspan='2'>半径</td> @@ -246,7 +246,7 @@ <tr v-for="(itemDatile,index) in item.detailList" :key="index"> <td>{{ itemDatile.order_number }}</td> <!-- <td>{{ itemDatile.s01Value }}</td> --> <td>{{ itemDatile.s01Value }}</td> <td v-if="like=='1'">{{ itemDatile.technology_number }}</td> <td v-else style="display: none"></td> <td>{{ itemDatile.child_width }}</td> @@ -254,10 +254,9 @@ <!-- <el-input v-model="itemDatile.quantity" style="border: none" @keyup="handleSummary()"></el-input> --> {{ itemDatile.quantity }} </td> <td class="item" style="width: 5%;height: 100%;"> <!-- <el-input v-model="itemDatile.quantity" style="border: none" @keyup="handleSummary()"></el-input> --> <!-- <td class="item" style="width: 5%;height: 100%;"> {{ itemDatile.quantity1 }} </td> </td> --> <td>{{ itemDatile.total_area }}</td> <td>{{ itemDatile.perimeter }}</td> <td>{{ itemDatile.bend_radius }}</td> hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/job/CacheGlassTask.java
@@ -557,7 +557,7 @@ if (endcell == Const.A10_OUT_TARGET_POSITION) { wrapper.innerJoin("(select glass_id, case when height <= width then width else height end as first_length, " + "case when width < height then width else height end as second_length from edg_storage_cage_details) t1 " + "on t.glass_id = t1.glass_id and (t1.first_length >= " + minOneFirstLength + " and t1.second_length >= " + minOneSecondLength); "on t.glass_id = t1.glass_id and (t1.first_length >= " + minOneFirstLength + " and t1.second_length >= " + minOneSecondLength + ")"); } else { wrapper.innerJoin("(select glass_id, case when height <= width then width else height end as first_length, " + "case when width < height then width else height end as second_length from edg_storage_cage_details) t1 " + hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/java/com/mes/job/PlcStorageCageTask.java
@@ -544,7 +544,7 @@ //1、获取任务表中相邻玻璃 List<EdgGlassTaskInfo> edgGlassTaskInfoList = edgGlassTaskInfoService.list(new LambdaQueryWrapper<EdgGlassTaskInfo>() .eq(EdgGlassTaskInfo::getLine, line) .apply("time >= (select time from edg_glass_task_info where glass_id = '" + glassId + "')") .apply("time >= (select time from edg_glass_task_info where glass_id = '" + glassId + "' and deleted = 0)") .orderByAsc(EdgGlassTaskInfo::getTime)); Assert.isFalse(CollectionUtils.isEmpty(edgGlassTaskInfoList), "识别玻璃信息未出现在尺寸表中,获取相邻两块玻璃失败"); //2、获取卧转立剩余宽度 hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downglassinfo/service/impl/DownGlassInfoServiceImpl.java
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -157,7 +158,8 @@ queryWrapper.eq("flow_card_id", downGlassInfo.getFlowCardId()) .eq("layer", downGlassInfo.getLayer()) .select("flow_card_id", "layer", "width", "height", "filmsid", "thickness", "glass_type", "COUNT(*) AS quantity") .groupBy("flow_card_id", "layer", "width", "height", "filmsid", "thickness", "glass_type"); .groupBy("flow_card_id", "layer", "width", "height", "filmsid", "thickness", "glass_type","id") .orderByAsc("id"); List<Map<String, Object>> resultList = baseMapper.selectMaps(queryWrapper); log.info("MES落架数据:{}", resultList); @@ -165,17 +167,36 @@ log.info("流程卡头部数据:{}", projectInfo); List<Map<String, Object>> flowCardInfo = flowCardService.selectFlowCard(downGlassInfo.getFlowCardId(), downGlassInfo.getLayer()); log.info("流程卡玻璃数据:{}", flowCardInfo); for (Map<String, Object> row : flowCardInfo) { int order_number = (int) row.get("order_number"); int technology_number = (int) row.get("technology_number"); for (Map<String, Object> row : resultList) { int glass_type = (int) row.get("glass_type"); int layer = (int) row.get("layer"); Long quantity1 = (Long) row.get("quantity"); for (Map<String, Object> row1 : resultList) { int glass_type = (int) row1.get("glass_type"); int layer = (int) row1.get("layer"); for (Map<String, Object> row1 : flowCardInfo) { int order_number = (int) row1.get("order_number"); int technology_number = (int) row1.get("technology_number"); String child_width = (String) row1.get("child_width"); Long quantity = (Long) row1.get("quantity"); BigDecimal total_area = (BigDecimal) row1.get("total_area"); String separation = (String) row1.get("separation"); String perimeter = (String) row1.get("perimeter"); BigDecimal width = (BigDecimal) row1.get("width"); String other_columns = (String) row1.get("other_columns"); String remarks = (String) row1.get("remarks"); BigDecimal height = (BigDecimal) row1.get("height"); if (order_number == glass_type && technology_number == layer) { row.put("quantity1", quantity); // row.put("quantity1", quantity1); // row.put("quantity", quantity); row.put("order_number", order_number); row.put("technology_number", technology_number); row.put("child_width", child_width); row.put("total_area", total_area); row.put("separation", separation); row.put("perimeter", perimeter); row.put("width", width); row.put("other_columns", other_columns); row.put("remarks", remarks); row.put("height", height); } } } @@ -183,7 +204,7 @@ List<Map<String, List<Map<String, Object>>>> listMap = new ArrayList<>(); Map<String, List<Map<String, Object>>> result = new HashMap<>(); result.put("detail", projectInfo); result.put("detailList", flowCardInfo); result.put("detailList", resultList); for (Map<String, Object> row : projectInfo) { String order_number = (String) row.get("process"); String[] processes = order_number.split("->");