From a152ae66b695a8057c4171cf0da304b3dada82eb Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 21 Feb 2024 21:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=95=86=E6=9C=BA=E7=9A=84=E6=96=B0=E5=A2=9E=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 29605800b519a19f5dcfe7c32f86e0b52cc5e3f2) --- src/api/crm/business/status/index.ts | 26 +++++++++++++++ src/views/crm/business/BusinessForm.vue | 1 + .../business/status/BusinessStatusForm.vue | 32 ++++++++++++++----- src/views/crm/business/status/index.vue | 24 ++------------ 4 files changed, 53 insertions(+), 30 deletions(-) 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'" > - + - +