From a17257382b733190906c8d485e9f6d176ffd60a3 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期五, 14 八月 2026 11:48:31 +0800
Subject: [PATCH] Merge branch 'dev_pro2.0' of http://114.132.189.42:9002/r/mom-pro2-before into dev_pro2.0

---
 src/views/mes/md/item/data.ts |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/views/mes/md/item/data.ts b/src/views/mes/md/item/data.ts
index 5425bc8..5d74bb2 100644
--- a/src/views/mes/md/item/data.ts
+++ b/src/views/mes/md/item/data.ts
@@ -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 },
       },
     },
     {

--
Gitblit v1.9.3