Browse Source

fix: 【crm】客户详情页,添加 customer-id 属性到联系人和商机组件,以确保正确传递客户 ID

YunaiV 4 months ago
parent
commit
a10fcb389c
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/views/crm/customer/detail/index.vue

+ 10 - 2
src/views/crm/customer/detail/index.vue

@@ -46,7 +46,11 @@
         <CustomerDetailsInfo :customer="customer" />
       </el-tab-pane>
       <el-tab-pane label="联系人" lazy>
-        <ContactList :biz-id="customer.id!" :biz-type="BizTypeEnum.CRM_CUSTOMER" />
+        <ContactList
+          :biz-id="customer.id!"
+          :customer-id="customer.id!"
+          :biz-type="BizTypeEnum.CRM_CUSTOMER"
+        />
       </el-tab-pane>
       <el-tab-pane label="团队成员">
         <PermissionList
@@ -58,7 +62,11 @@
         />
       </el-tab-pane>
       <el-tab-pane label="商机" lazy>
-        <BusinessList :biz-id="customer.id!" :biz-type="BizTypeEnum.CRM_CUSTOMER" />
+        <BusinessList
+          :biz-id="customer.id!"
+          :customer-id="customer.id!"
+          :biz-type="BizTypeEnum.CRM_CUSTOMER"
+        />
       </el-tab-pane>
       <el-tab-pane label="合同" lazy>
         <ContractList :biz-id="customer.id!" :biz-type="BizTypeEnum.CRM_CUSTOMER" />