From bbf6c16b8d832ea23f901e5211c8e42a491bb252 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 22 Feb 2024 20:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=95=86=E6=9C=BA=E7=8A=B6=E6=80=81=E7=9A=84=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/business/index.ts | 5 + src/api/crm/business/status/index.ts | 5 + .../crm/business/BusinessUpdateStatusForm.vue | 108 ++++++++++++++++++ src/views/crm/business/detail/index.vue | 17 +++ 4 files changed, 135 insertions(+) create mode 100644 src/views/crm/business/BusinessUpdateStatusForm.vue diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 05b0d5cd..32281d2b 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -72,6 +72,11 @@ export const updateBusiness = async (data: BusinessVO) => { return await request.put({ url: `/crm/business/update`, data }) } +// 修改 CRM 商机状态 +export const updateBusinessStatus = async (data: BusinessVO) => { + return await request.put({ url: `/crm/business/update-status`, data }) +} + // 删除 CRM 商机 export const deleteBusiness = async (id: number) => { return await request.delete({ url: `/crm/business/delete?id=` + id }) diff --git a/src/api/crm/business/status/index.ts b/src/api/crm/business/status/index.ts index 4f686819..cddaa5a2 100644 --- a/src/api/crm/business/status/index.ts +++ b/src/api/crm/business/status/index.ts @@ -61,3 +61,8 @@ export const deleteBusinessStatus = async (id: number) => { export const getBusinessStatusTypeSimpleList = async () => { return await request.get({ url: `/crm/business-status/type-simple-list` }) } + +// 获得商机阶段列表 +export const getBusinessStatusSimpleList = async (typeId: number) => { + return await request.get({ url: `/crm/business-status/status-simple-list`, params: { typeId } }) +} diff --git a/src/views/crm/business/BusinessUpdateStatusForm.vue b/src/views/crm/business/BusinessUpdateStatusForm.vue new file mode 100644 index 00000000..4f2f761b --- /dev/null +++ b/src/views/crm/business/BusinessUpdateStatusForm.vue @@ -0,0 +1,108 @@ + + diff --git a/src/views/crm/business/detail/index.vue b/src/views/crm/business/detail/index.vue index 2d17f39d..7ef2b3a0 100644 --- a/src/views/crm/business/detail/index.vue +++ b/src/views/crm/business/detail/index.vue @@ -3,6 +3,14 @@ 编辑 + + 变更商机状态 + 转移 @@ -41,8 +49,10 @@ + +