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/qc/indicatorresult/components/data.ts | 22 +++++-----------------
1 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/src/views/mes/qc/indicatorresult/components/data.ts b/src/views/mes/qc/indicatorresult/components/data.ts
index 5fd3f1f..f16f449 100644
--- a/src/views/mes/qc/indicatorresult/components/data.ts
+++ b/src/views/mes/qc/indicatorresult/components/data.ts
@@ -4,18 +4,19 @@
import { h } from 'vue';
-import { MesAutoCodeRuleCode } from '../../../../../packages/constants/src';
+import { MesAutoCodeRuleCode } from '@vben/constants';
import { Button } from 'ant-design-vue';
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