From c2e8526f8f857be5e3a8c6f2b39c5efd424de33e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 15 十月 2026 11:50:24 +0800
Subject: [PATCH] refactor(auth): 优化认证逻辑和界面组件结构

---
 src/views/mes/qc/indicatorresult/components/data.ts |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/views/mes/qc/indicatorresult/components/data.ts b/src/views/mes/qc/indicatorresult/components/data.ts
index 694a01c..f16f449 100644
--- a/src/views/mes/qc/indicatorresult/components/data.ts
+++ b/src/views/mes/qc/indicatorresult/components/data.ts
@@ -11,11 +11,12 @@
 import { generateAutoCode } from '#/api/mes/md/autocode/record';
 
 /** 琛ㄥ崟绫诲瀷 */
-export type FormType = 'create' | 'update';
+export type FormType = 'create' | 'update' | 'detail';
 
 /** 鏂板/淇敼妫�娴嬬粨鏋滅殑琛ㄥ崟 */
 export function useQcIndicatorResultFormSchema(
   formApi?: VbenFormApi,
+  readonly = false,
 ): VbenFormSchema[] {
   return [
     {
@@ -34,7 +35,7 @@
         placeholder: '璇疯緭鍏ユ牱鍝佺紪鍙�',
       },
       rules: 'required',
-      suffix: () =>
+      suffix: readonly ? undefined : () =>
         h(
           Button,
           {
@@ -48,14 +49,6 @@
           },
           { default: () => '鐢熸垚' },
         ),
-    },
-    {
-      fieldName: 'sn',
-      label: '鐗╄祫 SN',
-      component: 'Input',
-      componentProps: {
-        placeholder: '璇疯緭鍏ョ墿璧� SN',
-      },
     },
     {
       fieldName: 'remark',
@@ -79,18 +72,13 @@
       width: 200,
     },
     {
-      field: 'sn',
-      title: '鐗╄祫SN',
-      minWidth: 200,
-    },
-    {
       field: 'remark',
       title: '澶囨敞',
       minWidth: 200,
     },
     {
       title: '鎿嶄綔',
-      width: 150,
+      width: 240,
       fixed: 'right',
       slots: { default: 'actions' },
     },

--
Gitblit v1.9.3