From a37f3ba8de2c8f74a24bc2cb8191a0cdba9ba538 Mon Sep 17 00:00:00 2001 From: PQZ Date: Thu, 1 Aug 2024 17:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/customer/index.js | 106 ++--- src/utils/dict.js | 13 + src/views/base/customer/CustomerMainForm.vue | 360 ++++++++-------- src/views/base/customer/index.vue | 432 +++++++++---------- 4 files changed, 451 insertions(+), 460 deletions(-) diff --git a/src/api/base/customer/index.js b/src/api/base/customer/index.js index 8ddb31c..d6a6200 100644 --- a/src/api/base/customer/index.js +++ b/src/api/base/customer/index.js @@ -1,53 +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 +import request from '@/utils/request' + +// 创建客户管理 +export function createCustomerMain(data) { + return request({ + url: '/base/custom/create', + method: 'post', + data: data + }) +} + +// 更新客户管理 +export function updateCustomerMain(data) { + return request({ + url: '/base/custom/update', + method: 'put', + data: data + }) +} + +// 删除客户管理 +export function deleteCustomerMain(id) { + return request({ + url: '/base/custom/delete?id=' + id, + method: 'delete' + }) +} + +// 获得客户管理 +export function getCustomerMain(id) { + return request({ + url: '/base/custom/get?id=' + id, + method: 'get' + }) +} + +// 获得客户管理分页 +export function getCustomerMainPage(params) { + return request({ + url: '/base/custom/page', + method: 'get', + params + }) +} +// 导出客户管理 Excel +export function exportCustomerMainExcel(params) { + return request({ + url: '/base/custom/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index 29b05f7..e83f183 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -81,6 +81,19 @@ export const DICT_TYPE = { PROMOTION_COUPON_TAKE_TYPE: 'promotion_coupon_take_type', // 优惠劵的领取方式 PROMOTION_ACTIVITY_STATUS: 'promotion_activity_status', // 优惠活动的状态 PROMOTION_CONDITION_TYPE: 'promotion_condition_type', // 营销的条件类型枚举 + // ==========base模块 ========== + //客户类型字典编码 + DICT_CUS_TYPE : "cus_type", + //客户初始来源字典编码 + DICT_CUS_DATA_FROM : 'cus_data_from', + //业务分类字典编码 + DICT_CUS_BUSI_TYPE : 'cus_busi_type', + //客户注册方式字典编码 + DICT_SIGN_TYPE : 'cus_sign_type', + //性别 + DICT_SYS_USER_SEX : 'system_user_sex', + //客户状态 + DICT_CUS_INFO_STATUS : 'cus_info_status', } /** diff --git a/src/views/base/customer/CustomerMainForm.vue b/src/views/base/customer/CustomerMainForm.vue index be8d3e7..f5f298e 100644 --- a/src/views/base/customer/CustomerMainForm.vue +++ b/src/views/base/customer/CustomerMainForm.vue @@ -1,179 +1,181 @@ - - - \ No newline at end of file + + + diff --git a/src/views/base/customer/index.vue b/src/views/base/customer/index.vue index 1b6ec9c..42903f7 100644 --- a/src/views/base/customer/index.vue +++ b/src/views/base/customer/index.vue @@ -1,228 +1,204 @@ - - - \ No newline at end of file + + +