|
@@ -1,13 +1,11 @@
|
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table';
|
|
import type { VxeTableGridOptions } from '@vben/plugins/vxe-table';
|
|
|
|
|
|
|
|
import type { VbenFormSchema } from '#/adapter/form';
|
|
import type { VbenFormSchema } from '#/adapter/form';
|
|
|
-import type { OnActionClickFn } from '#/adapter/vxe-table';
|
|
|
|
|
import type { SystemModel } from '#/api/method/system';
|
|
import type { SystemModel } from '#/api/method/system';
|
|
|
|
|
|
|
|
-import { listOrganizationsMethodAll } from '#/api/method/system';
|
|
|
|
|
import { $t } from '#/locales';
|
|
import { $t } from '#/locales';
|
|
|
|
|
|
|
|
-export function useUserSearchFormSchema(): VbenFormSchema[] {
|
|
|
|
|
|
|
+export function useTisaneSearchFormSchema(): VbenFormSchema[] {
|
|
|
return [
|
|
return [
|
|
|
{
|
|
{
|
|
|
component: 'Input',
|
|
component: 'Input',
|
|
@@ -15,38 +13,20 @@ export function useUserSearchFormSchema(): VbenFormSchema[] {
|
|
|
label: $t('system.tisane.name'),
|
|
label: $t('system.tisane.name'),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- component: 'Select',
|
|
|
|
|
- fieldName: 'status',
|
|
|
|
|
|
|
+ component: 'Input',
|
|
|
|
|
+ fieldName: 'relatedEnterprise',
|
|
|
label: $t('system.tisane.relatedEnterprise'),
|
|
label: $t('system.tisane.relatedEnterprise'),
|
|
|
- componentProps: {
|
|
|
|
|
- options: [
|
|
|
|
|
- {
|
|
|
|
|
- label: '医疗机构1',
|
|
|
|
|
- value: 1,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '医疗机构2',
|
|
|
|
|
- value: 0,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '医疗机构3',
|
|
|
|
|
- value: 2,
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function useUserTableColumns<T = SystemModel.Organization>(
|
|
|
|
|
- onActionClick?: OnActionClickFn<T>,
|
|
|
|
|
-): VxeTableGridOptions<T>['columns'] {
|
|
|
|
|
|
|
+export function useTisaneTableColumns(): VxeTableGridOptions<SystemModel.Tisane>['columns'] {
|
|
|
return [
|
|
return [
|
|
|
{ type: 'seq', title: $t('table.column.seq'), width: 50 },
|
|
{ type: 'seq', title: $t('table.column.seq'), width: 50 },
|
|
|
{
|
|
{
|
|
|
field: 'name',
|
|
field: 'name',
|
|
|
title: $t('system.tisane.name'),
|
|
title: $t('system.tisane.name'),
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'code',
|
|
field: 'code',
|
|
@@ -56,17 +36,17 @@ export function useUserTableColumns<T = SystemModel.Organization>(
|
|
|
{
|
|
{
|
|
|
field: 'type',
|
|
field: 'type',
|
|
|
title: $t('system.tisane.type'),
|
|
title: $t('system.tisane.type'),
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'relatedOrganizations',
|
|
field: 'relatedOrganizations',
|
|
|
title: $t('system.tisane.relatedOrganization'),
|
|
title: $t('system.tisane.relatedOrganization'),
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'relatedEnterprise',
|
|
field: 'relatedEnterprise',
|
|
|
title: $t('system.tisane.relatedEnterprise'),
|
|
title: $t('system.tisane.relatedEnterprise'),
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'remark',
|
|
field: 'remark',
|
|
@@ -76,33 +56,16 @@ export function useUserTableColumns<T = SystemModel.Organization>(
|
|
|
{
|
|
{
|
|
|
field: 'createTime',
|
|
field: 'createTime',
|
|
|
title: $t('system.tisane.createTime'),
|
|
title: $t('system.tisane.createTime'),
|
|
|
- minWidth: 100,
|
|
|
|
|
|
|
+ minWidth: 160,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: 'createUser',
|
|
field: 'createUser',
|
|
|
title: $t('system.tisane.createUser'),
|
|
title: $t('system.tisane.createUser'),
|
|
|
minWidth: 100,
|
|
minWidth: 100,
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- // cellRender: {
|
|
|
|
|
- // attrs: {
|
|
|
|
|
- // nameField: 'name',
|
|
|
|
|
- // nameTitle: $t('system.user._'),
|
|
|
|
|
- // onClick: onActionClick,
|
|
|
|
|
- // },
|
|
|
|
|
- // name: 'CellOperation',
|
|
|
|
|
- // },
|
|
|
|
|
- field: 'operation',
|
|
|
|
|
- fixed: 'right',
|
|
|
|
|
- title: $t('table.column.operation'),
|
|
|
|
|
- width: 130,
|
|
|
|
|
- },
|
|
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function useUserFormSchema(
|
|
|
|
|
- current?: Pick<SystemModel.Organization, 'id' | 'name'>,
|
|
|
|
|
-): VbenFormSchema[] {
|
|
|
|
|
|
|
+export function useTisaneFormSchema(): VbenFormSchema[] {
|
|
|
return [];
|
|
return [];
|
|
|
}
|
|
}
|