From fa3ac93010bea3805438ee3ab0a182bfbf7423da Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期一, 27 五月 2024 16:19:31 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/dry/dataDefine/DryEqpType.data.ts |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/src/views/dry/dataDefine/DryEqpType.data.ts b/src/views/dry/dataDefine/DryEqpType.data.ts
new file mode 100644
index 0000000..bfdd10e
--- /dev/null
+++ b/src/views/dry/dataDefine/DryEqpType.data.ts
@@ -0,0 +1,65 @@
+import { BasicColumn, FormSchema } from '/@/components/Table'
+import { rules } from '/@/utils/helper/validator'
+//鍒楄〃鏁版嵁
+export const columns: BasicColumn[] = [
+	{
+		title: '缂栫爜',
+		align: 'center',
+		dataIndex: 'code',
+	},
+	{
+		title: '鍚嶇О',
+		align: 'center',
+		dataIndex: 'name',
+	},
+]
+//鏌ヨ鏁版嵁
+export const searchFormSchema: FormSchema[] = [
+	{
+		label: '缂栫爜',
+		field: 'code',
+		component: 'Input',
+		colProps: { span: 6 },
+	},
+	{
+		label: '鍚嶇О',
+		field: 'name',
+		component: 'Input',
+		colProps: { span: 6 },
+	},
+]
+//琛ㄥ崟鏁版嵁
+export const formSchema: FormSchema[] = [
+	{
+		label: '缂栫爜',
+		field: 'code',
+		component: 'Input',
+		dynamicRules: ({ model, schema }) => {
+			return [{ required: true, message: '璇疯緭鍏ョ紪鐮�!' }, { ...rules.duplicateCheckRule('dry_eqp_type', 'code', model, schema)[0] }]
+		},
+	},
+	{
+		label: '鍚嶇О',
+		field: 'name',
+		component: 'Input',
+		dynamicRules: ({ model, schema }) => {
+			return [{ required: true, message: '璇疯緭鍏ュ悕绉�!' }, { ...rules.duplicateCheckRule('dry_eqp_type', 'name', model, schema)[0] }]
+		},
+	},
+	// TODO 涓婚敭闅愯棌瀛楁锛岀洰鍓嶅啓姝讳负ID
+	{
+		label: '',
+		field: 'id',
+		component: 'Input',
+		show: false,
+	},
+]
+
+/**
+ * 娴佺▼琛ㄥ崟璋冪敤杩欎釜鏂规硶鑾峰彇formSchema
+ * @param param
+ */
+export function getBpmFormSchema(_formData): FormSchema[] {
+	// 榛樿鍜屽師濮嬭〃鍗曚繚鎸佷竴鑷� 濡傛灉娴佺▼涓厤缃簡鏉冮檺鏁版嵁锛岃繖閲岄渶瑕佸崟鐙鐞唂ormSchema
+	return formSchema
+}

--
Gitblit v1.9.3