Appearance
获取商机列表 API
| Path | Method | Created At |
|---|---|---|
| /api/business/opportunities/paginate | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| page | integer,min:1,max:100 | 页码错误 |
| page_size | integer,min:5,max:1000 | 每页数量错误 |
| customer_id | string,size:24 | trans:validate.CUSTOMER_NOT_FOUND |
| is_archived | App\Rules\BoolRule | 是否归档字段错误 |
| conditions | array | 查询条件错误 |
| sorts | array | 排序字段不正确 |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | int | 1 | 商机编号 |
| boNo | string | 32acd | 商机编号 |
| name | string | 智慧城市大数据平台项目 | 商机名称 |
| customerId | string | 32ac32 | 客户编号 |
| customerName | string | 金华公安局 | 客户名称 |
| industryId | int | 1 | 行业编号 |
| industryPath | array | ["政府", "气象"] | 行业名称 |
| agentId | string | 89abc23 | 渠道ID |
| totalAmount | string | 123456789 | 总价 |
| projectType | int | 2 | 项目类型编号 |
| projectTypeName | string | 服务器 | 项目类型名称 |
| projectLevel | int | 3 | 项目等级编号 |
| projectLevelName | string | 公司级项目 | 项目等级名称 |
| createdBy | int | 1 | 负责人ID |
| createdByName | string | 张三 | 负责人姓名 |
| currentStage | string | promote_bidding_process | 项目阶段名称 |
| currentStageText | string | 招投标 > 推进招标流程 | 项目阶段名称 |
| areaCode | string | 330203 | 区域 |
| estimatedSigningDate | string | 2021-08-01 12:00:00 | 预计签约时间 |
| createdAt | string | 2021-08-01 12:00:00 | 创建时间 |
| techLeadId | int | 11 | 技术负责人编号 |
| techLeadName | string | 周伯通 | 技术负责人名称 |
| projectJoinMethod | int | 1 | 项目参与方式 |
| salesLeadId | int | 12 | 销售负责人编号 |
| salesLeadName | string | 老顽童 | 销售负责人名字 |
| bidTime | string | 2024-12-18 | 投标时间 |
| archivedAt | string | 2025-01-02 11:08:00 | 归档时间 |
| archivedByName | string | 郭靖 | 归档人 |
| isDirectContract | bool | true | 是否直签 |
| reportStatus | string | 已报备 | 报备情况 |
| projectCertainty | int | 1 | 项目把握度 |
| projectCertaintyName | string | 2 | 项目把握度 |
TypeScript Result Example:
TypeScript
interface Result {
/** 商机编号 */
id: number;
/** 商机编号 */
boNo: string;
/** 商机名称 */
name: string;
/** 客户编号 */
customerId: string;
/** 客户名称 */
customerName: string;
/** 行业编号 */
industryId: number;
/** 行业名称 */
industryPath: any;
/** 渠道ID */
agentId: string;
/** 总价 */
totalAmount: string;
/** 项目类型编号 */
projectType: number;
/** 项目类型名称 */
projectTypeName: string;
/** 项目等级编号 */
projectLevel: number;
/** 项目等级名称 */
projectLevelName: string;
/** 负责人ID */
createdBy: number;
/** 负责人姓名 */
createdByName: string;
/** 项目阶段名称 */
currentStage: string;
/** 项目阶段名称 */
currentStageText: string;
/** 区域 */
areaCode: string;
/** 预计签约时间 */
estimatedSigningDate: string;
/** 创建时间 */
createdAt: string;
/** 技术负责人编号 */
techLeadId: number;
/** 技术负责人名称 */
techLeadName: string;
/** 项目参与方式 */
projectJoinMethod: number;
/** 销售负责人编号 */
salesLeadId: number;
/** 销售负责人名字 */
salesLeadName: string;
/** 投标时间 */
bidTime: string;
/** 归档时间 */
archivedAt: string;
/** 归档人 */
archivedByName: string;
/** 是否直签 */
isDirectContract: any;
/** 报备情况 */
reportStatus: string;
/** 项目把握度 */
projectCertainty: number;
/** 项目把握度 */
projectCertaintyName: string;
}