wy
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -31,23 +33,23 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'accessPort',
|
||||
label: '设备端口',
|
||||
label: '端口',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
fieldName: 'accssType',
|
||||
label: '门禁设备类型',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'factoryCode',
|
||||
label: '工程编号',
|
||||
label: '工厂编码',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KZKLX 便于维护
|
||||
options: getDictOptions('wy_kzklx'),
|
||||
},
|
||||
fieldName: 'controlType',
|
||||
label: '控制卡类型:1-系统,2-E8',
|
||||
@@ -72,12 +74,21 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'dataState',
|
||||
label: '数据状态:1有效,0无效',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'searchValue',
|
||||
label: '搜索值',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '门禁设备编码',
|
||||
field: 'accessCode',
|
||||
@@ -99,7 +110,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'accessIp',
|
||||
},
|
||||
{
|
||||
title: '设备端口',
|
||||
title: '端口',
|
||||
field: 'accessPort',
|
||||
},
|
||||
{
|
||||
@@ -107,12 +118,18 @@ export const columns: VxeGridProps['columns'] = [
|
||||
field: 'accssType',
|
||||
},
|
||||
{
|
||||
title: '工程编号',
|
||||
title: '工厂编码',
|
||||
field: 'factoryCode',
|
||||
},
|
||||
{
|
||||
title: '控制卡类型:1-系统,2-E8',
|
||||
field: 'controlType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KZKLX 便于维护
|
||||
return renderDict(row.controlType, 'wy_kzklx');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '控制卡类型编码',
|
||||
@@ -130,6 +147,10 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
title: '搜索值',
|
||||
field: 'searchValue',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -140,6 +161,15 @@ export const columns: VxeGridProps['columns'] = [
|
||||
];
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '主键',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
show: () => false,
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '门禁设备编码',
|
||||
fieldName: 'accessCode',
|
||||
@@ -170,20 +200,18 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '设备端口',
|
||||
label: '端口',
|
||||
fieldName: 'accessPort',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '门禁设备类型',
|
||||
fieldName: 'accssType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '工程编号',
|
||||
label: '工厂编码',
|
||||
fieldName: 'factoryCode',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
@@ -193,6 +221,8 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'controlType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KZKLX 便于维护
|
||||
options: getDictOptions('wy_kzklx'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
@@ -218,4 +248,9 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '搜索值',
|
||||
fieldName: 'searchValue',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -49,7 +51,11 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '维度',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
||||
options: getDictOptions('wy_cqxz'),
|
||||
},
|
||||
fieldName: 'cqxz',
|
||||
label: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
||||
},
|
||||
@@ -63,11 +69,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'cqbh',
|
||||
label: '产权编号',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'orgCode',
|
||||
label: '组织编码',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
@@ -117,6 +118,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
||||
field: 'cqxz',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
||||
return renderDict(row.cqxz, 'wy_cqxz');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '不动产编号',
|
||||
@@ -166,10 +173,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '组织编码',
|
||||
field: 'orgCode',
|
||||
},
|
||||
{
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -246,8 +249,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
||||
fieldName: 'cqxz',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
||||
options: getDictOptions('wy_cqxz'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '不动产编号',
|
||||
@@ -321,9 +328,4 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态:1有效,0无效',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -19,9 +21,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '服务数量',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
fieldName: 'serveType',
|
||||
label: '服务分类',
|
||||
},
|
||||
@@ -33,27 +33,14 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
options: getDictOptions('wy_qrzt'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
fieldName: 'serveStatus',
|
||||
label: '预订状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'createById',
|
||||
label: '创建人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'updateById',
|
||||
label: '更新人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'confirmId',
|
||||
label: '确认人id',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
@@ -79,11 +66,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'servePrice',
|
||||
label: '服务总价格',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'dataStauts',
|
||||
label: '数据状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'serveImage',
|
||||
@@ -100,10 +82,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '分类id',
|
||||
field: 'classificationId',
|
||||
@@ -119,6 +97,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '服务分类',
|
||||
field: 'serveType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_FWFL 便于维护
|
||||
return renderDict(row.serveType, 'wy_fwfl');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '产品名称',
|
||||
@@ -127,18 +111,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '预订状态',
|
||||
field: 'serveStatus',
|
||||
},
|
||||
{
|
||||
title: '创建人id',
|
||||
field: 'createById',
|
||||
},
|
||||
{
|
||||
title: '更新人id',
|
||||
field: 'updateById',
|
||||
},
|
||||
{
|
||||
title: '确认人id',
|
||||
field: 'confirmId',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
return renderDict(row.serveStatus, 'wy_qrzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '服务开始时间',
|
||||
@@ -152,10 +130,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '服务总价格',
|
||||
field: 'servePrice',
|
||||
},
|
||||
{
|
||||
title: '数据状态',
|
||||
field: 'dataStauts',
|
||||
},
|
||||
{
|
||||
title: '产品图片',
|
||||
field: 'serveImage',
|
||||
@@ -187,52 +161,43 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '分类id',
|
||||
fieldName: 'classificationId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预订id',
|
||||
fieldName: 'roomBookId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务数量',
|
||||
fieldName: 'serveNum',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务分类',
|
||||
fieldName: 'serveType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '产品名称',
|
||||
fieldName: 'serveName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预订状态',
|
||||
fieldName: 'serveStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
options: getDictOptions('wy_qrzt'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '创建人id',
|
||||
fieldName: 'createById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '更新人id',
|
||||
fieldName: 'updateById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '确认人id',
|
||||
fieldName: 'confirmId',
|
||||
component: 'Input',
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '服务开始时间',
|
||||
@@ -243,6 +208,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务结束时间',
|
||||
@@ -253,16 +219,13 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务总价格',
|
||||
fieldName: 'servePrice',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '数据状态',
|
||||
fieldName: 'dataStauts',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '产品图片',
|
||||
@@ -272,10 +235,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
|
||||
// maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '排序',
|
||||
fieldName: 'sort',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -118,7 +118,7 @@ function handleMultiDelete() {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(ceremonialServeExport, '服务数据', tableApi.formApi.form.values, {
|
||||
commonDownloadExcel(ceremonialServeExport, '会议服务数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
}
|
||||
@@ -126,7 +126,7 @@ function handleDownloadExcel() {
|
||||
|
||||
<template>
|
||||
<Page :auto-content-height="true">
|
||||
<BasicTable table-title="服务列表">
|
||||
<BasicTable table-title="会议服务列表">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button
|
||||
|
@@ -18,16 +18,17 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'totalPrice',
|
||||
label: '服务和预订总价格',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'searchValue',
|
||||
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',
|
||||
@@ -40,6 +41,10 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '服务和预订总价格',
|
||||
field: 'totalPrice',
|
||||
},
|
||||
{
|
||||
title: '搜索值',
|
||||
field: 'searchValue',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -63,15 +68,24 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '服务id',
|
||||
fieldName: 'ceremonialServeId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预订id',
|
||||
fieldName: 'roomBookingId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务和预订总价格',
|
||||
fieldName: 'totalPrice',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '搜索值',
|
||||
fieldName: 'searchValue',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -118,7 +118,7 @@ function handleMultiDelete() {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(ceremonialserveRoombookingExport, '服务订阅数据', tableApi.formApi.form.values, {
|
||||
commonDownloadExcel(ceremonialserveRoombookingExport, '会议预定数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
}
|
||||
@@ -126,7 +126,7 @@ function handleDownloadExcel() {
|
||||
|
||||
<template>
|
||||
<Page :auto-content-height="true">
|
||||
<BasicTable table-title="服务订阅列表">
|
||||
<BasicTable table-title="会议预定列表">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -14,7 +16,11 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '城市名称',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QYJB 便于维护
|
||||
options: getDictOptions('wy_qyjb'),
|
||||
},
|
||||
fieldName: 'areaLevel',
|
||||
label: '101 省级 202 市州 303 区县',
|
||||
},
|
||||
@@ -38,21 +44,12 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'lat',
|
||||
label: '维度',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'dataState',
|
||||
label: '数据状态:1有效,0无效',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键ID',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '城市编码',
|
||||
field: 'areaCode',
|
||||
@@ -64,6 +61,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '101 省级 202 市州 303 区县',
|
||||
field: 'areaLevel',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QYJB 便于维护
|
||||
return renderDict(row.areaLevel, 'wy_qyjb');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '父级城市编码',
|
||||
@@ -81,10 +84,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '维度',
|
||||
field: 'lat',
|
||||
},
|
||||
{
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -99,7 +98,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '主键ID',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '城市编码',
|
||||
@@ -119,8 +117,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '101 省级 202 市州 303 区县',
|
||||
fieldName: 'areaLevel',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QYJB 便于维护
|
||||
options: getDictOptions('wy_qyjb'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '父级城市编码',
|
||||
@@ -146,10 +148,4 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态:1有效,0无效',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -16,6 +18,8 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SQLX 便于维护
|
||||
options: getDictOptions('wy_sqlx'),
|
||||
},
|
||||
fieldName: 'communityType',
|
||||
label: '社区类型 1:园区,2:小区',
|
||||
@@ -71,10 +75,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '主键id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '社区名称',
|
||||
field: 'communityName',
|
||||
@@ -86,6 +86,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '社区类型 1:园区,2:小区',
|
||||
field: 'communityType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SQLX 便于维护
|
||||
return renderDict(row.communityType, 'wy_sqlx');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '省',
|
||||
@@ -119,10 +125,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '组织编码',
|
||||
field: 'orgCode',
|
||||
},
|
||||
{
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -159,6 +161,8 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'communityType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SQLX 便于维护
|
||||
options: getDictOptions('wy_sqlx'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
@@ -201,7 +205,11 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '小图图片',
|
||||
fieldName: 'img',
|
||||
component: 'Input',
|
||||
component: 'ImageUpload',
|
||||
componentProps: {
|
||||
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
|
||||
// maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '组织编码',
|
||||
@@ -209,10 +217,4 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态:1有效,0无效',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -24,9 +26,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '会议室面积',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
fieldName: 'roomType',
|
||||
label: '会议室类型',
|
||||
},
|
||||
@@ -43,6 +43,8 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_HYSJGLX 便于维护
|
||||
options: getDictOptions('wy_hysjglx'),
|
||||
},
|
||||
fieldName: 'feeType',
|
||||
label: '会议室价格类型',
|
||||
@@ -73,13 +75,21 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '会议室描述',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SF 便于维护
|
||||
options: getDictOptions('wy_sf'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
fieldName: 'review',
|
||||
label: '是否需要审核',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KG 便于维护
|
||||
options: getDictOptions('wy_kg'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
@@ -87,7 +97,11 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '启用状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_XQ 便于维护
|
||||
options: getDictOptions('wy_xq'),
|
||||
},
|
||||
fieldName: 'openingWeek',
|
||||
label: '开放星期',
|
||||
},
|
||||
@@ -117,10 +131,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '会议室名称',
|
||||
field: 'roomName',
|
||||
@@ -152,6 +162,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '会议室价格类型',
|
||||
field: 'feeType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_HYSJGLX 便于维护
|
||||
return renderDict(row.feeType, 'wy_hysjglx');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '费用金额',
|
||||
@@ -176,14 +192,32 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '是否需要审核',
|
||||
field: 'review',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SF 便于维护
|
||||
return renderDict(row.review, 'wy_sf');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '启用状态',
|
||||
field: 'enabledStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KG 便于维护
|
||||
return renderDict(row.enabledStatus, 'wy_kg');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '开放星期',
|
||||
field: 'openingWeek',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_XQ 便于维护
|
||||
return renderDict(row.openingWeek, 'wy_xq');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '开放开始时间',
|
||||
@@ -239,10 +273,8 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '会议室类型',
|
||||
fieldName: 'roomType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '会议室容纳人数',
|
||||
@@ -261,6 +293,8 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
fieldName: 'feeType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_HYSJGLX 便于维护
|
||||
options: getDictOptions('wy_hysjglx'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
@@ -296,14 +330,22 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '是否需要审核',
|
||||
fieldName: 'review',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SF 便于维护
|
||||
options: getDictOptions('wy_sf'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '启用状态',
|
||||
fieldName: 'enabledStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KG 便于维护
|
||||
options: getDictOptions('wy_kg'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
@@ -312,8 +354,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '开放星期',
|
||||
fieldName: 'openingWeek',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_XQ 便于维护
|
||||
options: getDictOptions('wy_xq'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '开放开始时间',
|
||||
|
@@ -29,10 +29,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '数据库id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '设备类型编码',
|
||||
field: 'dvNo',
|
||||
|
@@ -34,10 +34,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: 'E8 名称',
|
||||
field: 'e8Name',
|
||||
@@ -54,10 +50,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '组织编码',
|
||||
field: 'orgCode',
|
||||
},
|
||||
{
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -69,7 +61,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '',
|
||||
label: 'ID',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
@@ -101,10 +93,4 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态:1有效,0无效',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -24,10 +24,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '数据库id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '厂商编码',
|
||||
field: 'factoryNo',
|
||||
@@ -63,12 +59,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
triggerFields: [''],
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '厂商编码',
|
||||
fieldName: 'factoryNo',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '设备厂商名称',
|
||||
fieldName: 'factoryName',
|
||||
|
@@ -33,6 +33,26 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'dataState',
|
||||
label: '数据状态:1有效,0无效',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'createEmpId',
|
||||
label: '创建人',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'modifyTime',
|
||||
label: '修改时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'searchValue',
|
||||
label: '搜索值',
|
||||
},
|
||||
];
|
||||
|
||||
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
||||
@@ -40,7 +60,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: '数据库id',
|
||||
title: '',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
@@ -67,6 +87,18 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '数据状态:1有效,0无效',
|
||||
field: 'dataState',
|
||||
},
|
||||
{
|
||||
title: '创建人',
|
||||
field: 'createEmpId',
|
||||
},
|
||||
{
|
||||
title: '修改时间',
|
||||
field: 'modifyTime',
|
||||
},
|
||||
{
|
||||
title: '搜索值',
|
||||
field: 'searchValue',
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
fixed: 'right',
|
||||
@@ -78,7 +110,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
|
||||
export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '数据库id',
|
||||
label: '',
|
||||
fieldName: 'id',
|
||||
component: 'Input',
|
||||
dependencies: {
|
||||
@@ -120,6 +152,25 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '数据状态:1有效,0无效',
|
||||
fieldName: 'dataState',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '创建人',
|
||||
fieldName: 'createEmpId',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '修改时间',
|
||||
fieldName: 'modifyTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '搜索值',
|
||||
fieldName: 'searchValue',
|
||||
component: 'Input',
|
||||
},
|
||||
];
|
||||
|
@@ -118,7 +118,7 @@ function handleMultiDelete() {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(floorExport, '楼层数据', tableApi.formApi.form.values, {
|
||||
commonDownloadExcel(floorExport, '楼层管理数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
}
|
||||
@@ -126,7 +126,7 @@ function handleDownloadExcel() {
|
||||
|
||||
<template>
|
||||
<Page :auto-content-height="true">
|
||||
<BasicTable table-title="楼层列表">
|
||||
<BasicTable table-title="楼层管理列表">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button
|
||||
|
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -9,19 +11,19 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '会议室id',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
options: getDictOptions('wy_yyzt'),
|
||||
},
|
||||
fieldName: 'bookingStatus',
|
||||
label: '预约状态',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
options: getDictOptions('wy_shzt'),
|
||||
},
|
||||
fieldName: 'reviewStatus',
|
||||
label: '审核状态',
|
||||
@@ -101,21 +103,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'checkInEndTime',
|
||||
label: '签到结束时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'approver',
|
||||
label: '审批人',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
fieldName: 'approverTime',
|
||||
label: '审批时间',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'evaluate',
|
||||
@@ -123,17 +110,19 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'addServices',
|
||||
label: '是否需要增值服务',
|
||||
fieldName: 'remark',
|
||||
label: '备注',
|
||||
},
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
options: getDictOptions('sys_yes_no'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
fieldName: 'dataStatus',
|
||||
label: '数据状态',
|
||||
fieldName: 'addServices',
|
||||
label: '是否需要增值服务',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -141,10 +130,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '会议室id',
|
||||
field: 'tbConferenceId',
|
||||
@@ -152,10 +137,22 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '预约状态',
|
||||
field: 'bookingStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
return renderDict(row.bookingStatus, 'wy_yyzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '审核状态',
|
||||
field: 'reviewStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
return renderDict(row.reviewStatus, 'wy_shzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '会议预订人',
|
||||
@@ -197,14 +194,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '签到结束时间',
|
||||
field: 'checkInEndTime',
|
||||
},
|
||||
{
|
||||
title: '审批人',
|
||||
field: 'approver',
|
||||
},
|
||||
{
|
||||
title: '审批时间',
|
||||
field: 'approverTime',
|
||||
},
|
||||
{
|
||||
title: '评价',
|
||||
field: 'evaluate',
|
||||
@@ -216,10 +205,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '是否需要增值服务',
|
||||
field: 'addServices',
|
||||
},
|
||||
{
|
||||
title: '数据状态',
|
||||
field: 'dataStatus',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
return renderDict(row.addServices, 'sys_yes_no');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'action',
|
||||
@@ -249,20 +240,20 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
label: '预约状态',
|
||||
fieldName: 'bookingStatus',
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_YYZT 便于维护
|
||||
options: getDictOptions('wy_yyzt'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '审核状态',
|
||||
fieldName: 'reviewStatus',
|
||||
component: 'RadioGroup',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
// 可选从DictEnum中获取 DictEnum.WY_SHZT 便于维护
|
||||
options: getDictOptions('wy_shzt'),
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
@@ -321,6 +312,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '参会人员',
|
||||
fieldName: 'attendeesName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '参会人数',
|
||||
@@ -350,45 +342,28 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '审批人',
|
||||
fieldName: 'approver',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '审批时间',
|
||||
fieldName: 'approverTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '评价',
|
||||
fieldName: 'evaluate',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '备注',
|
||||
fieldName: 'remark',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '是否需要增值服务',
|
||||
fieldName: 'addServices',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态',
|
||||
fieldName: 'dataStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.SYS_YES_NO 便于维护
|
||||
options: getDictOptions('sys_yes_no'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
];
|
||||
|
@@ -68,10 +68,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '访客姓名',
|
||||
field: 'visitorName',
|
||||
@@ -145,28 +141,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '拜访开始时间',
|
||||
fieldName: 'visitingBeginTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '拜访结束时间',
|
||||
fieldName: 'visitingEndTime',
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预约车位',
|
||||
fieldName: 'bookingParkingSpace',
|
||||
|
Reference in New Issue
Block a user