develop #1
@ -95,8 +95,8 @@ export const LayoutConfig: RuntimeConfig['layout'] = () => {
|
|||||||
<div style={{ width: 181 }}>
|
<div style={{ width: 181 }}>
|
||||||
<img
|
<img
|
||||||
src={
|
src={
|
||||||
snap.session?.company_configs?.config_value?.logo
|
snap.session?.company_configs?.config_value?.admin_logo
|
||||||
? snap.session?.company_configs?.config_value?.logo[0]?.url
|
? snap.session?.company_configs?.config_value?.admin_logo[0]?.url
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
style={{ height: '42px' }}
|
style={{ height: '42px' }}
|
||||||
|
|||||||
@ -40,6 +40,9 @@ type SessionType = {
|
|||||||
logo?: {
|
logo?: {
|
||||||
url?: string;
|
url?: string;
|
||||||
}[];
|
}[];
|
||||||
|
admin_logo?: {
|
||||||
|
url?: string;
|
||||||
|
}[];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
permissions?: any;
|
permissions?: any;
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
MyButtons,
|
MyButtons,
|
||||||
MyColumns,
|
MyColumns,
|
||||||
MyImportModal,
|
|
||||||
MyPageContainer,
|
MyPageContainer,
|
||||||
MyProTableProps,
|
MyProTableProps,
|
||||||
} from '@/common';
|
} from '@/common';
|
||||||
@ -32,17 +31,17 @@ export default function Index({ title = '房屋档案' }) {
|
|||||||
request={async (params, sort) =>
|
request={async (params, sort) =>
|
||||||
MyProTableProps.request(params, sort, Apis.Asset.AssetHouses.List)
|
MyProTableProps.request(params, sort, Apis.Asset.AssetHouses.List)
|
||||||
}
|
}
|
||||||
toolBarRender={(action) => [
|
// toolBarRender={(action) => [
|
||||||
<MyImportModal
|
// <MyImportModal
|
||||||
key="ImportHouse"
|
// key="ImportHouse"
|
||||||
title="批量导入"
|
// title="批量导入"
|
||||||
type="default"
|
// type="default"
|
||||||
size="middle"
|
// size="middle"
|
||||||
templateApi={Apis.Archive.HouseOccupants.DownloadTemplate}
|
// templateApi={Apis.Archive.HouseOccupants.DownloadTemplate}
|
||||||
importApi={Apis.Archive.HouseOccupants.Import}
|
// importApi={Apis.Archive.HouseOccupants.Import}
|
||||||
reload={action?.reload}
|
// reload={action?.reload}
|
||||||
/>,
|
// />,
|
||||||
]}
|
// ]}
|
||||||
columns={[
|
columns={[
|
||||||
MyColumns.ID({ search: false }),
|
MyColumns.ID({ search: false }),
|
||||||
Selects?.AssetProjects({
|
Selects?.AssetProjects({
|
||||||
@ -142,7 +141,12 @@ export default function Index({ title = '房屋档案' }) {
|
|||||||
navigate(`/customer/archive/show/${item.id}`);
|
navigate(`/customer/archive/show/${item.id}`);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{!item?.house_occupants?.length ? (
|
<Delivery
|
||||||
|
item={item}
|
||||||
|
reload={action?.reload}
|
||||||
|
title="添加业主"
|
||||||
|
/>
|
||||||
|
{/* {!item?.house_occupants?.length ? (
|
||||||
<Delivery
|
<Delivery
|
||||||
item={item}
|
item={item}
|
||||||
reload={action?.reload}
|
reload={action?.reload}
|
||||||
@ -150,7 +154,7 @@ export default function Index({ title = '房屋档案' }) {
|
|||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
''
|
''
|
||||||
)}
|
)} */}
|
||||||
</Space>
|
</Space>
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -9,8 +9,6 @@ import { Apis } from '@/gen/Apis';
|
|||||||
import {
|
import {
|
||||||
HouseOccupantsCardTypeEnum,
|
HouseOccupantsCardTypeEnum,
|
||||||
HouseOccupantsHouseRelationEnum,
|
HouseOccupantsHouseRelationEnum,
|
||||||
HouseOccupantsRelationWithOwnerEnum,
|
|
||||||
HouseOccupantsResidentialRelationEnum,
|
|
||||||
HouseRegistersTypeEnum,
|
HouseRegistersTypeEnum,
|
||||||
} from '@/gen/Enums';
|
} from '@/gen/Enums';
|
||||||
import { BetaSchemaForm, ProCard } from '@ant-design/pro-components';
|
import { BetaSchemaForm, ProCard } from '@ant-design/pro-components';
|
||||||
@ -28,6 +26,7 @@ export default function Delivery(props: MyBetaModalFormProps) {
|
|||||||
<MyButtons.View
|
<MyButtons.View
|
||||||
title={props.title}
|
title={props.title}
|
||||||
size={props.item?.size || 'small'}
|
size={props.item?.size || 'small'}
|
||||||
|
disabled={props.item?.house_occupants?.length}
|
||||||
type="primary"
|
type="primary"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
@ -46,11 +45,9 @@ export default function Delivery(props: MyBetaModalFormProps) {
|
|||||||
customer_info: values.customer_info?.map((res: any) => {
|
customer_info: values.customer_info?.map((res: any) => {
|
||||||
return {
|
return {
|
||||||
...res,
|
...res,
|
||||||
house_relation: HouseOccupantsHouseRelationEnum.Owner.value,
|
house_relation: 'Owner',
|
||||||
relation_with_owner:
|
relation_with_owner: 'Self',
|
||||||
HouseOccupantsRelationWithOwnerEnum.Self.value,
|
residential_relation: 'PropertyOwner',
|
||||||
residential_relation:
|
|
||||||
HouseOccupantsResidentialRelationEnum.PropertyOwner.value,
|
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user