From c00522fc070acd99efcdf7586eb9225a27fa6b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Thu, 6 Aug 2026 17:37:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(staff):=20=E5=BE=AE=E4=BF=A1=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E6=B2=9F=E9=80=9A=E6=95=B0=203=20=E6=95=B0=E5=AD=97?= =?UTF-8?q?=20=E2=86=92=20=E6=98=8E=E7=BB=86=20modal=EF=BC=88=E8=A1=A5=20P?= =?UTF-8?q?lan1=20=E8=AF=AF=E5=88=A4=E6=BC=8F=E5=81=9A=E7=9A=84=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- yunkes/src/views/StaffList.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/yunkes/src/views/StaffList.vue b/yunkes/src/views/StaffList.vue index 09e55de..49c1381 100644 --- a/yunkes/src/views/StaffList.vue +++ b/yunkes/src/views/StaffList.vue @@ -271,6 +271,21 @@ function openTalkedModal(row: Account) { detailOpen.value = true } +/** 微信员工「沟通数」3 数字 → 明细 modal(数据源:该员工客户列表,度量精确区分见 plan 数据源说明)。 */ +function openWechatCommModal(row: Account, title: string, withMsgCols: boolean): void { + detailTitle.value = `${title} · ${row.user_name ?? row.account_id}` + detailCols.value = withMsgCols + ? [ + { prop: 'friend_nickname', label: '客户微信', minWidth: 160 }, + { prop: 'send_num', label: '发送消息数', width: 110, align: 'center' }, + { prop: 'receive_num', label: '接收消息数', width: 110, align: 'center' }, + ] + : [{ prop: 'friend_nickname', label: '客户微信', minWidth: 160 }] + detailFetcher.value = async (page: number, page_size: number) => + getCustomers({ channel: 'wechat', owner_account_id: row.account_id, page, page_size }) + detailOpen.value = true +} + // --------------------------------------------------------------------------- // Per-tab loading // --------------------------------------------------------------------------- @@ -490,15 +505,15 @@ onMounted(() => {