diff --git a/src/api/crm/business/status/index.ts b/src/api/crm/business/status/index.ts index 567dae31..4f686819 100644 --- a/src/api/crm/business/status/index.ts +++ b/src/api/crm/business/status/index.ts @@ -11,6 +11,27 @@ export interface BusinessStatusTypeVO { } } +export const DEFAULT_STATUSES = [ + { + endStatus: 1, + key: '结束', + name: '赢单', + percent: 100 + }, + { + endStatus: 2, + key: '结束', + name: '输单', + percent: 0 + }, + { + endStatus: 3, + key: '结束', + name: '无效', + percent: 0 + } +] + // 查询商机状态组列表 export const getBusinessStatusPage = async (params: any) => { return await request.get({ url: `/crm/business-status/page`, params }) @@ -31,6 +52,11 @@ export const getBusinessStatus = async (id: number) => { return await request.get({ url: `/crm/business-status/get?id=` + id }) } +// 删除商机状态 +export const deleteBusinessStatus = async (id: number) => { + return await request.delete({ url: `/crm/business-status/delete?id=` + id }) +} + // 获得商机状态组列表 export const getBusinessStatusTypeSimpleList = async () => { return await request.get({ url: `/crm/business-status/type-simple-list` }) diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 48efea98..d78cf935 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -50,6 +50,7 @@ placeholder="请选择商机状态组" clearable class="w-1/1" + :disabled="formType !== 'create'" > - + - +