From 26daa3a1ff1e270666a964ea04430c443c53bfb4 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 27 Jan 2024 15:02:25 +0800 Subject: [PATCH] =?UTF-8?q?CRM-=E5=AE=A2=E6=88=B7=EF=BC=9A=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E5=AE=A2=E6=88=B7=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customer/index.ts | 5 + src/views/crm/customer/CustomerImportForm.vue | 134 ++++++++++++++++++ src/views/crm/customer/index.vue | 11 +- src/views/system/user/UserImportForm.vue | 1 + 4 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 src/views/crm/customer/CustomerImportForm.vue diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 4542c86a..004f642d 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -63,6 +63,11 @@ export const exportCustomer = async (params: any) => { return await request.download({ url: `/crm/customer/export-excel`, params }) } +// 下载客户导入模板 +export const importCustomerTemplate = () => { + return request.download({ url: '/crm/customer/get-import-template' }) +} + // 客户列表 export const getSimpleCustomerList = async () => { return await request.get({ url: `/crm/customer/list-all-simple` }) diff --git a/src/views/crm/customer/CustomerImportForm.vue b/src/views/crm/customer/CustomerImportForm.vue new file mode 100644 index 00000000..7a74acf9 --- /dev/null +++ b/src/views/crm/customer/CustomerImportForm.vue @@ -0,0 +1,134 @@ + + diff --git a/src/views/crm/customer/index.vue b/src/views/crm/customer/index.vue index b2cee2f7..2c441d99 100644 --- a/src/views/crm/customer/index.vue +++ b/src/views/crm/customer/index.vue @@ -84,6 +84,10 @@ 新增 + + + 导入 + +