feat:房屋收费选择单位

This commit is contained in:
2025-09-11 16:42:56 +08:00
parent e7e610c970
commit abb7999767
7 changed files with 101 additions and 60 deletions

View File

@@ -35,8 +35,8 @@ export const querySchema: FormSchemaGetter = () => [
export const columns: VxeGridProps['columns'] = [
{type: 'checkbox', width: 60},
{
title: '房屋',
field: 'roomName',
title: '单位',
field: 'residentUnitText',
minWidth: 150,
},
{
@@ -104,12 +104,33 @@ export const modalSchema: FormSchemaGetter = () => [
},
},
{
label: '房屋',
fieldName: 'roomId',
component: 'TreeSelect',
label: '单位',
fieldName: 'residentUnitId',
component: 'Select',
componentProps: {
},
rules: 'selectRequired',
formItemClass: 'col-span-2',
},
{
label: '入驻房间',
fieldName: 'roomInfo',
component: 'Input',
dependencies: {
show: (fromValue) => fromValue.residentUnitId,
triggerFields: ['residentUnitId'],
},
formItemClass: 'col-span-2',
},
{
label: '单位面积',
fieldName: 'area',
component: 'Input',
dependencies: {
show: (fromValue) => fromValue.residentUnitId,
triggerFields: ['residentUnitId'],
},
formItemClass: 'col-span-2',
},
{
label: '业主',