getDatas (statistics/funnel.ts)

ruoyi-office-vben · apps/web-antd/src/api/crm/statistics/funnel.ts · typescript · MIT
crm

TypeScript API wrappers for CRM funnel statistics, providing data retrieval for various metrics.

// Source: https://github.com/yuqing2026/ruoyi-office-vben | License: MIT | Copyright 2024-present, Vben
// Provided via justclaw.it.com; keep this notice with the code.
import type { PageResult } from '@vben/request';

import { requestClient } from '#/api/request';

export namespace CrmStatisticsFunnelApi {
  /** 销售漏斗统计数据响应 */
  export interface FunnelSummaryRespVO {
    customerCount: number; // 客户数
    businessCount: number; // 商机数
    businessWinCount: number; // 赢单数
  }

  /** 商机分析(按日期)响应 */
  export interface BusinessSummaryByDateRespVO {
    time: string; // 时间
    businessCreateCount: number; // 商机数
    totalPrice: number | string; // 商机金额
  }

  /** 商机转化率分析(按日期)响应 */
  export interface BusinessInversionRateSummaryByDateRespVO {
    time: string; // 时间
    businessCount: number; //

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key