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