From 4d0ae22c1311f7d947c17ad986a5b1c91afd3ced Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期三, 02 七月 2025 14:06:19 +0800 Subject: [PATCH] 新增托盘号查询功能并优化异常处理在 `ITaskService.cs` 中添加了 `QueryExecutingConveyorLineTask` 方法,支持根据托盘号和下一地址查询输送线执行中的任务。更新了 `TaskService.cs` 中的方法实现,保留原有查询功能并增强查询逻辑。在 `CommonConveyorLine_GWJob.cs` 中修改了 `ConveyorLineOutFinish` 方法,整合新查询逻辑并清理了注释代码。同时,增加了异常处理机制,提升了代码的健壮性。 --- CodeManagement/BigScreenVue/src/views/indexs/left-bottom.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CodeManagement/BigScreenVue/src/views/indexs/left-bottom.vue b/CodeManagement/BigScreenVue/src/views/indexs/left-bottom.vue index 4d9f6e9..012dc73 100644 --- a/CodeManagement/BigScreenVue/src/views/indexs/left-bottom.vue +++ b/CodeManagement/BigScreenVue/src/views/indexs/left-bottom.vue @@ -306,9 +306,12 @@ }, async getData() { var rep1=await Getproductionvolume() - var rep=rep1.filter(it=>it.roadway.includes("JZ")) + console.log(rep1) + var rep=rep1.filter(it=>it.roadway.includes("CW")) + + // (1) 鎸夋棩鏈熷垎缁勬牳蹇冪畻娉� -const groupedData = rep.reduce((acc, item) => { + const groupedData = rep.reduce((acc, item) => { // 鎻愬彇鏃ユ湡閮ㄥ垎锛堟牸寮忥細YYYY-MM-DD锛� const dateKey = item.createDate.split(' ')[0]; // 鎴� item.createDate.substring(0,10) @@ -327,8 +330,7 @@ // (2) 杞崲涓烘帓搴忓悗鐨勬暟缁� const sortedGroups = Object.values(groupedData) - .sort((a, b) => new Date(b.date) - new Date(a.date)); // 闄嶅簭鎺掑垪 - + .sort((a, b) => new Date(b.date) - new Date(a.date)); // 闄嶅簭鎺掑垪// 闄嶅簭鎺掑垪 this.options = { backgroundColor: '#0a1256', @@ -526,7 +528,7 @@ symbol: "none", label: { normal: { - show: false, + show: true, } }, lineStyle: { -- Gitblit v1.9.3