From 46c3d28c5633baaddad0da441185310b9360a45b Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 03 七月 2024 14:56:21 +0800 Subject: [PATCH] 高级表单优化 --- src/views/components/data.ts | 69 +++++++++++++++++++++++++++++++++- 1 files changed, 66 insertions(+), 3 deletions(-) diff --git a/src/views/components/data.ts b/src/views/components/data.ts index 2213193..3f4d0b6 100644 --- a/src/views/components/data.ts +++ b/src/views/components/data.ts @@ -1,10 +1,10 @@ /* * @Description: 鑷畾涔夊脊鍑烘璇锋暟鎹� * @Author: Ben Lin - * @version: + * @version: * @Date: 2024-06-05 15:50:59 * @LastEditors: Ben Lin - * @LastEditTime: 2024-06-10 23:55:12 + * @LastEditTime: 2024-06-28 11:31:37 */ import { getWoFns, @@ -47,7 +47,7 @@ } export function getFormSchema(type: string) { - let _formSchema = [] as FormSchema[]; + let _formSchema: FormSchema[] = []; switch (type) { case 'BIZ_MES_WO': _formSchema = woformSchema; @@ -138,7 +138,70 @@ ], tableName: 'BAS_ITEM', rowKey: 'ITEM_CODE', + searchInfo: { TABLE_NAME: 'BAS_ITEM' }, //searchInfo: {TABLE_NAME: 'MES_CUSTOM_ACT', ACT_TYPE: routeConfig.currentAct.ACT_TYPE} }); break; } } + +export const step1Schemas: FormSchema[] = [ + { + field: 'CUST_CODE', + component: 'Input', + label: '瀹㈡埛缂栫爜', + required: true, + colProps: { + span: 20, + }, + }, + { + field: '0', + label: '', + defaultValue: '', + slot: 'add', + colProps: { + span: 4, + }, + }, + { + field: 'CUST_ID', + component: 'Input', + label: 'ID', + required: true, + colProps: { + span: 20, + }, + show: false, + }, +]; + +export const step2Schemas: FormSchema[] = [ + { + field: 'ROT_CODE', + component: 'Input', + label: '宸ヨ壓璺嚎', + required: true, + colProps: { + span: 20, + }, + }, + { + field: '0', + label: '', + defaultValue: '', + slot: 'add', + colProps: { + span: 4, + }, + }, + { + field: 'ROT_ID', + component: 'Input', + label: 'ID', + required: true, + colProps: { + span: 20, + }, + show: false, + }, +]; -- Gitblit v1.9.3