From d841a8ea6dc2f7fdedbf0ea2b1e539842f5f3e37 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 12 十月 2026 19:45:36 +0800
Subject: [PATCH] 宁夏-九鸿 1.发版配置文件修改
---
src/views/mes/qc/template/data.ts | 47 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/src/views/mes/qc/template/data.ts b/src/views/mes/qc/template/data.ts
index 6301c05..0d3f941 100644
--- a/src/views/mes/qc/template/data.ts
+++ b/src/views/mes/qc/template/data.ts
@@ -17,7 +17,7 @@
import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
-import { getItemList } from '#/api/mdm/item';
+import { getItemSimpleList } from '#/api/mdm/item';
import { MdUnitMeasureSelect } from '#/views/mes/md/unitmeasure/components';
import { QcIndicatorSelect } from '#/views/mes/qc/indicator/components';
@@ -89,6 +89,15 @@
placeholder: '璇烽�夋嫨妫�娴嬬绫�',
},
rules: z.array(z.number()).min(1, '妫�娴嬬绫讳笉鑳戒负绌�'),
+ },
+ {
+ fieldName: 'defaultExecuteStandard',
+ label: '榛樿鎵ц鏍囧噯',
+ component: 'Input',
+ componentProps: {
+ maxlength: 50,
+ placeholder: '濡� GB/T 6027锛屾柊寤烘楠屽崟閫夋嫨鏈柟妗堝悗鑷姩甯﹀叆鎵ц鏍囧噯',
+ },
},
{
fieldName: 'remark',
@@ -249,6 +258,17 @@
width: 100,
},
{
+ field: 'sortOrder',
+ title: '鎺掑簭鍙�',
+ width: 80,
+ },
+ {
+ field: 'judgeFlag',
+ title: '鍙備笌鍒ゅ畾',
+ width: 90,
+ slots: { default: 'judgeFlag' },
+ },
+ {
title: '鎿嶄綔',
width: 130,
fixed: 'right',
@@ -334,6 +354,29 @@
componentProps: {
placeholder: '璇疯緭鍏ヨ鏄庡浘URL',
},
+ },
+ {
+ fieldName: 'sortOrder',
+ label: '鎺掑簭鍙�',
+ component: 'InputNumber',
+ defaultValue: 0,
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 0,
+ placeholder: '鏂规鍐呭睍绀洪『搴忥紝灏忕殑鍦ㄥ墠',
+ },
+ },
+ {
+ fieldName: 'judgeFlag',
+ label: '鍙備笌鍒ゅ畾',
+ component: 'Switch',
+ defaultValue: true,
+ componentProps: {
+ checkedChildren: '鏄�',
+ unCheckedChildren: '鍚�',
+ },
+ help: '鍒嗙粍琛�/涓棿鍙傛暟琛岃涓哄惁锛屼粎鏈�缁堢粨鏋滈」鍙備笌鍚堟牸鍒ゅ畾鎻愮ず',
},
{
fieldName: 'remark',
@@ -426,7 +469,7 @@
placeholder: '璇烽�夋嫨浜у搧鐗╂枡',
allowClear: true,
showSearch: true,
- api: getItemList,
+ api: getItemSimpleList,
labelField: 'name',
valueField: 'id',
optionRender: (option: any) => {
--
Gitblit v1.9.3