This commit is contained in:
parent
3f5457bf04
commit
04a716f0e0
@ -10,7 +10,7 @@ export function MyModal(props?: any) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (open) {
|
if (open) {
|
||||||
props?.onOpen(true);
|
props?.onOpen?.(true);
|
||||||
}
|
}
|
||||||
}, [open]);
|
}, [open]);
|
||||||
|
|
||||||
|
|||||||
@ -1,49 +1,56 @@
|
|||||||
import { MyBetaModalFormProps, MyProTableProps } from '@/common';
|
import { MyBetaModalFormProps, MyButtons } from '@/common';
|
||||||
import { Apis } from '@/gen/Apis';
|
import { Apis } from '@/gen/Apis';
|
||||||
import { ProCard, ProTable } from '@ant-design/pro-components';
|
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
|
||||||
|
import { useNavigate } from '@umijs/max';
|
||||||
|
import { Space } from 'antd';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
export default function Info(props: MyBetaModalFormProps) {
|
||||||
|
const [getShow, setDataShow] = useState<any>({});
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
Apis.Bill.HouseBills.SummaryShow({
|
||||||
|
asset_houses_id: props?.item?.id,
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
setDataShow(JSON.parse(JSON.stringify(res?.data)));
|
||||||
|
return false;
|
||||||
|
})
|
||||||
|
.catch(() => false);
|
||||||
|
}, [props?.item?.id]);
|
||||||
|
|
||||||
export default function info(props: MyBetaModalFormProps) {
|
|
||||||
const { item } = props;
|
|
||||||
return (
|
return (
|
||||||
<ProCard>
|
<ProCard extra={props.extra}>
|
||||||
<ProTable
|
<ProDescriptions bordered column={3}>
|
||||||
{...MyProTableProps.props}
|
<ProDescriptions.Item label="账单金额">
|
||||||
request={async (params, sort) =>
|
{getShow?.payable_amount_sum || '-'}
|
||||||
MyProTableProps.request(
|
</ProDescriptions.Item>
|
||||||
{
|
<ProDescriptions.Item label="滞纳金">
|
||||||
...params,
|
{getShow?.late_fee_sum || '-'}
|
||||||
asset_houses_id: item?.asset_houses_id,
|
</ProDescriptions.Item>
|
||||||
},
|
<ProDescriptions.Item label="优惠金额">
|
||||||
sort,
|
{getShow?.discount_amount_sum || '-'}
|
||||||
Apis.Bill.HouseBills.SummaryBillList,
|
</ProDescriptions.Item>
|
||||||
)
|
<ProDescriptions.Item label="应付金额">
|
||||||
}
|
<Space>
|
||||||
search={false}
|
{getShow?.total_payable_sum || ''}
|
||||||
options={false}
|
{getShow?.payable_amount_sum ? (
|
||||||
pagination={false}
|
<MyButtons.View
|
||||||
columns={[
|
title="查看账单明细"
|
||||||
{
|
size="small"
|
||||||
title: '账单金额合计',
|
type="link"
|
||||||
dataIndex: 'payable_amount_sum',
|
onClick={() => {
|
||||||
search: false,
|
navigate(`/bills/summary/show/${props?.item?.id || 0}`);
|
||||||
},
|
}}
|
||||||
{
|
/>
|
||||||
title: '滞纳金合计',
|
) : (
|
||||||
dataIndex: 'late_fee_sum',
|
'无账单'
|
||||||
search: false,
|
)}
|
||||||
},
|
</Space>
|
||||||
{
|
</ProDescriptions.Item>
|
||||||
title: '优惠金额合计',
|
</ProDescriptions>
|
||||||
dataIndex: 'discount_amount_sum',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '应付合计',
|
|
||||||
dataIndex: 'total_payable_sum',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
</ProCard>
|
</ProCard>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import SummaryInfo from '../components/SummaryInfo';
|
|||||||
import OccupantsHistory from '../table/OccupantsHistory';
|
import OccupantsHistory from '../table/OccupantsHistory';
|
||||||
import OccupantsNow from '../table/OccupantsNow';
|
import OccupantsNow from '../table/OccupantsNow';
|
||||||
import RegistersList from '../table/RegistersList';
|
import RegistersList from '../table/RegistersList';
|
||||||
import UnpaidBill from '../table/UnpaidBill';
|
|
||||||
|
|
||||||
export default function Show({ title = '房屋档案' }) {
|
export default function Show({ title = '房屋档案' }) {
|
||||||
const { id } = useParams<{ id: string }>();
|
const { id } = useParams<{ id: string }>();
|
||||||
@ -90,18 +89,18 @@ export default function Show({ title = '房屋档案' }) {
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '欠费账单',
|
// label: '欠费账单',
|
||||||
key: '4',
|
// key: '4',
|
||||||
closable: false,
|
// closable: false,
|
||||||
children: <UnpaidBill item={{ ...data, asset_houses_id: id }} />,
|
// children: <UnpaidBill item={{ ...data, asset_houses_id: id }} />,
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MyPageContainer title={title}>
|
<MyPageContainer title={title}>
|
||||||
<HouseInfo item={data} reload={loadShow} />
|
<HouseInfo item={data} reload={loadShow} />
|
||||||
<SummaryInfo item={{ ...data, asset_houses_id: id }} reload={loadShow} />
|
{id && <SummaryInfo item={{ ...data, id: id }} reload={loadShow} />}
|
||||||
<ProCard style={{ marginTop: 16 }}>
|
<ProCard style={{ marginTop: 16 }}>
|
||||||
<Tabs type="card" items={items} defaultActiveKey="1" size="small" />
|
<Tabs type="card" items={items} defaultActiveKey="1" size="small" />
|
||||||
</ProCard>
|
</ProCard>
|
||||||
|
|||||||
@ -107,7 +107,7 @@ export default function Index({ title = '项目活动' }) {
|
|||||||
// title={title}
|
// title={title}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{(!item.end_time || new Date(item.end_time) > new Date()) && (
|
{/* {(!item.end_time || new Date(item.end_time) > new Date()) && (
|
||||||
<MyButtons.Default
|
<MyButtons.Default
|
||||||
title={
|
title={
|
||||||
item.publish_status ===
|
item.publish_status ===
|
||||||
@ -150,8 +150,49 @@ export default function Index({ title = '项目活动' }) {
|
|||||||
}).then(() => action?.reload());
|
}).then(() => action?.reload());
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)} */}
|
||||||
|
<MyButtons.Default
|
||||||
|
title={
|
||||||
|
item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Unpublished.value
|
||||||
|
? '发布'
|
||||||
|
: item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Published.value
|
||||||
|
? '下架'
|
||||||
|
: '重新发布'
|
||||||
|
}
|
||||||
|
type="primary"
|
||||||
|
isConfirm
|
||||||
|
description={
|
||||||
|
item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Unpublished.value
|
||||||
|
? '确认发布此活动吗?'
|
||||||
|
: item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Published.value
|
||||||
|
? '确认下架此活动吗?'
|
||||||
|
: '确认重新发布此活动吗?'
|
||||||
|
}
|
||||||
|
onConfirm={() => {
|
||||||
|
let newStatus;
|
||||||
|
if (
|
||||||
|
item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Unpublished.value
|
||||||
|
) {
|
||||||
|
newStatus = ActivitiesPublishStatusEnum.Published.value;
|
||||||
|
} else if (
|
||||||
|
item.publish_status ===
|
||||||
|
ActivitiesPublishStatusEnum.Published.value
|
||||||
|
) {
|
||||||
|
newStatus = ActivitiesPublishStatusEnum.Unlisted.value;
|
||||||
|
} else {
|
||||||
|
newStatus = ActivitiesPublishStatusEnum.Published.value;
|
||||||
|
}
|
||||||
|
Apis.Activity.Activities.ChangePublishStatus({
|
||||||
|
id: item.id,
|
||||||
|
publish_status: newStatus,
|
||||||
|
}).then(() => action?.reload());
|
||||||
|
}}
|
||||||
|
/>
|
||||||
{item.is_enroll === 1 && (
|
{item.is_enroll === 1 && (
|
||||||
<EnrollsList
|
<EnrollsList
|
||||||
item={item}
|
item={item}
|
||||||
|
|||||||
@ -16,12 +16,12 @@ export default function Create(
|
|||||||
return (
|
return (
|
||||||
<BetaSchemaForm<ApiTypes.Grid.Grids.AddManager>
|
<BetaSchemaForm<ApiTypes.Grid.Grids.AddManager>
|
||||||
{...MyModalFormProps.props}
|
{...MyModalFormProps.props}
|
||||||
title={`设置管理员`}
|
title={`设置楼栋管家`}
|
||||||
wrapperCol={{ span: 24 }}
|
wrapperCol={{ span: 24 }}
|
||||||
width="500px"
|
width="500px"
|
||||||
form={form}
|
form={form}
|
||||||
key={new Date().getTime()}
|
key={new Date().getTime()}
|
||||||
trigger={<MyButtons.Default title="管理员" type="link" />}
|
trigger={<MyButtons.Default title="楼栋管家" type="link" />}
|
||||||
request={() => Promise.resolve(props.item)}
|
request={() => Promise.resolve(props.item)}
|
||||||
onOpenChange={(open: any) => {
|
onOpenChange={(open: any) => {
|
||||||
if (open && props.item) {
|
if (open && props.item) {
|
||||||
@ -49,7 +49,7 @@ export default function Create(
|
|||||||
}
|
}
|
||||||
columns={[
|
columns={[
|
||||||
Selects?.Employees({
|
Selects?.Employees({
|
||||||
title: '设置网格员',
|
title: '设置楼栋管家',
|
||||||
dataIndex: 'company_employees_id',
|
dataIndex: 'company_employees_id',
|
||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
formItemProps: { ...rulesHelper.text },
|
||||||
|
|||||||
@ -1,12 +1,6 @@
|
|||||||
import { MyBetaModalFormProps, renderTextHelper } from '@/common';
|
import { MyBetaModalFormProps } from '@/common';
|
||||||
import { MyModal } from '@/components/MyModal';
|
import { MyModal } from '@/components/MyModal';
|
||||||
import { Apis } from '@/gen/Apis';
|
import { Apis } from '@/gen/Apis';
|
||||||
import {
|
|
||||||
AssetHousesOrientationEnum,
|
|
||||||
AssetHousesOwnershipTypeEnum,
|
|
||||||
AssetHousesStatusEnum,
|
|
||||||
AssetHousesUsageEnum,
|
|
||||||
} from '@/gen/Enums';
|
|
||||||
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
|
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
|
||||||
import { Space } from 'antd';
|
import { Space } from 'antd';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
@ -14,12 +8,10 @@ import { useState } from 'react';
|
|||||||
export default function Info(props: MyBetaModalFormProps) {
|
export default function Info(props: MyBetaModalFormProps) {
|
||||||
const [getShow, setDataShow] = useState<any>({});
|
const [getShow, setDataShow] = useState<any>({});
|
||||||
|
|
||||||
// 只在弹窗打开时获取数据
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MyModal
|
<MyModal
|
||||||
title={props.title || '查看'}
|
title={props.title || '查看'}
|
||||||
width="800px"
|
width="600px"
|
||||||
onOpen={(e: boolean) => {
|
onOpen={(e: boolean) => {
|
||||||
if (e) {
|
if (e) {
|
||||||
return Apis.Grid.Grids.Show({
|
return Apis.Grid.Grids.Show({
|
||||||
@ -37,60 +29,25 @@ export default function Info(props: MyBetaModalFormProps) {
|
|||||||
node={
|
node={
|
||||||
<>
|
<>
|
||||||
<ProCard extra={props.extra}>
|
<ProCard extra={props.extra}>
|
||||||
<ProDescriptions bordered>
|
<ProDescriptions bordered column={1}>
|
||||||
<ProDescriptions.Item label="房屋全名" span={2}>
|
<ProDescriptions.Item label="板块名称">
|
||||||
<Space>
|
<Space>{getShow?.name}</Space>
|
||||||
<span>【{getShow?.id}】</span>
|
|
||||||
{getShow?.name}
|
|
||||||
</Space>
|
|
||||||
</ProDescriptions.Item>
|
</ProDescriptions.Item>
|
||||||
<ProDescriptions.Item label="房号">
|
|
||||||
{getShow?.name}
|
<ProDescriptions.Item label="楼栋单元">
|
||||||
|
{getShow?.grid_ranges
|
||||||
|
?.map(
|
||||||
|
(item: any) =>
|
||||||
|
item?.asset_building?.name + item?.asset_unit?.name,
|
||||||
|
)
|
||||||
|
.join(';')}
|
||||||
</ProDescriptions.Item>
|
</ProDescriptions.Item>
|
||||||
<ProDescriptions.Item label="楼层">
|
|
||||||
{getShow?.floor}
|
<ProDescriptions.Item label="创建时间">
|
||||||
|
{getShow?.created_at}
|
||||||
</ProDescriptions.Item>
|
</ProDescriptions.Item>
|
||||||
<ProDescriptions.Item label="房屋用途">
|
<ProDescriptions.Item label="最近修改">
|
||||||
<renderTextHelper.Tag
|
{getShow?.updated_at}
|
||||||
Enums={AssetHousesUsageEnum}
|
|
||||||
value={getShow?.usage}
|
|
||||||
key="usage"
|
|
||||||
/>
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="产权性质">
|
|
||||||
<renderTextHelper.Tag
|
|
||||||
Enums={AssetHousesOwnershipTypeEnum}
|
|
||||||
value={getShow?.ownership_type}
|
|
||||||
key="ownership_type"
|
|
||||||
/>
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="建筑面积">
|
|
||||||
{getShow?.built_area}m²
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="套内面积">
|
|
||||||
{getShow?.inside_area}m²
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="计费面积">
|
|
||||||
{getShow?.chargeable_area}m²
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="房屋状态">
|
|
||||||
<renderTextHelper.Tag
|
|
||||||
Enums={AssetHousesStatusEnum}
|
|
||||||
value={getShow?.status}
|
|
||||||
key="status"
|
|
||||||
/>
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="户型">
|
|
||||||
{getShow?.room || ''}房{getShow?.hall || ''}厅
|
|
||||||
{getShow?.bathroom || ''}卫{getShow?.kitchen || ''}厨
|
|
||||||
{getShow?.balcony || ''}阳台
|
|
||||||
</ProDescriptions.Item>
|
|
||||||
<ProDescriptions.Item label="朝向">
|
|
||||||
<renderTextHelper.Tag
|
|
||||||
Enums={AssetHousesOrientationEnum}
|
|
||||||
value={getShow?.orientation}
|
|
||||||
key="orientation"
|
|
||||||
/>
|
|
||||||
</ProDescriptions.Item>
|
</ProDescriptions.Item>
|
||||||
</ProDescriptions>
|
</ProDescriptions>
|
||||||
</ProCard>
|
</ProCard>
|
||||||
|
|||||||
@ -44,7 +44,9 @@ export default function Show({ title = '账单详情' }) {
|
|||||||
key: '1',
|
key: '1',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: (
|
children: (
|
||||||
<UnpaidBill item={{ ...data, asset_houses_id: data.asset_houses_id }} />
|
<UnpaidBill
|
||||||
|
item={{ ...data, asset_houses_id: data?.asset_houses_id }}
|
||||||
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -52,7 +54,7 @@ export default function Show({ title = '账单详情' }) {
|
|||||||
key: '2',
|
key: '2',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: (
|
children: (
|
||||||
<PaidBill item={{ ...data, asset_houses_id: data.asset_houses_id }} />
|
<PaidBill item={{ ...data, asset_houses_id: data?.asset_houses_id }} />
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -61,7 +63,7 @@ export default function Show({ title = '账单详情' }) {
|
|||||||
closable: false,
|
closable: false,
|
||||||
children: (
|
children: (
|
||||||
<CancelledBill
|
<CancelledBill
|
||||||
item={{ ...data, asset_houses_id: data.asset_houses_id }}
|
item={{ ...data, asset_houses_id: data?.asset_houses_id }}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -118,7 +118,11 @@ export default function Index({ title = '账单任务' }) {
|
|||||||
<Space key={index}>
|
<Space key={index}>
|
||||||
<TaskShow item={item} title="查看" reload={action?.reload} />
|
<TaskShow item={item} title="查看" reload={action?.reload} />
|
||||||
<MyButtons.Default
|
<MyButtons.Default
|
||||||
title="重新执行"
|
title={
|
||||||
|
item.status === HouseChargeTasksStatusEnum.Completed.value
|
||||||
|
? '重新执行'
|
||||||
|
: '执行'
|
||||||
|
}
|
||||||
type="link"
|
type="link"
|
||||||
color="primary"
|
color="primary"
|
||||||
isConfirm
|
isConfirm
|
||||||
|
|||||||
@ -28,6 +28,7 @@ export default function AssetInfo(props: MyBetaModalFormProps) {
|
|||||||
Apis.HouseCharage.HouseChargeTaskDetails.List,
|
Apis.HouseCharage.HouseChargeTaskDetails.List,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
options={false}
|
||||||
columns={[
|
columns={[
|
||||||
MyColumns.ID(),
|
MyColumns.ID(),
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
import { MyBetaModalFormProps, MyColumns, MyProTableProps } from '@/common';
|
import { MyBetaModalFormProps, MyColumns, MyProTableProps } from '@/common';
|
||||||
import { Apis } from '@/gen/Apis';
|
import { Apis } from '@/gen/Apis';
|
||||||
import { HouseMeterReadingsOperationTypeEnum } from '@/gen/Enums';
|
import {
|
||||||
|
HouseOccupantsHouseRelationEnum,
|
||||||
|
HouseOccupantsRelationWithOwnerEnum,
|
||||||
|
HouseOccupantsStatusEnum,
|
||||||
|
} from '@/gen/Enums';
|
||||||
import { ProTable } from '@ant-design/pro-components';
|
import { ProTable } from '@ant-design/pro-components';
|
||||||
|
|
||||||
export default function Index(props: MyBetaModalFormProps) {
|
export default function Index(props: MyBetaModalFormProps) {
|
||||||
@ -19,42 +23,45 @@ export default function Index(props: MyBetaModalFormProps) {
|
|||||||
// search={false}
|
// search={false}
|
||||||
// options={false}
|
// options={false}
|
||||||
columns={[
|
columns={[
|
||||||
|
{
|
||||||
|
title: '项目名称',
|
||||||
|
dataIndex: ['asset_house', 'full_name'],
|
||||||
|
search: false,
|
||||||
|
},
|
||||||
MyColumns.EnumTag({
|
MyColumns.EnumTag({
|
||||||
title: '操作类型',
|
title: '状态',
|
||||||
dataIndex: 'operation_type',
|
dataIndex: 'status',
|
||||||
valueEnum: HouseMeterReadingsOperationTypeEnum,
|
valueEnum: HouseOccupantsStatusEnum,
|
||||||
|
}),
|
||||||
|
MyColumns.EnumTag({
|
||||||
|
title: '房客关系',
|
||||||
|
dataIndex: 'house_relation',
|
||||||
|
valueEnum: HouseOccupantsHouseRelationEnum,
|
||||||
|
search: false,
|
||||||
|
}),
|
||||||
|
MyColumns.EnumTag({
|
||||||
|
title: '与产权人关系',
|
||||||
|
dataIndex: 'relation_with_owner',
|
||||||
|
valueEnum: HouseOccupantsRelationWithOwnerEnum,
|
||||||
|
search: false,
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
title: '抄表读数',
|
title: '入住日期',
|
||||||
dataIndex: 'current_reading',
|
dataIndex: 'is_live_in',
|
||||||
|
render(_, record) {
|
||||||
|
return `${record?.move_in_date || '未入住'}`;
|
||||||
|
},
|
||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '抄表用量',
|
title: '退房日期',
|
||||||
dataIndex: 'usage_amount',
|
dataIndex: 'move_out_date',
|
||||||
search: false,
|
render(_, record) {
|
||||||
},
|
return `${record?.move_out_date || '-'}`;
|
||||||
{
|
},
|
||||||
title: '抄表时间',
|
|
||||||
dataIndex: 'reading_time',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '抄表人',
|
|
||||||
dataIndex: ['company_employee', 'name'],
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '备注',
|
|
||||||
dataIndex: 'remark',
|
|
||||||
search: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '账单状态',
|
|
||||||
dataIndex: 'bill_status',
|
|
||||||
render: (value) => (value ? '已生成' : '未生成'),
|
|
||||||
search: false,
|
search: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// MyColumns.Option({
|
// MyColumns.Option({
|
||||||
// render: (_, item: any, index, action) => (
|
// render: (_, item: any, index, action) => (
|
||||||
// <Space key={index}>
|
// <Space key={index}>
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export default function Show({ title = '客户档案' }) {
|
|||||||
// 注册标签页
|
// 注册标签页
|
||||||
const { addTab } = usePageTabs({
|
const { addTab } = usePageTabs({
|
||||||
tabKey: `customer-detail-${id}`,
|
tabKey: `customer-detail-${id}`,
|
||||||
tabLabel: `${data?.name}档案` || title,
|
tabLabel: `客户:${data?.name}` || title,
|
||||||
});
|
});
|
||||||
|
|
||||||
const loadShow = () => {
|
const loadShow = () => {
|
||||||
@ -56,7 +56,12 @@ export default function Show({ title = '客户档案' }) {
|
|||||||
<MyPageContainer title={title}>
|
<MyPageContainer title={title}>
|
||||||
<CustomerInfo item={data} reload={loadShow} />
|
<CustomerInfo item={data} reload={loadShow} />
|
||||||
<ProCard style={{ marginTop: 16 }}>
|
<ProCard style={{ marginTop: 16 }}>
|
||||||
<Tabs type="card" items={items} defaultActiveKey="1" size="small" />
|
<Tabs
|
||||||
|
type="card"
|
||||||
|
items={data?.id ? items : []}
|
||||||
|
defaultActiveKey="1"
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
</ProCard>
|
</ProCard>
|
||||||
</MyPageContainer>
|
</MyPageContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user