家居场景销售接待

This commit is contained in:
zhonghua1
2026-01-10 11:12:23 +08:00
parent be6fa3ef28
commit 03c0fe8375
13 changed files with 427 additions and 196 deletions

View File

@@ -45,9 +45,7 @@
<!-- 客户列表 -->
<CustomerList
v-if="activeTab === 'customer'"
:list="customerList"
@itemClick="viewCustomerDetail"
@filterClick="refreshCustomerList" />
@itemClick="viewCustomerDetail" />
</view>
<!-- 客户档案弹窗 -->
@@ -474,24 +472,7 @@
currentAudioUrl: null, // 当前音频URL用于清理Blob URL
showTextModal: false, // 是否显示文本内容弹框
currentRecordingText: '', // 当前显示的录音文本内容
transcribingIds: [], // 正在转文本的录音ID列表
customerList: [
{
name: '李女士',
intent: '高',
serviceStaff: '三多',
serviceCount: 3,
lastService: '2025-09-10',
tags: [
{ text: '关注优惠活动', color: 'orange' },
{ text: '关注颜色搭配', color: 'orange' },
{ text: '夫妻两一起来', color: 'orange' },
{ text: '新房装修', color: 'blue' },
{ text: '客厅,卧室', color: 'blue' }
],
phone: '185****3677'
}
]
transcribingIds: [] // 正在转文本的录音ID列表
}
},
computed: {
@@ -502,7 +483,10 @@
}
},
onLoad() {
this.loadServiceList();
// 加载服务记录列表
if (this.activeTab === 'service') {
this.loadServiceList();
}
},
onUnload() {
// 组件销毁时,清理音频播放器
@@ -538,6 +522,7 @@
if (tab === 'service' && this.serviceList.length === 0) {
this.loadServiceList();
}
// 客户列表数据由 CustomerList 组件自己管理,不需要在这里加载
},
// 刷新服务记录列表
refreshServiceList(filterParams = {}) {
@@ -546,11 +531,6 @@
// 重新加载数据,传递查询参数
this.loadServiceList(filterParams);
},
refreshCustomerList(filterParams = {}) {
// 客户列表刷新方法(可以根据需要实现搜索逻辑)
console.log('客户列表刷新', filterParams);
// TODO: 实现客户列表的搜索和刷新逻辑
},
// 服务记录列表到底部加载更多
onServiceListReachBottom() {
// 如果已经加载全部数据,则不再请求
@@ -2326,7 +2306,7 @@
duration: 3000
});
}
},
}
}
}
</script>