| | |
| | | const props = defineProps<{ |
| | | bizId: number; // 业务编号 |
| | | bizType: number; // 业务类型 |
| | | customerId?: number; // 客户编号(商机/联系人详情传入) |
| | | customerName?: string; // 客户名称(商机/联系人详情传入) |
| | | businessName?: string; // 商机名称(商机详情传入) |
| | | }>(); |
| | | |
| | | const { push } = useRouter(); |
| | |
| | | ? { |
| | | customerId: props.bizId, |
| | | } |
| | | : { businessId: props.bizId }, |
| | | : { |
| | | businessId: props.bizId, |
| | | customerId: props.customerId, |
| | | customerName: props.customerName, |
| | | businessName: props.businessName, |
| | | }, |
| | | ) |
| | | .open(); |
| | | } |
| | |
| | | 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, |