From 166eaf3e5f939906e01c631f0ffc1b9d78d74b8b Mon Sep 17 00:00:00 2001 From: hupeng Date: Sat, 9 Nov 2024 14:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E3=80=81=E5=8F=91=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/crm/crmcustomer/index.ts | 8 + .../components/email/MailTemplateSendForm.vue | 145 +++++++++++++++++ .../components/sms/SmsTemplateSendForm.vue | 154 ++++++++++++++++++ .../src/views/crm/crmcustomer/index.vue | 45 ++++- 4 files changed, 344 insertions(+), 8 deletions(-) create mode 100644 yshop-crm-vue/src/views/components/email/MailTemplateSendForm.vue create mode 100644 yshop-crm-vue/src/views/components/sms/SmsTemplateSendForm.vue diff --git a/yshop-crm-vue/src/api/crm/crmcustomer/index.ts b/yshop-crm-vue/src/api/crm/crmcustomer/index.ts index 101dd29..2457c7f 100644 --- a/yshop-crm-vue/src/api/crm/crmcustomer/index.ts +++ b/yshop-crm-vue/src/api/crm/crmcustomer/index.ts @@ -76,6 +76,14 @@ export const CustomerApi = { return await request.download({ url: `/crm/customer/export-excel`, params }) }, + sendSms: async (data) => { + return await request.post({ url: `/crm/customer/send-sms`, data }) + }, + sendMail: async (data) => { + return await request.post({ url: `/crm/customer/send-mail`, data }) + }, + + // ==================== 子表(联系人) ==================== // 获得联系人列表 diff --git a/yshop-crm-vue/src/views/components/email/MailTemplateSendForm.vue b/yshop-crm-vue/src/views/components/email/MailTemplateSendForm.vue new file mode 100644 index 0000000..bb4bfe5 --- /dev/null +++ b/yshop-crm-vue/src/views/components/email/MailTemplateSendForm.vue @@ -0,0 +1,145 @@ + + diff --git a/yshop-crm-vue/src/views/components/sms/SmsTemplateSendForm.vue b/yshop-crm-vue/src/views/components/sms/SmsTemplateSendForm.vue new file mode 100644 index 0000000..8b2a666 --- /dev/null +++ b/yshop-crm-vue/src/views/components/sms/SmsTemplateSendForm.vue @@ -0,0 +1,154 @@ + + diff --git a/yshop-crm-vue/src/views/crm/crmcustomer/index.vue b/yshop-crm-vue/src/views/crm/crmcustomer/index.vue index e9818cc..d3d0c9c 100644 --- a/yshop-crm-vue/src/views/crm/crmcustomer/index.vue +++ b/yshop-crm-vue/src/views/crm/crmcustomer/index.vue @@ -124,22 +124,28 @@ > 新增 - + 发短信 + + + 发邮件 + - + +