新增多个功能模块

This commit is contained in:
2025-06-23 09:27:28 +08:00
parent c783f365c8
commit 255481861a
66 changed files with 8555 additions and 6 deletions

View File

@@ -0,0 +1,254 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Textarea',
fieldName: 'name',
label: '会议室名称',
},
{
component: 'Input',
fieldName: 'meetId',
label: '会议室id',
},
{
component: 'Textarea',
fieldName: 'meetLocation',
label: '会议室地址',
},
{
component: 'Textarea',
fieldName: 'unit',
label: '所属单位',
},
{
component: 'Textarea',
fieldName: 'person',
label: '预定人',
},
{
component: 'Textarea',
fieldName: 'phone',
label: '联系方式',
},
{
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
fieldName: 'scheduledStarttime',
label: '预定开始时间',
},
{
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
fieldName: 'scheduledEndtime',
label: '预定结束时间',
},
{
component: 'Input',
fieldName: 'personSum',
label: '参会人数',
},
{
component: 'Input',
fieldName: 'price',
label: '费用',
},
{
component: 'Input',
fieldName: 'attach',
label: '是否包含增值服务',
},
{
component: 'Input',
fieldName: 'payState',
label: '支付状态',
},
{
component: 'Input',
fieldName: 'state',
label: '状态',
},
];
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
// export const columns: () => VxeGridProps['columns'] = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '主键',
field: 'id',
},
{
title: '会议室名称',
field: 'name',
},
{
title: '会议室id',
field: 'meetId',
},
{
title: '会议室地址',
field: 'meetLocation',
},
{
title: '所属单位',
field: 'unit',
},
{
title: '预定人',
field: 'person',
},
{
title: '联系方式',
field: 'phone',
},
{
title: '预定开始时间',
field: 'scheduledStarttime',
},
{
title: '预定结束时间',
field: 'scheduledEndtime',
},
{
title: '参会人数',
field: 'personSum',
},
{
title: '费用',
field: 'price',
},
{
title: '是否包含增值服务',
field: 'attach',
},
{
title: '支付状态',
field: 'payState',
},
{
title: '状态',
field: 'state',
},
{
title: '创建时间',
field: 'createTime',
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
},
];
export const modalSchema: FormSchemaGetter = () => [
{
label: '主键',
fieldName: 'id',
component: 'Input',
dependencies: {
show: () => false,
triggerFields: [''],
},
},
{
label: '会议室名称',
fieldName: 'name',
component: 'Textarea',
rules: 'required',
},
{
label: '会议室id',
fieldName: 'meetId',
component: 'Input',
rules: 'required',
},
{
label: '会议室地址',
fieldName: 'meetLocation',
component: 'Textarea',
rules: 'required',
},
{
label: '所属单位',
fieldName: 'unit',
component: 'Textarea',
rules: 'required',
},
{
label: '预定人',
fieldName: 'person',
component: 'Textarea',
rules: 'required',
},
{
label: '联系方式',
fieldName: 'phone',
component: 'Textarea',
rules: 'required',
},
{
label: '预定开始时间',
fieldName: 'scheduledStarttime',
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules: 'required',
},
{
label: '预定结束时间',
fieldName: 'scheduledEndtime',
component: 'DatePicker',
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules: 'required',
},
{
label: '参会人数',
fieldName: 'personSum',
component: 'Input',
rules: 'required',
},
{
label: '费用',
fieldName: 'price',
component: 'Input',
rules: 'required',
},
{
label: '是否包含增值服务',
fieldName: 'attach',
component: 'Input',
rules: 'required',
},
{
label: '支付状态',
fieldName: 'payState',
component: 'Input',
rules: 'required',
},
{
label: '状态',
fieldName: 'state',
component: 'Input',
rules: 'required',
},
];