|
|
@@ -3,6 +3,7 @@ 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[] {
|
|
|
@@ -13,18 +14,16 @@ export function useEnterpriseSearchFormSchema(): VbenFormSchema[] {
|
|
|
label: $t('system.enterprise.name'),
|
|
|
},
|
|
|
{
|
|
|
- component: 'Select',
|
|
|
+ component: 'ApiSelect',
|
|
|
+ fieldName: 'enterpriseType',
|
|
|
+ label: $t('system.enterprise.type'),
|
|
|
componentProps: {
|
|
|
allowClear: true,
|
|
|
- options: [
|
|
|
- { label: $t('common.all'), value: null },
|
|
|
- { label: '煎药企业', value: 1 },
|
|
|
- { label: '饮片供应商', value: 2 },
|
|
|
- { label: '物流公司', value: 3 },
|
|
|
- ],
|
|
|
+ api: listEnterpriseTypeDictMethod,
|
|
|
+ class: 'w-full',
|
|
|
+ labelField: 'dictName',
|
|
|
+ valueField: 'dictValue',
|
|
|
},
|
|
|
- fieldName: 'enterpriseType',
|
|
|
- label: $t('system.enterprise.type'),
|
|
|
},
|
|
|
];
|
|
|
}
|