From bd36da9f3daa0c326b9c954f920c97b4a61d5fce Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 05 八月 2026 17:57:48 +0800
Subject: [PATCH] feat(bi): 添加BI图表配置和可视化功能
---
src/views/mes/dv/machinery/data.ts | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/src/views/mes/dv/machinery/data.ts b/src/views/mes/dv/machinery/data.ts
index 4dbb6a0..8b39782 100644
--- a/src/views/mes/dv/machinery/data.ts
+++ b/src/views/mes/dv/machinery/data.ts
@@ -113,6 +113,29 @@
rules: z.number().default(MesDvMachineryStatusEnum.STOP),
},
{
+ fieldName: 'productionEfficiency',
+ label: '鐢熶骇鏁堢巼',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 2,
+ placeholder: '璇疯緭鍏ョ敓浜ф晥鐜�(姣忓皬鏃�)',
+ },
+ },
+ {
+ fieldName: 'conveyorBelt',
+ label: '浼犻�佸饱甯�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 0,
+ placeholder: '璇疯緭鍏ヤ紶閫佸饱甯︽暟閲�',
+ },
+ help: '2浠h〃鍙屽�嶆晥鐜�',
+ },
+ {
fieldName: 'specification',
label: '瑙勬牸鍨嬪彿',
component: 'Input',
@@ -129,7 +152,7 @@
disabled: true,
format: 'YYYY-MM-DD HH:mm:ss',
showTime: true,
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
dependencies: {
triggerFields: ['id'],
@@ -145,7 +168,7 @@
disabled: true,
format: 'YYYY-MM-DD HH:mm:ss',
showTime: true,
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
dependencies: {
triggerFields: ['id'],
@@ -233,6 +256,8 @@
props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
},
},
+ { field: 'productionEfficiency', title: '鐢熶骇鏁堢巼(/h)', width: 120 },
+ { field: 'conveyorBelt', title: '浼犻�佸饱甯�', width: 100 },
{
field: 'lastCheckTime',
title: '鏈�杩戠偣妫�鏃堕棿',
--
Gitblit v1.9.3