From 75242bbba28ae8902ddf86d33febb497d79e5fc3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 03 八月 2026 10:45:27 +0800
Subject: [PATCH] 银川 1.首页修改 2.ai辅助功能

---
 src/views/crm/contract/components/detail-list.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/crm/contract/components/detail-list.vue b/src/views/crm/contract/components/detail-list.vue
index 580fb87..146efbf 100644
--- a/src/views/crm/contract/components/detail-list.vue
+++ b/src/views/crm/contract/components/detail-list.vue
@@ -6,7 +6,7 @@
 import { ref } from 'vue';
 import { useRouter } from 'vue-router';
 
-import { useVbenModal } from '../../../../packages/effects/common-ui/src';
+import { useVbenModal } from '@vben/common-ui';
 
 import { Button } from 'ant-design-vue';
 
@@ -24,6 +24,9 @@
 const props = defineProps<{
   bizId: number; // 涓氬姟缂栧彿
   bizType: number; // 涓氬姟绫诲瀷
+  customerId?: number; // 瀹㈡埛缂栧彿锛堝晢鏈�/鑱旂郴浜鸿鎯呬紶鍏ワ級
+  customerName?: string; // 瀹㈡埛鍚嶇О锛堝晢鏈�/鑱旂郴浜鸿鎯呬紶鍏ワ級
+  businessName?: string; // 鍟嗘満鍚嶇О锛堝晢鏈鸿鎯呬紶鍏ワ級
 }>();
 
 const { push } = useRouter();
@@ -52,7 +55,12 @@
         ? {
             customerId: props.bizId,
           }
-        : { businessId: props.bizId },
+        : {
+            businessId: props.bizId,
+            customerId: props.customerId,
+            customerName: props.customerName,
+            businessName: props.businessName,
+          },
     )
     .open();
 }
@@ -77,7 +85,7 @@
               customerId: props.bizId,
               ...formValues,
             });
-          } else if (props.bizType === BizTypeEnum.CRM_CONTACT) {
+          } else if (props.bizType === BizTypeEnum.CRM_BUSINESS) {
             return await getContractPageByBusiness({
               pageNo: page.currentPage,
               pageSize: page.pageSize,

--
Gitblit v1.9.3