From ddfceddf4a760a906badcfd4c8636755982a6de2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 27 Nov 2023 20:33:53 +0800 Subject: [PATCH] =?UTF-8?q?crm=EF=BC=9Acode=20review=20=E8=81=94=E7=B3=BB?= =?UTF-8?q?=E4=BA=BA=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/contact/index.ts | 12 +- src/api/crm/customer/index.ts | 5 +- src/views/crm/contact/ContactForm.vue | 110 +++++++++++++----- .../crm/contact/detail/ContactDetails.vue | 7 -- 4 files changed, 88 insertions(+), 46 deletions(-) diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index e980d361..de4710e8 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -1,10 +1,3 @@ -/* - * @Author: zyna - * @Date: 2023-11-05 13:34:41 - * @LastEditTime: 2023-11-26 20:47:04 - * @FilePath: \yudao-ui-admin-vue3\src\api\crm\contact\index.ts - * @Description: - */ import request from '@/config/axios' export interface ContactVO { @@ -28,8 +21,8 @@ export interface ContactVO { creatorName: string updateTime?: Date createTime?: Date - customerName: string, - areaName: string, + customerName: string + areaName: string ownerUserName: string } @@ -62,6 +55,7 @@ export const deleteContact = async (id: number) => { export const exportContact = async (params) => { return await request.download({ url: `/crm/contact/export-excel`, params }) } + export const simpleAllList = async () => { return await request.get({ url: `/crm/contact/simple-all-list` }) } diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 30d8981a..5ef43950 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -62,7 +62,8 @@ export const deleteCustomer = async (id: number) => { export const exportCustomer = async (params) => { return await request.download({ url: `/crm/customer/export-excel`, params }) } -//客户列表 + +// 客户列表 export const queryAllList = async () => { return await request.get({ url: `/crm/customer/query-all-list` }) -} \ No newline at end of file +} diff --git a/src/views/crm/contact/ContactForm.vue b/src/views/crm/contact/ContactForm.vue index 5254bffd..4112afe2 100644 --- a/src/views/crm/contact/ContactForm.vue +++ b/src/views/crm/contact/ContactForm.vue @@ -1,6 +1,12 @@