From beaed6d077e7c3e9abfad68acb8c587835b5a406 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期六, 12 四月 2025 16:17:16 +0800 Subject: [PATCH] feat(eims): 添加点检计划和保养计划的导入功能 --- eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx | 284 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 142 insertions(+), 142 deletions(-) diff --git a/eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx b/eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx index b07a476..5afb308 100644 --- a/eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx +++ b/eims-ui/apps/web-antd/src/views/eims/insp-plan/data.tsx @@ -82,51 +82,51 @@ field: 'inspName', minWidth: 200 }, - { - title: '鐐规绫诲瀷', - field: 'inspType', - minWidth: 120, - slots: { - default: ({ row }) => { - return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE); - } - } - }, - { - title: '鐐规浜�', - field: 'inspUserName', - minWidth: 100 - }, - { - title: '寰幆鍛ㄦ湡', - field: 'inspCycleUnitName', - minWidth: 80 - }, - { - title: '鏃堕棿璁$畻瑙勫垯', - field: 'inspRule', - minWidth: 140, - slots: { - default: ({ row }) => { - return renderDict(row.inspRule, DictEnum.MAINT_TIME_RULE); - } - } - }, - { - title: '棣栨鎵ц鏃堕棿', - field: 'inspFirstTime', - minWidth: 160 - }, - { - title: '涓婃鎵ц鏃堕棿', - field: 'inspLastTime', - minWidth: 160 - }, - { - title: '涓嬫鎵ц鏃堕棿', - field: 'inspNextTime', - minWidth: 160 - }, + // { + // title: '鐐规绫诲瀷', + // field: 'inspType', + // minWidth: 120, + // slots: { + // default: ({ row }) => { + // return renderDict(row.inspType, DictEnum.EIMS_INSPECT_TYPE); + // } + // } + // }, + // { + // title: '鐐规浜�', + // field: 'inspUserName', + // minWidth: 100 + // }, + // { + // title: '寰幆鍛ㄦ湡', + // field: 'inspCycleUnitName', + // minWidth: 80 + // }, + // { + // title: '鏃堕棿璁$畻瑙勫垯', + // field: 'inspRule', + // minWidth: 140, + // slots: { + // default: ({ row }) => { + // return renderDict(row.inspRule, DictEnum.MAINT_TIME_RULE); + // } + // } + // }, + // { + // title: '棣栨鎵ц鏃堕棿', + // field: 'inspFirstTime', + // minWidth: 160 + // }, + // { + // title: '涓婃鎵ц鏃堕棿', + // field: 'inspLastTime', + // minWidth: 160 + // }, + // { + // title: '涓嬫鎵ц鏃堕棿', + // field: 'inspNextTime', + // minWidth: 160 + // }, { title: '鍒涘缓鏃堕棿', field: 'createTime', @@ -169,75 +169,75 @@ fieldName: 'inspName', label: '鐐规椤�' }, - { - component: 'RadioGroup', - componentProps: { - buttonStyle: 'solid', - options: getDictOptions(DictEnum.EIMS_INSPECT_TYPE), - optionType: 'button' - }, - fieldName: 'inspType', - defaultValue: '1', - label: '鐐规绫诲瀷' - }, + // { + // component: 'RadioGroup', + // componentProps: { + // buttonStyle: 'solid', + // options: getDictOptions(DictEnum.EIMS_INSPECT_TYPE), + // optionType: 'button' + // }, + // fieldName: 'inspType', + // defaultValue: '1', + // label: '鐐规绫诲瀷' + // }, { component: 'Input', fieldName: 'inspDesc', label: '鐐规璇存槑' }, - { - component: 'InputNumber', - fieldName: 'inspCycle', - label: '鐐规鍛ㄦ湡', - formItemClass: 'col-span-1', - componentProps: { - min: 1 - } - }, - { - component: 'Select', - componentProps: { - getPopupContainer, - options: getDictOptions(DictEnum.MAINT_CYCLE_UNIT) - }, - fieldName: 'inspCycleUnit', - formItemClass: 'col-span-1 w-[80px]', - labelWidth: 0, - label: '' - }, - - { - component: 'Select', - componentProps: { - getPopupContainer, - options: getDictOptions(DictEnum.MAINT_TIME_RULE) - }, - fieldName: 'inspRule', - label: '鐐规瑙勫垯 ' - }, - { - component: 'Input', - fieldName: 'inspUser', - label: '鐢ㄦ埛id', - dependencies: { - show: () => false, - triggerFields: [''] - } - }, - { - component: 'Input', - fieldName: 'inspUserName', - label: '鐐规浜�' - }, - { - component: 'Input', - fieldName: 'inspDept', - label: '閮ㄩ棬id', - dependencies: { - show: () => false, - triggerFields: [''] - } - }, + // { + // component: 'InputNumber', + // fieldName: 'inspCycle', + // label: '鐐规鍛ㄦ湡', + // formItemClass: 'col-span-1', + // componentProps: { + // min: 1 + // } + // }, + // { + // component: 'Select', + // componentProps: { + // getPopupContainer, + // options: getDictOptions(DictEnum.MAINT_CYCLE_UNIT) + // }, + // fieldName: 'inspCycleUnit', + // formItemClass: 'col-span-1 w-[80px]', + // labelWidth: 0, + // label: '' + // }, + // + // { + // component: 'Select', + // componentProps: { + // getPopupContainer, + // options: getDictOptions(DictEnum.MAINT_TIME_RULE) + // }, + // fieldName: 'inspRule', + // label: '鐐规瑙勫垯 ' + // }, + // { + // component: 'Input', + // fieldName: 'inspUser', + // label: '鐢ㄦ埛id', + // dependencies: { + // show: () => false, + // triggerFields: [''] + // } + // }, + // { + // component: 'Input', + // fieldName: 'inspUserName', + // label: '鐐规浜�' + // }, + // { + // component: 'Input', + // fieldName: 'inspDept', + // label: '閮ㄩ棬id', + // dependencies: { + // show: () => false, + // triggerFields: [''] + // } + // }, { component: 'RadioGroup', componentProps: { @@ -249,39 +249,39 @@ defaultValue: '0', label: '鐘舵��' }, - { - component: 'DatePicker', - componentProps: { - format: 'YYYY-MM-DD', - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer - }, - fieldName: 'inspFirstTime', - label: '棣栨鐐规鏃堕棿' - }, - { - component: 'DatePicker', - componentProps: { - format: 'YYYY-MM-DD', - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer - }, - fieldName: 'inspLastTime', - label: '涓婃鐐规鏃堕棿' - }, - { - component: 'DatePicker', - componentProps: { - format: 'YYYY-MM-DD', - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer - }, - fieldName: 'inspNextTime', - label: '涓嬫鐐规鏃堕棿', - }, + // { + // component: 'DatePicker', + // componentProps: { + // format: 'YYYY-MM-DD', + // showTime: false, + // valueFormat: 'YYYY-MM-DD', + // getPopupContainer + // }, + // fieldName: 'inspFirstTime', + // label: '棣栨鐐规鏃堕棿' + // }, + // { + // component: 'DatePicker', + // componentProps: { + // format: 'YYYY-MM-DD', + // showTime: false, + // valueFormat: 'YYYY-MM-DD', + // getPopupContainer + // }, + // fieldName: 'inspLastTime', + // label: '涓婃鐐规鏃堕棿' + // }, + // { + // component: 'DatePicker', + // componentProps: { + // format: 'YYYY-MM-DD', + // showTime: false, + // valueFormat: 'YYYY-MM-DD', + // getPopupContainer + // }, + // fieldName: 'inspNextTime', + // label: '涓嬫鐐规鏃堕棿', + // }, { component: 'Textarea', fieldName: 'remark', -- Gitblit v1.9.3