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/company/CompanyForm.vue b/src/views/base/company/CompanyForm.vue index f05b057..9337b71 100644 --- a/src/views/base/company/CompanyForm.vue +++ b/src/views/base/company/CompanyForm.vue @@ -2,48 +2,49 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -