From af4f7f963022e745b9ebefa2470d81879e62afc5 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 5 Jun 2025 19:00:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E9=85=8D=E5=AE=A2=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/crm/customer/modules/detail.vue | 28 ++++-- .../customer/poolConfig/distribute-form.vue | 90 +++++++++++++++++++ 2 files changed, 113 insertions(+), 5 deletions(-) create mode 100644 apps/web-antd/src/views/crm/customer/poolConfig/distribute-form.vue diff --git a/apps/web-antd/src/views/crm/customer/modules/detail.vue b/apps/web-antd/src/views/crm/customer/modules/detail.vue index 9a945705b..4f0af0152 100644 --- a/apps/web-antd/src/views/crm/customer/modules/detail.vue +++ b/apps/web-antd/src/views/crm/customer/modules/detail.vue @@ -17,6 +17,10 @@ import { useDescription } from '#/components/description'; import { useDetailSchema } from '../data'; +const BusinessList = defineAsyncComponent( + () => import('#/views/crm/business/modules/detail-list.vue'), +); + const CustomerDetailsInfo = defineAsyncComponent( () => import('./detail-info.vue'), ); @@ -33,8 +37,8 @@ const CustomerForm = defineAsyncComponent( () => import('#/views/crm/customer/modules/form.vue'), ); -const BusinessList = defineAsyncComponent( - () => import('#/views/crm/business/modules/detail-list.vue'), +const DistributeForm = defineAsyncComponent( + () => import('#/views/crm/customer/poolConfig/distribute-form.vue'), ); const FollowUp = defineAsyncComponent( @@ -84,6 +88,11 @@ const [TransferModal, transferModalApi] = useVbenModal({ destroyOnClose: true, }); +const [DistributeModal, distributeModalApi] = useVbenModal({ + connectedComponent: DistributeForm, + destroyOnClose: true, +}); + /** 加载详情 */ async function loadCustomerDetail() { loading.value = true; @@ -131,7 +140,7 @@ function handleReceive() { /** 分配客户 */ function handleDistributeForm() { - transferModalApi.setData({ id: customerId.value }).open(); + distributeModalApi.setData({ id: customerId.value }).open(); } /** 客户放入公海 */ @@ -175,6 +184,7 @@ onMounted(async () => { +