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(() => {