This commit is contained in:
FLL
2025-09-04 17:02:24 +08:00
parent b0d48d0425
commit 9cefe1847e
6 changed files with 154 additions and 62 deletions

View File

@@ -23,7 +23,7 @@ const [BasicForm, formApi] = useVbenForm({
// 默认占满两列
formItemClass: 'col-span-1',
// 默认label宽度 px
labelWidth: 80,
labelWidth: 90,
// 通用配置项 会影响到所有表单项
componentProps: {
class: 'w-full',

View File

@@ -49,6 +49,10 @@ export const columns: VxeGridProps['columns'] = [
title: '建筑名称',
field: 'buildingName',
},
{
title: '社区',
field: 'communityText',
},
{
title: '总层数',
field: 'floorCount',
@@ -73,6 +77,18 @@ export const columns: VxeGridProps['columns'] = [
title: '地址',
field: 'addr',
},
{
title: '建筑面积(㎡)',
field: 'area',
},
{
title: '套内面积(㎡)',
field: 'insideInArea',
},
{
title: '公摊面积(㎡)',
field: 'sharedArea',
},
{
field: 'action',
fixed: 'right',
@@ -153,4 +169,34 @@ export const modalSchema: FormSchemaGetter = () => [
component: 'Input',
rules: 'required',
},
{
label: '建筑面积(㎡)',
fieldName: 'area',
component: 'InputNumber',
componentProps: {
min:0,
precision:2,
},
rules: 'required',
},
{
label: '套内面积(㎡)',
fieldName: 'insideInArea',
component: 'InputNumber',
componentProps: {
min:0,
precision:2,
},
rules: 'required',
},
{
label: '公摊面积(㎡)',
fieldName: 'sharedArea',
component: 'InputNumber',
componentProps: {
min:0,
precision:2,
},
rules: 'required',
},
];