From f29e2aae98bbb52672b67bff99556f3cf64d1bce Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期四, 26 六月 2025 15:45:40 +0800 Subject: [PATCH] feat(eims): 优化设备管理功能和界面 --- eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx | 107 +++++++++++++++++++++++++++++------------------------ 1 files changed, 58 insertions(+), 49 deletions(-) diff --git a/eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx b/eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx index 44fef5b..cd561ec 100644 --- a/eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx +++ b/eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx @@ -8,54 +8,62 @@ import { renderDict } from '#/utils/render'; export const querySchema: FormSchemaGetter = () => [ + // { + // component: 'Input', + // fieldName: 'equName', + // label: '璁惧鍚嶇О' + // }, + // { + // component: 'Input', + // fieldName: 'assetNo', + // label: '璧勪骇缂栧彿' + // }, { component: 'Input', - fieldName: 'equName', - label: '璁惧鍚嶇О' - }, - { - component: 'Input', - fieldName: 'assetNo', - label: '璧勪骇缂栧彿' - }, - { - component: 'Input', - fieldName: 'inspName', - label: '鐐规椤�' - }, - { - component: 'Select', + fieldName: 'params.searchValue', componentProps: { - options: getDictOptions(DictEnum.EIMS_INSPECT_STATUS) + placeholder: '璇疯緭鍏ヨ澶囧悕绉版垨璧勪骇缂栧彿' }, - fieldName: 'status', - label: '鐘舵��' + label: '鍏抽敭瀛�' + }, + // { + // component: 'Select', + // componentProps: { + // options: getDictOptions(DictEnum.EIMS_INSPECT_STATUS) + // }, + // fieldName: 'status', + // label: '鐘舵��' + // }, + { + component: 'RangePicker', + fieldName: 'planTime', + label: '鐐规鏃ユ湡' }, { component: 'Select', componentProps: { options: getDictOptions(DictEnum.EIMS_INSPECT_RESULT) }, - fieldName: 'maintType', + fieldName: 'inspResult', label: '鐐规缁撴灉' - }, - { - component: 'TreeSelect', - // 鍦╠rawer閲屾洿鏂� 杩欓噷涓嶉渶瑕侀粯璁ょ殑componentProps - defaultValue: undefined, - fieldName: 'inspDept', - label: '鐐规閮ㄩ棬' - }, - { - component: 'Select', - componentProps: { - allowClear: true, - showSearch: true, - getPopupContainer - }, - fieldName: 'inspUser', - label: '鐐规浜�' } + // { + // component: 'TreeSelect', + // // 鍦╠rawer閲屾洿鏂� 杩欓噷涓嶉渶瑕侀粯璁ょ殑componentProps + // defaultValue: undefined, + // fieldName: 'inspDept', + // label: '鐐规閮ㄩ棬' + // }, + // { + // component: 'Select', + // componentProps: { + // allowClear: true, + // showSearch: true, + // getPopupContainer + // }, + // fieldName: 'inspUser', + // label: '鐐规浜�' + // } ]; export const columns: VxeGridProps['columns'] = [ @@ -103,15 +111,20 @@ } } }, + // { + // title: '鐐规绫诲瀷', + // field: 'inspType', + // minWidth: 120, + // slots: { + // default: ({ row }) => { + // return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE); + // } + // } + // }, { - title: '鐐规绫诲瀷', - field: 'inspType', - minWidth: 120, - slots: { - default: ({ row }) => { - return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE); - } - } + title: '鐐规鎻忚堪', + field: 'inspDesc', + minWidth: 200 }, { title: '鐐规浜�', @@ -128,11 +141,7 @@ field: 'inspTime', minWidth: 200 }, - { - title: '鐐规鎻忚堪', - field: 'inspDesc', - minWidth: 200 - }, + { title: '楠岃瘉浜�', field: 'verifyUserName', -- Gitblit v1.9.3