feat: 亮灯表30天滚动窗口 + 相关人员文案统一 + 周报数据补全

- light_board.classify: 自然月 → 30/60天滚动窗口 (≤30天🟢, 31-60天🟡, 61+天🔴)
- LightBoard.vue: 4处文案同步 (近30天已拜访 / 上次 / 个周期)
- dashboard.get_weekly_report: 补全 companion_names_resolved + visitor_name + visitor_phone + edit_log
- 导入/导出模板 + VisitForm + ManagerWorkspace: 同访人员 → 相关人员
This commit is contained in:
2026-07-02 16:58:29 +08:00
parent 3285e22142
commit cd47d1aed5
8 changed files with 33 additions and 28 deletions
+4 -4
View File
@@ -102,7 +102,7 @@ function goWeeklyReport(customerId: string) {
}
// Status label map
const statusLabel: Record<string, string> = { green: '本月已拜访', yellow: '上月已拜访 (临期)', red: '急需拜访', gray: '未分配' }
const statusLabel: Record<string, string> = { green: '近30天已拜访', yellow: '31-60天前 (临期)', red: '急需拜访', gray: '未分配' }
</script>
<template>
@@ -171,7 +171,7 @@ const statusLabel: Record<string, string> = { green: '本月已拜访', yellow:
<span v-if="cust.in_use_services" class="card-services">{{ cust.in_use_services }}</span>
</div>
<div class="card-visit-info">
<span class="card-last-visit" v-if="cust.last_visit_date">{{ { green: '最近', yellow: '', red: '上次' }[cust.status] }}{{ cust.last_visit_date }}</span>
<span class="card-last-visit" v-if="cust.last_visit_date">{{ { green: '最近', yellow: '', red: '上次' }[cust.status] }}{{ cust.last_visit_date }}</span>
<span class="card-last-visit card-last-visit--never" v-else>从未拜访</span>
<span v-if="cust.last_visit_method" class="card-method">{{ cust.last_visit_method }}</span>
</div>
@@ -182,7 +182,7 @@ const statusLabel: Record<string, string> = { green: '本月已拜访', yellow:
</span>
</div>
<div v-if="cust.status === 'red' && cust.consecutive_missed_months > 0" class="card-warning">
连续 {{ cust.consecutive_missed_months }} 未拜访
连续 {{ cust.consecutive_missed_months }} 周期未拜访
</div>
</div>
</div>
@@ -221,7 +221,7 @@ const statusLabel: Record<string, string> = { green: '本月已拜访', yellow:
<div class="dlg-status" :class="`dlg-status--${selectedCustomer.status}`">
{{ statusLabel[selectedCustomer.status] }}
<span v-if="selectedCustomer.consecutive_missed_months > 1" style="margin-left:6px">
(连续 {{ selectedCustomer.consecutive_missed_months }} )
(连续 {{ selectedCustomer.consecutive_missed_months }} 周期)
</span>
</div>