物业代码生成
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'ceremonialServeId',
|
||||
label: '服务id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'roomBookingId',
|
||||
label: '预订id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'totalPrice',
|
||||
label: '服务和预订总价格',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '服务id',
|
||||
field: 'ceremonialServeId',
|
||||
},
|
||||
{
|
||||
title: '预订id',
|
||||
field: 'roomBookingId',
|
||||
},
|
||||
{
|
||||
title: '服务和预订总价格',
|
||||
field: 'totalPrice',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 180,
|
||||
},
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: 'id',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '服务id',
|
||||
fieldName: 'ceremonialServeId',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '预订id',
|
||||
fieldName: 'roomBookingId',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '服务和预订总价格',
|
||||
fieldName: 'totalPrice',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
Reference in New Issue
Block a user