From 288aa72cdd3ebd889118d02f8e66ca606ddc4d09 Mon Sep 17 00:00:00 2001 From: Wanwan <913752709@qq.com> Date: Thu, 9 Nov 2023 00:05:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20CRM=20=E5=AE=A2=E6=88=B7=E5=85=AC?= =?UTF-8?q?=E6=B5=B7=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customerPoolConf/index.ts | 19 ++++ src/views/crm/customerPoolConf/index.vue | 134 +++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 src/api/crm/customerPoolConf/index.ts create mode 100644 src/views/crm/customerPoolConf/index.vue diff --git a/src/api/crm/customerPoolConf/index.ts b/src/api/crm/customerPoolConf/index.ts new file mode 100644 index 00000000..8234ba36 --- /dev/null +++ b/src/api/crm/customerPoolConf/index.ts @@ -0,0 +1,19 @@ +import request from '@/config/axios' + +export interface CustomerPoolConfigVO { + enabled?: boolean + contactExpireDays?: number + dealExpireDays?: number + notifyEnabled?: boolean + notifyDays: number +} + +// 获取客户公海规则设置 +export const getCustomerPoolConfig = async () => { + return await request.get({ url: `/crm/customer-pool-config/get` }) +} + +// 更新客户公海规则设置 +export const updateCustomerPoolConfig = async (data: ConfigVO) => { + return await request.put({ url: `/crm/customer-pool-config/update`, data }) +} diff --git a/src/views/crm/customerPoolConf/index.vue b/src/views/crm/customerPoolConf/index.vue new file mode 100644 index 00000000..518c6f3d --- /dev/null +++ b/src/views/crm/customerPoolConf/index.vue @@ -0,0 +1,134 @@ + + +