From 91c82965b2d987452ca276e3a03b48c8dcda2ae9 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 19 八月 2026 11:47:26 +0800
Subject: [PATCH] config(env): 更新生产环境配置和公司名称

---
 src/views/mes/md/item/data.ts |   41 ++++++++++++++++-------------------------
 1 files changed, 16 insertions(+), 25 deletions(-)

diff --git a/src/views/mes/md/item/data.ts b/src/views/mes/md/item/data.ts
index 3e8be0e..d18c30f 100644
--- a/src/views/mes/md/item/data.ts
+++ b/src/views/mes/md/item/data.ts
@@ -9,8 +9,8 @@
   CommonStatusEnum,
   DICT_TYPE,
   MesAutoCodeRuleCode,
-} 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';
 
@@ -111,7 +111,7 @@
       component: 'RadioGroup',
       componentProps: {
         buttonStyle: 'solid',
-        disabled: false,
+        disabled: true,
         optionType: 'button',
         options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
       },
@@ -257,12 +257,7 @@
 }
 
 /** 鍒楄〃鐨勫瓧娈� */
-export function useGridColumns(
-  onStatusChange?: (
-    newStatus: number,
-    row: MesMdItemApi.Item,
-  ) => PromiseLike<boolean | undefined>,
-): VxeTableGridOptions<MesMdItemApi.Item>['columns'] {
+export function useGridColumns(): VxeTableGridOptions<MesMdItemApi.Item>['columns'] {
   return [
     {
       field: 'code',
@@ -315,15 +310,11 @@
     {
       field: 'status',
       title: '鐘舵��',
-      width: 120,
+      width: 100,
       align: 'center',
       cellRender: {
-        attrs: { beforeChange: onStatusChange },
-        name: 'CellSwitch',
-        props: {
-          checkedValue: CommonStatusEnum.ENABLE,
-          unCheckedValue: CommonStatusEnum.DISABLE,
-        },
+        name: 'CellDict',
+        props: { type: DICT_TYPE.COMMON_STATUS },
       },
     },
     {
@@ -341,31 +332,31 @@
   ];
 }
 
-/** 鐗╂枡閫夋嫨寮圭獥鎼滅储琛ㄥ崟 */
+/** 鍝佺閫夋嫨寮圭獥鎼滅储琛ㄥ崟 */
 export function useItemSelectGridFormSchema(): VbenFormSchema[] {
   return [
     {
       fieldName: 'code',
-      label: '鐗╂枡缂栫爜',
+      label: '鍝佺缂栫爜',
       component: 'Input',
       componentProps: {
         allowClear: true,
-        placeholder: '璇疯緭鍏ョ墿鏂欑紪鐮�',
+        placeholder: '璇疯緭鍏ュ搧绉嶇紪鐮�',
       },
     },
     {
       fieldName: 'name',
-      label: '鐗╂枡鍚嶇О',
+      label: '鍝佺鍚嶇О',
       component: 'Input',
       componentProps: {
         allowClear: true,
-        placeholder: '璇疯緭鍏ョ墿鏂欏悕绉�',
+        placeholder: '璇疯緭鍏ュ搧绉嶅悕绉�',
       },
     },
   ];
 }
 
-/** 鐗╂枡閫夋嫨寮圭獥鍒楄〃瀛楁 */
+/** 鍝佺閫夋嫨寮圭獥鍒楄〃瀛楁 */
 export function useItemSelectGridColumns(
   multiple = true,
 ): VxeTableGridOptions<MesMdItemApi.Item>['columns'] {
@@ -373,12 +364,12 @@
     { type: multiple ? 'checkbox' : 'radio', width: 50 },
     {
       field: 'code',
-      title: '鐗╂枡缂栫爜',
+      title: '鍝佺缂栫爜',
       width: 180,
     },
     {
       field: 'name',
-      title: '鐗╂枡鍚嶇О',
+      title: '鍝佺鍚嶇О',
       minWidth: 160,
       align: 'left',
     },
@@ -396,7 +387,7 @@
     },
     {
       field: 'itemOrProduct',
-      title: '鐗╂枡/浜у搧',
+      title: '鍝佺/浜у搧',
       width: 110,
       align: 'center',
       cellRender: {

--
Gitblit v1.9.3