feat(staff): 沟通数弹框加汇总说明(对齐云客:总X人次,重复Y,剩余Z条,玉绿左边框)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-25 10:08:44 +08:00
parent d4deb769e5
commit 0d19289fba
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -279,6 +279,7 @@ const detailFetcher = ref<(p: number, s: number) => Promise<any>>(
async () => ({ items: [], total: 0 }),
)
const detailCols = ref<any[]>([])
const detailSummary = ref('')
const fmtTime = (_r: any, _c: any, v: any): string =>
typeof v === 'number' && v > 0 ? formatTime(v) : v ? String(v) : '--'
@@ -450,6 +451,10 @@ function openWechatCommModal(row: Account, metric: ChatMetric): void {
staff_info: staffInfo,
staff_wx: staffWx,
}))
// 汇总说明(对齐云客)
const metricTitle = METRIC_TITLES[metric]
const statCount = stats.summary?.[metric === 'chat' ? 'chat_count' : metric === 'effective' ? 'effective_count' : metric === 'follow' ? 'follow_count' : metric === 'last_reply' ? 'last_reply_count' : 'no_reply_count'] ?? 0
detailSummary.value = `${metricTitle}总${statCount}人次,其中重复客户${Math.max(0, statCount - filtered.length)}人次 剩余${filtered.length}条记录:`
return { items, total: filtered.length, page, page_size }
}
detailOpen.value = true
@@ -930,6 +935,7 @@ onMounted(() => {
</template>
<YkStaffDetailModal
:summary-text="detailSummary"
v-model="detailOpen"
:title="detailTitle"
:cols="detailCols"