gaoluyang
2026-08-12 21a2d6f813f3d58b494fde010f66bd84ce2f1d41
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,