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-two.vue | 69 +++++++++++++---------------------
1 files changed, 26 insertions(+), 43 deletions(-)
diff --git a/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue b/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
index 8c14a2d..04e85f1 100644
--- a/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
+++ b/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
@@ -7,7 +7,7 @@
-->
<template>
<div id="name" style="width: 100%; height: 100%">
- <Echart :options="options" style="width: 100%; height: 100%"></Echart>
+ <Echart :options="options2" style="width: 100%; height: 100%"></Echart>
</div>
</template>
@@ -23,7 +23,7 @@
return {
pageflag: true,
myChart: {},
- options: {},
+ options2: {},
};
},
filters: {
@@ -101,7 +101,8 @@
}
-this.options = {
+this.options1 = {
+
backgroundColor: '#021228',
title: {
text: '鎶ヨ鎬绘暟',
@@ -206,39 +207,22 @@
},
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 ProductionStock();
+ var rep=await ProductionStock();
+ var rep1=0;
+ for(var items of rep){
+ if(items.areaCode.includes("CW")){
+
+ rep1+=items.items.length
+ }
+ }
+
+ console.log(rep1)
+
+
let dataPie = [
{
- value: 430,
- name: '搴撳瓨浜у搧'
+ value: parseInt(rep1) ,
+ name: '浠婃棩寰呭嚭瀹炵洏鎬绘暟'
},
];
let colorPie = ['#173852'];
@@ -252,7 +236,6 @@
itemStyle: {
normal: {
borderWidth: 50,
-
borderColor: colorPie[i],
}
@@ -285,10 +268,10 @@
}
-this.options = {
+this.options2 = {
title: {
- text: '浜у搧鎬绘暟',
- subtext: '430',
+ text: '浠婃棩寰呭嚭瀹炵洏鎬绘暟',
+ subtext:parseInt(rep1),
textStyle: {
color: '#00b5f3',
fontSize: 12,
@@ -309,7 +292,7 @@
formatter: "{a}锛歿b} <br/>鍗犳瘮锛歿d}%"
},
legend: {
- data: ['搴撳瓨浜у搧'],
+ data: ['浠婃棩寰呭嚭瀹炵洏鎬绘暟'],
icon: 'vertical',
right: '1%',
top: 'center',
@@ -346,16 +329,16 @@
{
name: '',
type: 'pie',
- clockWise: false, //椤烘椂鍔犺浇
- hoverAnimation: false, //榧犳爣绉诲叆鍙樺ぇ
+ clockWise: true, //椤烘椂鍔犺浇
+ hoverAnimation: true, //榧犳爣绉诲叆鍙樺ぇ
center: ['40%', '50%'],
radius: ['80%', '81%'],
tooltip: {
- show: false
+ show: true
},
label: {
normal: {
- show: false
+ show: true
}
},
data: baseDataWrap
--
Gitblit v1.9.3