2025-06-18 11:03:42 +08:00
|
|
|
|
import type { FormSchemaGetter } from '#/adapter/form';
|
|
|
|
|
import type { VxeGridProps } from '#/adapter/vxe-table';
|
|
|
|
|
|
2025-06-18 16:50:58 +08:00
|
|
|
|
import { getDictOptions } from '#/utils/dict';
|
|
|
|
|
import { renderDict } from '#/utils/render';
|
2025-06-18 11:03:42 +08:00
|
|
|
|
|
|
|
|
|
export const querySchema: FormSchemaGetter = () => [
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'communityCode',
|
|
|
|
|
label: '园区编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'buildingCode',
|
|
|
|
|
label: '建筑编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'buildingName',
|
|
|
|
|
label: '建筑名称',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'province',
|
|
|
|
|
label: '省',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'city',
|
|
|
|
|
label: '市',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'district',
|
|
|
|
|
label: '区',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'addr',
|
|
|
|
|
label: '地址',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'lon',
|
|
|
|
|
label: '经度',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'lat',
|
|
|
|
|
label: '维度',
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-18 16:50:58 +08:00
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
|
|
|
|
options: getDictOptions('wy_cqxz'),
|
|
|
|
|
},
|
2025-06-18 11:03:42 +08:00
|
|
|
|
fieldName: 'cqxz',
|
|
|
|
|
label: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'bdcbh',
|
|
|
|
|
label: '不动产编号',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'cqbh',
|
|
|
|
|
label: '产权编号',
|
|
|
|
|
},
|
2025-06-19 09:50:46 +08:00
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'tdbh',
|
|
|
|
|
label: '图地编号',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'jzmj',
|
|
|
|
|
label: '建筑面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'cqmj',
|
|
|
|
|
label: '产权面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'kzmj',
|
|
|
|
|
label: '可租面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'zymj',
|
|
|
|
|
label: '自用面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'ptmj',
|
|
|
|
|
label: '配套面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'cwmj',
|
|
|
|
|
label: '车位面积',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'bzcg',
|
|
|
|
|
label: '标准层高',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'sort',
|
|
|
|
|
label: '排序字段',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'orgCode',
|
|
|
|
|
label: '组织编码',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
component: 'Input',
|
|
|
|
|
fieldName: 'dataState',
|
|
|
|
|
label: '数据状态:1有效,0无效',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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: '搜索值',
|
|
|
|
|
},
|
2025-06-18 11:03:42 +08:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
|
|
|
|
|
// export const columns: () => VxeGridProps['columns'] = () => [
|
|
|
|
|
export const columns: VxeGridProps['columns'] = [
|
|
|
|
|
{ type: 'checkbox', width: 60 },
|
|
|
|
|
{
|
2025-06-19 09:50:46 +08:00
|
|
|
|
title: '',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
field: 'id',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '园区编码',
|
|
|
|
|
field: 'communityCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '建筑编码',
|
|
|
|
|
field: 'buildingCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '建筑名称',
|
|
|
|
|
field: 'buildingName',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '省',
|
|
|
|
|
field: 'province',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '市',
|
|
|
|
|
field: 'city',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '区',
|
|
|
|
|
field: 'district',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '地址',
|
|
|
|
|
field: 'addr',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '经度',
|
|
|
|
|
field: 'lon',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '维度',
|
|
|
|
|
field: 'lat',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
|
|
|
|
field: 'cqxz',
|
2025-06-18 16:50:58 +08:00
|
|
|
|
slots: {
|
|
|
|
|
default: ({ row }) => {
|
|
|
|
|
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
|
|
|
|
return renderDict(row.cqxz, 'wy_cqxz');
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-06-18 11:03:42 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '不动产编号',
|
|
|
|
|
field: 'bdcbh',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '产权编号',
|
|
|
|
|
field: 'cqbh',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '图地编号',
|
|
|
|
|
field: 'tdbh',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '建筑面积',
|
|
|
|
|
field: 'jzmj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '产权面积',
|
|
|
|
|
field: 'cqmj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '可租面积',
|
|
|
|
|
field: 'kzmj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '自用面积',
|
|
|
|
|
field: 'zymj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '配套面积',
|
|
|
|
|
field: 'ptmj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '车位面积',
|
|
|
|
|
field: 'cwmj',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '标准层高',
|
|
|
|
|
field: 'bzcg',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '排序字段',
|
2025-06-19 09:50:46 +08:00
|
|
|
|
field: 'sort',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '组织编码',
|
|
|
|
|
field: 'orgCode',
|
|
|
|
|
},
|
2025-06-19 09:50:46 +08:00
|
|
|
|
{
|
|
|
|
|
title: '数据状态:1有效,0无效',
|
|
|
|
|
field: 'dataState',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '修改时间',
|
|
|
|
|
field: 'modifyTime',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '搜索值',
|
|
|
|
|
field: 'searchValue',
|
|
|
|
|
},
|
2025-06-18 11:03:42 +08:00
|
|
|
|
{
|
|
|
|
|
field: 'action',
|
|
|
|
|
fixed: 'right',
|
|
|
|
|
slots: { default: 'action' },
|
|
|
|
|
title: '操作',
|
|
|
|
|
width: 180,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const modalSchema: FormSchemaGetter = () => [
|
|
|
|
|
{
|
2025-06-19 09:50:46 +08:00
|
|
|
|
label: '',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
fieldName: 'id',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
dependencies: {
|
|
|
|
|
show: () => false,
|
|
|
|
|
triggerFields: [''],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '园区编码',
|
|
|
|
|
fieldName: 'communityCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '建筑编码',
|
|
|
|
|
fieldName: 'buildingCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '建筑名称',
|
|
|
|
|
fieldName: 'buildingName',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '省',
|
|
|
|
|
fieldName: 'province',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '市',
|
|
|
|
|
fieldName: 'city',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '区',
|
|
|
|
|
fieldName: 'district',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '地址',
|
|
|
|
|
fieldName: 'addr',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '经度',
|
|
|
|
|
fieldName: 'lon',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '维度',
|
|
|
|
|
fieldName: 'lat',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)',
|
|
|
|
|
fieldName: 'cqxz',
|
2025-06-18 16:50:58 +08:00
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
// 可选从DictEnum中获取 DictEnum.WY_CQXZ 便于维护
|
|
|
|
|
options: getDictOptions('wy_cqxz'),
|
|
|
|
|
},
|
|
|
|
|
rules: 'selectRequired',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '不动产编号',
|
|
|
|
|
fieldName: 'bdcbh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '产权编号',
|
|
|
|
|
fieldName: 'cqbh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '图地编号',
|
|
|
|
|
fieldName: 'tdbh',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '建筑面积',
|
|
|
|
|
fieldName: 'jzmj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '产权面积',
|
|
|
|
|
fieldName: 'cqmj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '可租面积',
|
|
|
|
|
fieldName: 'kzmj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '自用面积',
|
|
|
|
|
fieldName: 'zymj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '配套面积',
|
|
|
|
|
fieldName: 'ptmj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '车位面积',
|
|
|
|
|
fieldName: 'cwmj',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '标准层高',
|
|
|
|
|
fieldName: 'bzcg',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '排序字段',
|
2025-06-19 09:50:46 +08:00
|
|
|
|
fieldName: 'sort',
|
2025-06-18 11:03:42 +08:00
|
|
|
|
component: 'Input',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '组织编码',
|
|
|
|
|
fieldName: 'orgCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
rules: 'required',
|
|
|
|
|
},
|
2025-06-19 09:50:46 +08:00
|
|
|
|
{
|
|
|
|
|
label: '数据状态:1有效,0无效',
|
|
|
|
|
fieldName: 'dataState',
|
|
|
|
|
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',
|
|
|
|
|
},
|
2025-06-18 11:03:42 +08:00
|
|
|
|
];
|