From 176bdc01f5321e50fbc3f97ad35e556f121f6d91 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 22 Jan 2026 11:41:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/libs/umi/layoutConfig.tsx | 4 +-- src/common/libs/valtio/state.ts | 3 ++ src/pages/customer/archive/index.tsx | 32 +++++++++++-------- .../customer/archive/modals/Delivery.tsx | 11 +++---- 4 files changed, 27 insertions(+), 23 deletions(-) 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', }; }), })