From 04b4e2ca4bbbc147036a0bf15ce0b8b1c45cc74b Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期六, 11 十月 2025 16:26:22 +0800
Subject: [PATCH] 新增设备状态上传与包装站台换型功能在CommonConveyorLine_BZJob.cs和CommonConveyorLine_GWJob.cs中新增对信号状态判断逻辑。 在 ConfigConst.cs`中新增常量 EqptRun,用于设备状态上传。新增 EqptRunDTO类,支持设备运行状态的数据传输。在 IAgingInOrOutInputService.cs中定义 Change方法接口,并在AgingInOrOutInputService.cs中实现设备型号修改逻辑。优化 Dt_TaskService.cs中的异常电芯处理、组盘信息获取、库存查询逻辑,并新增包装站台换型功能。 - 增强日志记录,便于问题排查。
---
CodeManagement/BigScreenVue/src/views/indexs/station-one.vue | 62 +++++++++---------------------
1 files changed, 19 insertions(+), 43 deletions(-)
diff --git a/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue b/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue
index eaa6e13..6882625 100644
--- a/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue
+++ b/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue
@@ -11,7 +11,7 @@
<div class="user_Overview_nums allnum ">
<dv-digital-flop :config="inboundConfig" style="width:100%;height:100%;" />
</div>
- <p>鎴愬搧鍏ュ簱</p>
+ <p>瀹炴鍏ュ簱</p>
<br>
<!-- <p>{{stationstate[0].station_state}}</p> -->
<!-- <p v-if="stationstate[0].station_state == '妫�淇腑'">{{stationstate[0].station_checkName}}</p> -->
@@ -20,7 +20,7 @@
<div class="user_Overview_nums online">
<dv-digital-flop :config="outboundConfig" style="width:100%;height:100%;" />
</div>
- <p>鎴愬搧鍑哄簱</p>
+ <p>瀹炴鍑哄簱</p>
<br>
<!-- <p>{{stationstate[1].station_state}}</p> -->
<!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> -->
@@ -29,7 +29,7 @@
<div class="user_Overview_nums offline">
<dv-digital-flop :config="backConfig" style="width:100%;height:100%;" />
</div>
- <p>鎴愬搧鍥炴</p>
+ <p>绌烘鍏ュ簱</p>
<br>
<!-- <p>{{stationstate[1].station_state}}</p> -->
<!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> -->
@@ -38,7 +38,7 @@
<div class="user_Overview_nums laramnum">
<dv-digital-flop :config="surplusConfig" style="width:100%;height:100%;" />
</div>
- <p>鎴愬搧閫�搴�</p>
+ <p>绌烘鍑哄簱</p>
<br>
<!-- <p>{{stationstate[1].station_state}}</p> -->
<!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> -->
@@ -70,6 +70,7 @@
<script>
import { currentGET } from 'api/modules'
import {Floorfault} from "@/api/http.js"
+
let style = {
fontSize: 24
}
@@ -86,8 +87,8 @@
stationstate:[],
pageflag: true,
timer: null,
- backConfig: { //鎴愬搧鍥炴
- number: [9999],
+ backConfig: { //绌烘鍏ュ簱
+ number: [50],
content: '{nt}',
style: {
...style,
@@ -147,51 +148,24 @@
},
async getData() {
this.pageflag = true;
- // currentGET("big2").then((res) => {
- // if (!this.timer) {
- // console.log("璁惧鎬昏2", res);
- // }
- // if (res.success) {
- // this.userOverview = res.data;
- // this.onlineconfig = {
- // ...this.onlineconfig,
- // number: [1]
- // }
- // this.config = {
- // ...this.config,
- // number: [7]
- // }
- // this.offlineconfig = {
- // ...this.offlineconfig,
- // number: [4]
- // }
- // this.laramnumconfig = {
- // ...this.laramnumconfig,
- // number: [10]
- // }
- // this.switper();
- // } else {
- // this.pageflag = false;
- // this.$Message.warning(res.msg);
- // }
- // });
- var rep = await Floorfault();
-
+
+ var rep1 = await Floorfault();
+ var rep=rep1.filter(it=>it.roadway.includes("CW"))
+
+
this.inboundConfig={
- ...this.inboundConfig,
- number: [rep.inboundCount]
+ number: [rep.filter(task => task.taskType === "鍏ュ簱").length]
}
this.outboundConfig={
- ...this.outboundConfig,
- number: [rep.outboundCount]
+ number: [rep.filter(task => task.taskType === "鍑哄簱").length]
}
this.backConfig={
...this.backConfig,
- number: [rep.backboundCount]
+ number: [rep.filter(task => task.taskType === "绌烘墭鐩樺叆搴�").length]
}
this.surplusConfig={
...this.surplusConfig,
- number: [rep.surplusCount]
+ number: [rep.filter(task => task.taskType === "绌烘墭鐩樺嚭搴�").length]
}
// this.onlineconfig = {
// ...this.onlineconfig,
@@ -213,7 +187,9 @@
},
//杞
switper() {
- if (this.timer) {
+
+
+ if (this.timer) {
return
}
let looper = (a) => {
--
Gitblit v1.9.3