From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列
---
src/views/mes/dv/machinery/data.ts | 49 +++++++++++++++++++++++++++++++++++++------------
1 files changed, 37 insertions(+), 12 deletions(-)
diff --git a/src/views/mes/dv/machinery/data.ts b/src/views/mes/dv/machinery/data.ts
index 47f66c5..ad0c421 100644
--- a/src/views/mes/dv/machinery/data.ts
+++ b/src/views/mes/dv/machinery/data.ts
@@ -8,8 +8,8 @@
DICT_TYPE,
MesAutoCodeRuleCode,
MesDvMachineryStatusEnum,
-} from '..\..\..\..\packages\constants\src';
-import { getDictOptions } from '..\..\..\..\packages\effects\hooks\src';
+} from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
import { Button } from 'ant-design-vue';
@@ -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',
@@ -127,9 +150,9 @@
componentProps: {
class: '!w-full',
disabled: true,
- format: 'YYYY-MM-DD HH:mm:ss',
- showTime: true,
- valueFormat: 'x',
+ format: 'YYYY-MM-DD',
+ showTime: false,
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
dependencies: {
triggerFields: ['id'],
@@ -143,9 +166,9 @@
componentProps: {
class: '!w-full',
disabled: true,
- format: 'YYYY-MM-DD HH:mm:ss',
- showTime: true,
- valueFormat: 'x',
+ format: 'YYYY-MM-DD',
+ showTime: false,
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
dependencies: {
triggerFields: ['id'],
@@ -233,23 +256,25 @@
props: { type: DICT_TYPE.MES_DV_MACHINERY_STATUS },
},
},
+ { field: 'productionEfficiency', title: '鐢熶骇鏁堢巼(/h)', width: 120 },
+ { field: 'conveyorBelt', title: '浼犻�佸饱甯�', width: 100 },
{
field: 'lastCheckTime',
title: '鏈�杩戠偣妫�鏃堕棿',
width: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'lastMaintenTime',
title: '鏈�杩戜繚鍏绘椂闂�',
width: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'createTime',
title: '鍒涘缓鏃堕棿',
width: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '鎿嶄綔',
@@ -343,7 +368,7 @@
field: 'createTime',
title: '鍒涘缓鏃堕棿',
width: 160,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
];
}
--
Gitblit v1.9.3