import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' // 表单校验 export const InspectionMethodRules = reactive({ description: [required], }) export const InspectionMethod = useCrudSchemas(reactive([ { label: '编码', field: 'code', sort: 'custom', isSearch: true, isForm:false, table: { fixed: 'left' } }, { label: '描述', field: 'description', sort: 'custom', }, { label: '版本', field: 'version', sort: 'custom', }, { label: '操作指导', field: 'operationGuidance', sort: 'custom', }, { label: '文件', field: 'videoAddress', sort: 'custom', isTable: false, table: { }, form: { component: 'UploadFile', componentProps: { upData:{ tableName:'basicInspectionMethod', tableId:'', }, fileType:['doc', 'xls', 'ppt', 'txt'], modelValue:[] }, } }, { label: '创建时间', field: 'createTime', sort: 'custom', formatter: dateFormatter, isForm: false, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, }, { label: '操作', field: 'action', isForm: false, table: { width: 150, fixed: 'right' } }, ]))