From f81a415c710c7306be428c03dd447350479610d5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 29 七月 2026 16:54:33 +0800
Subject: [PATCH] 银川 1.设备台账添加字段

---
 src/views/mes/dv/machinery/data.ts |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletions(-)

diff --git a/src/views/mes/dv/machinery/data.ts b/src/views/mes/dv/machinery/data.ts
index ef002c5..5be398e 100644
--- a/src/views/mes/dv/machinery/data.ts
+++ b/src/views/mes/dv/machinery/data.ts
@@ -15,7 +15,7 @@
 
 import { z } from '#/adapter/form';
 import { generateAutoCode } from '#/api/mes/md/autocode/record';
-import { MdWorkshopSelect } from '#/views/mes/md/workstation/components';
+import { MdWorkshopSelect, MdWorkstationSelect } from '#/views/mes/md/workstation/components';
 
 import { DvMachineryTypeSelect } from './type/components';
 
@@ -113,6 +113,37 @@
       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: 'workstationId',
+      label: '宸ヤ綔绔�',
+      component: markRaw(MdWorkstationSelect),
+      componentProps: {
+        placeholder: '璇烽�夋嫨宸ヤ綔绔�',
+      },
+    },
+    {
       fieldName: 'specification',
       label: '瑙勬牸鍨嬪彿',
       component: 'Input',
@@ -205,6 +236,15 @@
         placeholder: '璇烽�夋嫨璁惧鐘舵��',
       },
     },
+    {
+      fieldName: 'workstationId',
+      label: '宸ヤ綔绔�',
+      component: markRaw(MdWorkstationSelect),
+      componentProps: {
+        allowClear: true,
+        placeholder: '璇烽�夋嫨宸ヤ綔绔�',
+      },
+    },
   ];
 }
 
@@ -233,6 +273,9 @@
         props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
       },
     },
+    { field: 'productionEfficiency', title: '鐢熶骇鏁堢巼', width: 120 },
+    { field: 'conveyorBelt', title: '浼犻�佸饱甯�', width: 100 },
+    { field: 'workstationName', title: '宸ヤ綔绔�', minWidth: 140 },
     {
       field: 'lastCheckTime',
       title: '鏈�杩戠偣妫�鏃堕棿',

--
Gitblit v1.9.3