From 8f8591fc45eb7ea0e948528d66191d80f0e046d7 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 24 Feb 2024 16:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20CRM=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=90=88=E5=90=8C=E9=85=8D=E7=BD=AE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contract/config/index.ts | 16 ++++ src/views/crm/contract/config/index.vue | 100 ++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 src/api/crm/contract/config/index.ts create mode 100644 src/views/crm/contract/config/index.vue diff --git a/src/api/crm/contract/config/index.ts b/src/api/crm/contract/config/index.ts new file mode 100644 index 00000000..0c7ad20c --- /dev/null +++ b/src/api/crm/contract/config/index.ts @@ -0,0 +1,16 @@ +import request from '@/config/axios' + +export interface ContractConfigVO { + notifyEnabled?: boolean + notifyDays?: number +} + +// 获取合同配置 +export const getContractConfig = async () => { + return await request.get({ url: `/crm/contract-config/get` }) +} + +// 更新合同配置 +export const saveContractConfig = async (data: ContractConfigVO) => { + return await request.put({ url: `/crm/contract-config/save`, data }) +} diff --git a/src/views/crm/contract/config/index.vue b/src/views/crm/contract/config/index.vue new file mode 100644 index 00000000..d8c11d94 --- /dev/null +++ b/src/views/crm/contract/config/index.vue @@ -0,0 +1,100 @@ + +