| | |
| | | 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', |
| | | // 在drawer里更新 这里不需要默认的componentProps |
| | | defaultValue: undefined, |
| | | fieldName: 'inspDept', |
| | | label: '点检部门' |
| | | }, |
| | | { |
| | | component: 'Select', |
| | | componentProps: { |
| | | allowClear: true, |
| | | showSearch: true, |
| | | getPopupContainer |
| | | }, |
| | | fieldName: 'inspUser', |
| | | label: '点检人' |
| | | } |
| | | // { |
| | | // component: 'TreeSelect', |
| | | // // 在drawer里更新 这里不需要默认的componentProps |
| | | // defaultValue: undefined, |
| | | // fieldName: 'inspDept', |
| | | // label: '点检部门' |
| | | // }, |
| | | // { |
| | | // component: 'Select', |
| | | // componentProps: { |
| | | // allowClear: true, |
| | | // showSearch: true, |
| | | // getPopupContainer |
| | | // }, |
| | | // fieldName: 'inspUser', |
| | | // label: '点检人' |
| | | // } |
| | | ]; |
| | | |
| | | export const columns: VxeGridProps['columns'] = [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | // { |
| | | // 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: '点检人', |
| | |
| | | field: 'inspTime', |
| | | minWidth: 200 |
| | | }, |
| | | { |
| | | title: '点检描述', |
| | | field: 'inspDesc', |
| | | minWidth: 200 |
| | | }, |
| | | |
| | | { |
| | | title: '验证人', |
| | | field: 'verifyUserName', |