| | |
| | | import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src'; |
| | | import type { PageParam, PageResult } from '@vben/request'; |
| | | |
| | | import { requestClient } from '#/api/request'; |
| | | |
| | |
| | | id?: number; |
| | | name: string; |
| | | percent?: number; |
| | | endStatus?: number; |
| | | key?: string; |
| | | sort?: number; |
| | | } |
| | | } |
| | | |
| | | /** 默认商机状态 */ |
| | | export const DEFAULT_STATUSES = [ |
| | | { |
| | | endStatus: 1, |
| | | key: '结束', |
| | | name: '赢单', |
| | | percent: 100, |
| | | }, |
| | | { |
| | | endStatus: 2, |
| | | key: '结束', |
| | | name: '输单', |
| | | percent: 0, |
| | | }, |
| | | { |
| | | endStatus: 3, |
| | | key: '结束', |
| | | name: '无效', |
| | | percent: 0, |
| | | }, |
| | | ] satisfies CrmBusinessStatusApi.BusinessStatusType[]; |
| | | |
| | | /** 查询商机状态组列表 */ |
| | | export function getBusinessStatusPage(params: PageParam) { |