From 4cdab6fb3efe97c26023fba411c0b8af1b67b64d Mon Sep 17 00:00:00 2001 From: Wanwan <913752709@qq.com> Date: Sat, 28 Oct 2023 19:50:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customer/index.ts | 6 +- src/views/crm/customer/CustomerForm.vue | 83 +++++++------------------ src/views/crm/customer/index.vue | 28 ++------- 3 files changed, 30 insertions(+), 87 deletions(-) diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 16ccb355..b9d67a75 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -8,14 +8,16 @@ export interface CustomerVO { mobile: string telephone: string website: string + qq: string + wechat: string + email: string + description: string remark: string ownerUserId: number roUserIds: string rwUserIds: string areaId: number detailAddress: string - longitude: string - latitude: string contactLastTime: Date contactNextTime: Date } diff --git a/src/views/crm/customer/CustomerForm.vue b/src/views/crm/customer/CustomerForm.vue index 52ff923a..5825cf4b 100644 --- a/src/views/crm/customer/CustomerForm.vue +++ b/src/views/crm/customer/CustomerForm.vue @@ -10,28 +10,6 @@ - - - - {{ dict.label }} - - - - - - - {{ dict.label }} - - - @@ -41,38 +19,27 @@ + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - { mobile: undefined, telephone: undefined, website: undefined, + qq: undefined, + wechat: undefined, + email: undefined, + description: undefined, remark: undefined, - ownerUserId: undefined, - roUserIds: undefined, - rwUserIds: undefined, areaId: undefined, detailAddress: undefined, - longitude: undefined, - latitude: undefined, - contactLastTime: undefined, contactNextTime: undefined } formRef.value?.resetFields() diff --git a/src/views/crm/customer/index.vue b/src/views/crm/customer/index.vue index 15a0d144..0fb6b695 100644 --- a/src/views/crm/customer/index.vue +++ b/src/views/crm/customer/index.vue @@ -26,24 +26,6 @@ class="!w-240px" /> - - - - - - 搜索 重置 @@ -86,12 +68,14 @@ + + + + - - Date: Sun, 29 Oct 2023 00:03:11 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/customer/index.ts | 3 ++ src/utils/dict.ts | 5 +++- src/views/crm/customer/CustomerForm.vue | 40 +++++++++++++++++++++++-- src/views/crm/customer/index.vue | 15 ++++++++++ 4 files changed, 59 insertions(+), 4 deletions(-) diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index b9d67a75..0cbba590 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -3,6 +3,9 @@ import request from '@/config/axios' export interface CustomerVO { id: number name: string + industryId: number + level: number + source: number followUpStatus: boolean lockStatus: boolean mobile: string diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 489d8e4b..85e08e67 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -188,5 +188,8 @@ export enum DICT_TYPE { // ========== CRM - 客户管理模块 ========== CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status', - CRM_RETURN_TYPE = 'crm_return_type' + CRM_RETURN_TYPE = 'crm_return_type', + CRM_CUSTOMER_INDUSTRY = 'crm_customer_industry', + CRM_CUSTOMER_LEVEL = 'crm_customer_level', + CRM_CUSTOMER_SOURCE = 'crm_customer_source' } diff --git a/src/views/crm/customer/CustomerForm.vue b/src/views/crm/customer/CustomerForm.vue index 5825cf4b..f1758b92 100644 --- a/src/views/crm/customer/CustomerForm.vue +++ b/src/views/crm/customer/CustomerForm.vue @@ -13,6 +13,36 @@ + + + + + + + + + + + + + + + @@ -56,7 +86,7 @@