diff --git a/src/common/libs/umi/layoutConfig.tsx b/src/common/libs/umi/layoutConfig.tsx index 024333d..37ad9a7 100644 --- a/src/common/libs/umi/layoutConfig.tsx +++ b/src/common/libs/umi/layoutConfig.tsx @@ -95,8 +95,8 @@ export const LayoutConfig: RuntimeConfig['layout'] = () => {
MyProTableProps.request(params, sort, Apis.Asset.AssetHouses.List) } - toolBarRender={(action) => [ - , - ]} + // toolBarRender={(action) => [ + // , + // ]} columns={[ MyColumns.ID({ search: false }), Selects?.AssetProjects({ @@ -142,7 +141,12 @@ export default function Index({ title = '房屋档案' }) { navigate(`/customer/archive/show/${item.id}`); }} /> - {!item?.house_occupants?.length ? ( + + {/* {!item?.house_occupants?.length ? ( ) : ( '' - )} + )} */} ), }), diff --git a/src/pages/customer/archive/modals/Delivery.tsx b/src/pages/customer/archive/modals/Delivery.tsx index d4951fe..de3c8f5 100644 --- a/src/pages/customer/archive/modals/Delivery.tsx +++ b/src/pages/customer/archive/modals/Delivery.tsx @@ -9,8 +9,6 @@ import { Apis } from '@/gen/Apis'; import { HouseOccupantsCardTypeEnum, HouseOccupantsHouseRelationEnum, - HouseOccupantsRelationWithOwnerEnum, - HouseOccupantsResidentialRelationEnum, HouseRegistersTypeEnum, } from '@/gen/Enums'; import { BetaSchemaForm, ProCard } from '@ant-design/pro-components'; @@ -28,6 +26,7 @@ export default function Delivery(props: MyBetaModalFormProps) { } @@ -46,11 +45,9 @@ export default function Delivery(props: MyBetaModalFormProps) { customer_info: values.customer_info?.map((res: any) => { return { ...res, - house_relation: HouseOccupantsHouseRelationEnum.Owner.value, - relation_with_owner: - HouseOccupantsRelationWithOwnerEnum.Self.value, - residential_relation: - HouseOccupantsResidentialRelationEnum.PropertyOwner.value, + house_relation: 'Owner', + relation_with_owner: 'Self', + residential_relation: 'PropertyOwner', }; }), })