|
@@ -897,7 +897,6 @@ const onMessage = (event: any) => {
|
|
|
console.log('呼叫中心:已签出');
|
|
|
ElMessage.success('签出成功');
|
|
|
seatAssistOff();
|
|
|
- sendMsg('logout');
|
|
|
} else if (data.state == 'ready') {
|
|
|
// 结束计时
|
|
|
removeTimer();
|
|
@@ -915,6 +914,10 @@ const onMessage = (event: any) => {
|
|
|
console.log('呼叫中心:示闲中');
|
|
|
sendMsg('ready');
|
|
|
} else if (data.state == 'unready') {
|
|
|
+ break_reason(data.private_data);
|
|
|
+ sendMsg('unready'); // 发送消息 业务系统消息通知
|
|
|
+
|
|
|
+ console.log('呼叫中心:示忙中,小休开始');
|
|
|
// 示忙中
|
|
|
useTelStatusStore.setPhoneControlState(TelStates.rest);
|
|
|
useTelStatusStore.setRest(RestStates.resting);
|
|
@@ -951,10 +954,6 @@ const onMessage = (event: any) => {
|
|
|
|
|
|
});
|
|
|
}*/
|
|
|
- break_reason(data.private_data);
|
|
|
- sendMsg('unready'); // 发送消息 业务系统消息通知
|
|
|
-
|
|
|
- console.log('呼叫中心:示忙中,小休开始');
|
|
|
} else if (data.state == 'acw') {
|
|
|
// 设置分机号和坐席组
|
|
|
useTelStatusStore.setCallInfo({ telsNo: data.agent_extn });
|
|
@@ -1135,7 +1134,6 @@ const break_reason = (reason: string) => {
|
|
|
if (telStatusInfo.value.isRest !== 'resting') {
|
|
|
// 如果不在在小休中
|
|
|
const restReasons = state.restReasonOptions.find((item: any) => item.dicDataValue === reason);
|
|
|
- console.log(restReasons, reason, state.restReasonOptions);
|
|
|
busyOn({ reason: restReasons.dicDataName }) // 开始小休 设置示忙 业务系统统计需要
|
|
|
.then(() => {
|
|
|
console.log('业务系统调用示忙成功');
|
|
@@ -1488,7 +1486,7 @@ const connectVoiceAssistant = async (telNo: string) => {
|
|
|
});
|
|
|
socket.value.on('message', wsReceive);
|
|
|
} catch (err) {
|
|
|
- console.log(err, 'Failed to get voice assistant user information');
|
|
|
+ console.log(err, '坐席辅助链接失败');
|
|
|
}
|
|
|
};
|
|
|
// 坐席辅助关闭
|