综合管理

This commit is contained in:
FLL
2025-06-27 15:16:06 +08:00
parent ca24234e57
commit 01ddd1174a
20 changed files with 139 additions and 318 deletions

View File

@@ -1,13 +1,12 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
import type {FormSchemaGetter} from '#/adapter/form';
import type {VxeGridProps} from '#/adapter/vxe-table';
import {getDictOptions} from "#/utils/dict";
export const querySchema: FormSchemaGetter = () => [
{
component: 'Select',
fieldName: 'floorCode',
label: '所属区',
label: '所属区',
},
{
component: 'Select',
@@ -26,13 +25,13 @@ export const querySchema: FormSchemaGetter = () => [
},
{
component: 'Input',
fieldName: 'roomCode',
label: '房间编码',
fieldName: 'roomNumber',
label: '房间',
},
{
component: 'Input',
fieldName: 'roomNumber',
label: '房间',
fieldName: 'roomCode',
label: '房间编码',
},
{
component: 'Select',
@@ -52,12 +51,19 @@ export const querySchema: FormSchemaGetter = () => [
},
];
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
// export const columns: () => VxeGridProps['columns'] = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '所属楼层ID',
title: '序号',
field: 'id',
slots: {
default: ({ rowIndex }) => {
return (rowIndex + 1).toString();
},
},
},
{
title: '所属楼层',
field: 'floorCode',
},
{
@@ -89,7 +95,7 @@ export const columns: VxeGridProps['columns'] = [
field: 'isForSale',
},
{
title: '状态',
title: '房间状态',
field: 'status',
},
{
@@ -112,23 +118,41 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '所属楼层ID',
label: '所属社区',
fieldName: 'floorCode',
component: 'Input',
rules: 'required',
},
{
label: '所属建筑',
fieldName: 'floorCode',
component: 'Input',
rules: 'required',
},
{
label: '所属单元',
fieldName: 'floorCode',
component: 'Input',
rules: 'required',
},
{
label: '所属楼层',
fieldName: 'floorCode',
component: 'Input',
rules: 'required',
},
{
label: '房间号',
fieldName: 'roomNumber',
component: 'Input',
rules: 'required',
},
{
label: '房间编码',
fieldName: 'roomCode',
component: 'Input',
rules: 'required',
},
{
label: '房间号(如101,202)',
fieldName: 'roomNumber',
component: 'Input',
rules: 'required',
},
{
label: '房间类型',
fieldName: 'roomType',
@@ -138,12 +162,12 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '面积(平方米)',
label: '面积()',
fieldName: 'area',
component: 'Input',
},
{
label: '户型(如2室1厅1卫)',
label: '户型',
fieldName: 'layout',
component: 'Input',
},
@@ -158,7 +182,7 @@ export const modalSchema: FormSchemaGetter = () => [
{
label: '是否可售',
fieldName: 'isForSale',
component: 'Input',
component: 'Select',
},
{
label: '房间状态',