From 1876d90e4f8d322f52a8107ffedd68c3e8649ae8 Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 1 Aug 2024 14:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/customer/index.js | 53 +++++ src/views/base/customer/CustomerMainForm.vue | 179 +++++++++++++++ src/views/base/customer/index.vue | 228 +++++++++++++++++++ 3 files changed, 460 insertions(+) create mode 100644 src/api/base/customer/index.js create mode 100644 src/views/base/customer/CustomerMainForm.vue create mode 100644 src/views/base/customer/index.vue diff --git a/src/api/base/customer/index.js b/src/api/base/customer/index.js new file mode 100644 index 0000000..8ddb31c --- /dev/null +++ b/src/api/base/customer/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建客户管理 +export function createCustomerMain(data) { + return request({ + url: '/base/customer-main/create', + method: 'post', + data: data + }) +} + +// 更新客户管理 +export function updateCustomerMain(data) { + return request({ + url: '/base/customer-main/update', + method: 'put', + data: data + }) +} + +// 删除客户管理 +export function deleteCustomerMain(id) { + return request({ + url: '/base/customer-main/delete?id=' + id, + method: 'delete' + }) +} + +// 获得客户管理 +export function getCustomerMain(id) { + return request({ + url: '/base/customer-main/get?id=' + id, + method: 'get' + }) +} + +// 获得客户管理分页 +export function getCustomerMainPage(params) { + return request({ + url: '/base/customer-main/page', + method: 'get', + params + }) +} +// 导出客户管理 Excel +export function exportCustomerMainExcel(params) { + return request({ + url: '/base/customer-main/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/views/base/customer/CustomerMainForm.vue b/src/views/base/customer/CustomerMainForm.vue new file mode 100644 index 0000000..be8d3e7 --- /dev/null +++ b/src/views/base/customer/CustomerMainForm.vue @@ -0,0 +1,179 @@ + + + \ No newline at end of file diff --git a/src/views/base/customer/index.vue b/src/views/base/customer/index.vue new file mode 100644 index 0000000..1b6ec9c --- /dev/null +++ b/src/views/base/customer/index.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file