import type { VxeTableGridOptions } from '@vben/plugins/vxe-table'; import type { VbenFormSchema } from '#/adapter/form'; import type { SystemModel } from '#/api/method/system'; import { listEnterpriseTypeDictMethod } from '#/api'; import { $t } from '#/locales'; export function useEnterpriseSearchFormSchema(): VbenFormSchema[] { return [ { component: 'Input', fieldName: 'name', label: $t('system.enterprise.name'), }, { component: 'ApiSelect', fieldName: 'enterpriseType', label: $t('system.enterprise.type'), componentProps: { allowClear: true, api: listEnterpriseTypeDictMethod, class: 'w-full', labelField: 'dictName', valueField: 'dictValue', }, }, ]; } export function useEnterpriseTableColumns(): VxeTableGridOptions['columns'] { return [ { type: 'seq', title: $t('table.column.seq'), width: 50 }, { field: 'name', title: $t('system.enterprise.name'), minWidth: 120, }, { field: 'code', title: $t('system.enterprise.code'), minWidth: 100, }, { field: 'type', title: $t('system.enterprise.type'), minWidth: 120, }, { field: 'remark', title: $t('system.enterprise.remark'), minWidth: 100, }, { field: 'createTime', title: $t('system.enterprise.createTime'), minWidth: 160, }, { field: 'createUser', title: $t('system.enterprise.createUser'), minWidth: 100, }, ]; } export function useEnterpriseFormSchema(): VbenFormSchema[] { return []; }