From 0d1901abdb0ba091341c74303d890f55b8a23965 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 30 Sep 2025 13:08:46 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90crm?= =?UTF-8?q?=E3=80=91=E4=BC=98=E5=8C=96=20backlog=20=E7=9A=84=E6=95=B4?= =?UTF-8?q?=E4=BD=93=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/crm/contract/index.ts | 1 + apps/web-antd/src/views/crm/backlog/data.ts | 1 + apps/web-antd/src/views/crm/backlog/index.vue | 6 +++--- .../src/views/crm/backlog/modules/clue-follow-list.vue | 1 + .../src/views/crm/backlog/modules/contract-audit-list.vue | 3 ++- .../src/views/crm/backlog/modules/contract-remind-list.vue | 4 +++- .../src/views/crm/backlog/modules/customer-follow-list.vue | 1 + .../crm/backlog/modules/customer-put-pool-remind-list.vue | 3 ++- .../crm/backlog/modules/customer-today-contact-list.vue | 5 +++-- .../src/views/crm/backlog/modules/receivable-audit-list.vue | 3 ++- .../crm/backlog/modules/receivable-plan-remind-list.vue | 3 ++- 11 files changed, 21 insertions(+), 10 deletions(-) diff --git a/apps/web-antd/src/api/crm/contract/index.ts b/apps/web-antd/src/api/crm/contract/index.ts index a4f2a2c7..53abb523 100644 --- a/apps/web-antd/src/api/crm/contract/index.ts +++ b/apps/web-antd/src/api/crm/contract/index.ts @@ -50,6 +50,7 @@ export namespace CrmContractApi { creatorName: string; updateTime?: Date; products?: ContractProduct[]; + contactName?: string; } } diff --git a/apps/web-antd/src/views/crm/backlog/data.ts b/apps/web-antd/src/views/crm/backlog/data.ts index 4bd32500..d0b66d13 100644 --- a/apps/web-antd/src/views/crm/backlog/data.ts +++ b/apps/web-antd/src/views/crm/backlog/data.ts @@ -46,6 +46,7 @@ export const CONTRACT_EXPIRY_TYPE = [ { label: '已过期', value: 2 }, ]; +/** 左侧菜单 */ export const useLeftSides = ( customerTodayContactCount: Ref, clueFollowCount: Ref, diff --git a/apps/web-antd/src/views/crm/backlog/index.vue b/apps/web-antd/src/views/crm/backlog/index.vue index 4dffc497..7c51c389 100644 --- a/apps/web-antd/src/views/crm/backlog/index.vue +++ b/apps/web-antd/src/views/crm/backlog/index.vue @@ -78,12 +78,12 @@ async function getCount() { } /** 激活时 */ -onActivated(async () => { +onActivated(() => { getCount(); }); /** 初始化 */ -onMounted(async () => { +onMounted(() => { getCount(); }); @@ -104,9 +104,9 @@ onMounted(async () => { diff --git a/apps/web-antd/src/views/crm/backlog/modules/clue-follow-list.vue b/apps/web-antd/src/views/crm/backlog/modules/clue-follow-list.vue index 4941a481..ec06445f 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/clue-follow-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/clue-follow-list.vue @@ -53,6 +53,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/contract-audit-list.vue b/apps/web-antd/src/views/crm/backlog/modules/contract-audit-list.vue index 15ad94a9..98f944c6 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/contract-audit-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/contract-audit-list.vue @@ -53,7 +53,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: AUDIT_STATUS, }, - defaultValue: 10, + defaultValue: AUDIT_STATUS[0]!.value, }, ], }, @@ -75,6 +75,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/contract-remind-list.vue b/apps/web-antd/src/views/crm/backlog/modules/contract-remind-list.vue index 1cbe6471..a394b3b6 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/contract-remind-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/contract-remind-list.vue @@ -27,6 +27,7 @@ function handleProcessDetail(row: CrmContractApi.Contract) { function handleContractDetail(row: CrmContractApi.Contract) { push({ name: 'CrmContractDetail', params: { id: row.id } }); } + /** 打开客户详情 */ function handleCustomerDetail(row: CrmContractApi.Contract) { push({ name: 'CrmCustomerDetail', params: { id: row.id } }); @@ -53,7 +54,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: CONTRACT_EXPIRY_TYPE, }, - defaultValue: 1, + defaultValue: CONTRACT_EXPIRY_TYPE[0]!.value, }, ], }, @@ -75,6 +76,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/customer-follow-list.vue b/apps/web-antd/src/views/crm/backlog/modules/customer-follow-list.vue index bcb51c1d..284a0ddc 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/customer-follow-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/customer-follow-list.vue @@ -53,6 +53,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/customer-put-pool-remind-list.vue b/apps/web-antd/src/views/crm/backlog/modules/customer-put-pool-remind-list.vue index 8e81583e..fe782457 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/customer-put-pool-remind-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/customer-put-pool-remind-list.vue @@ -31,7 +31,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: SCENE_TYPES, }, - defaultValue: 1, + defaultValue: SCENE_TYPES[0]!.value, }, ], }, @@ -53,6 +53,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/customer-today-contact-list.vue b/apps/web-antd/src/views/crm/backlog/modules/customer-today-contact-list.vue index decb6ea9..03d0b25c 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/customer-today-contact-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/customer-today-contact-list.vue @@ -31,7 +31,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: CONTACT_STATUS, }, - defaultValue: 1, + defaultValue: CONTACT_STATUS[0]!.value, }, { fieldName: 'sceneType', @@ -41,7 +41,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: SCENE_TYPES, }, - defaultValue: 1, + defaultValue: SCENE_TYPES[0]!.value, }, ], }, @@ -63,6 +63,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/receivable-audit-list.vue b/apps/web-antd/src/views/crm/backlog/modules/receivable-audit-list.vue index 688823b9..83aeff59 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/receivable-audit-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/receivable-audit-list.vue @@ -49,7 +49,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: AUDIT_STATUS, }, - defaultValue: 10, + defaultValue: AUDIT_STATUS[0]!.value, }, ], }, @@ -70,6 +70,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true, diff --git a/apps/web-antd/src/views/crm/backlog/modules/receivable-plan-remind-list.vue b/apps/web-antd/src/views/crm/backlog/modules/receivable-plan-remind-list.vue index a913cc3f..4bafa462 100644 --- a/apps/web-antd/src/views/crm/backlog/modules/receivable-plan-remind-list.vue +++ b/apps/web-antd/src/views/crm/backlog/modules/receivable-plan-remind-list.vue @@ -49,7 +49,7 @@ const [Grid] = useVbenVxeGrid({ allowClear: true, options: RECEIVABLE_REMIND_TYPE, }, - defaultValue: 1, + defaultValue: RECEIVABLE_REMIND_TYPE[0]!.value, }, ], }, @@ -70,6 +70,7 @@ const [Grid] = useVbenVxeGrid({ }, rowConfig: { keyField: 'id', + isHover: true, }, toolbarConfig: { refresh: true,