fix(chat): 回复后再移出待处理

This commit is contained in:
yml2213
2026-08-25 20:27:26 +08:00
parent 16237dcefc
commit cc91979b34
6 changed files with 44 additions and 9 deletions
@@ -564,7 +564,7 @@ function stageCount(key: string) {
}
function conversationStageLabel(item: ChatConversation) {
if (item.unread_count > 0) return '待处理'
if (item.needs_reply) return '待处理'
if (!item.latest_order_id) return '无订单'
if (item.latest_order_status === 'pending_handoff') return '待交接'
if (['renting', 'overdue'].includes(item.latest_order_status || '')) return '使用中'
@@ -584,7 +584,7 @@ function conversationStageLabel(item: ChatConversation) {
}
function conversationStageClass(item: ChatConversation) {
if (item.unread_count > 0) return 'pending'
if (item.needs_reply) return 'pending'
if (!item.latest_order_id) return 'unjoined'
if (item.latest_order_status === 'pending_handoff') return 'handoff'
if (['renting', 'overdue'].includes(item.latest_order_status || '')) return 'renting'
+1
View File
@@ -39,6 +39,7 @@ export interface ChatConversation {
last_sender_id?: number
last_sender_role?: string
unread_count: number
needs_reply: boolean
created_at: string
updated_at: string
}