|
|
@@ -7,6 +7,8 @@ import ContractsTab from './client-detail/ContractsTab';
|
|
|
import ExpensesTab from './client-detail/ExpensesTab';
|
|
|
import FilesTab from './client-detail/FilesTab';
|
|
|
import LogsTab from './client-detail/LogsTab';
|
|
|
+import OrderRecordsTab from './client-detail/OrderRecordsTab';
|
|
|
+import FollowUpRecordsTab from './client-detail/FollowUpRecordsTab';
|
|
|
import { useQuery } from '@tanstack/react-query';
|
|
|
import { clientClient } from '@/client/api';
|
|
|
import type { InferResponseType } from 'hono/client';
|
|
|
@@ -67,6 +69,16 @@ const ClientDetailModal: React.FC<ClientDetailModalProps> = ({ clientId, visible
|
|
|
label: '合同记录',
|
|
|
children: clientId ? <ContractsTab clientId={clientId} /> : null,
|
|
|
},
|
|
|
+ {
|
|
|
+ key: 'order-records',
|
|
|
+ label: '订单记录',
|
|
|
+ children: clientId ? <OrderRecordsTab clientId={clientId} /> : null,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: 'follow-up-records',
|
|
|
+ label: '跟单记录',
|
|
|
+ children: clientId ? <FollowUpRecordsTab clientId={clientId} /> : null,
|
|
|
+ },
|
|
|
{
|
|
|
key: 'expenses',
|
|
|
label: '费用记录',
|