From 6c16a58b5b7f38ce9e370eab160b516c058da6e2 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:19:49 +0800 Subject: [PATCH] feat(eims): 优化点检记录和点检汇总查询 --- eims-ui/apps/web-antd/src/views/eims/insp-record/data.tsx | 104 +++++++++++++++++++++++++++------------------------ 1 files changed, 55 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..404f8fa 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,59 @@ import { renderDict } from '#/utils/render'; export const querySchema: FormSchemaGetter = () => [ + // { + // component: 'Input', + // fieldName: 'equName', + // label: '璁惧鍚嶇О' + // }, + // { + // component: 'Input', + // fieldName: 'assetNo', + // label: '璧勪骇缂栧彿' + // }, { component: 'Input', - fieldName: 'equName', - label: '璁惧鍚嶇О' + fieldName: 'params.searchValue', + label: '鍏抽敭瀛�' }, + // { + // component: 'Select', + // componentProps: { + // options: getDictOptions(DictEnum.EIMS_INSPECT_STATUS) + // }, + // fieldName: 'status', + // label: '鐘舵��' + // }, { - component: 'Input', - fieldName: 'assetNo', - label: '璧勪骇缂栧彿' - }, - { - component: 'Input', - fieldName: 'inspName', - 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 +108,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 +138,7 @@ field: 'inspTime', minWidth: 200 }, - { - title: '鐐规鎻忚堪', - field: 'inspDesc', - minWidth: 200 - }, + { title: '楠岃瘉浜�', field: 'verifyUserName', -- Gitblit v1.9.3