瀏覽代碼

reactor:地图信息展示;新建工单默认传经纬度

zhangchong 1 月之前
父節點
當前提交
27c4c1c15a
共有 1 個文件被更改,包括 17 次插入4 次删除
  1. 17 4
      src/layout/navBars/breadcrumb/zgTel.vue

+ 17 - 4
src/layout/navBars/breadcrumb/zgTel.vue

@@ -2096,10 +2096,10 @@ const evtCallAlerting = (data: any) => {
 		strCalledNum = data.Param.Called;
 		// 呼叫ID
 		callId.value = data.Param.Callid;
-		if (strTelNumber.length == strCalledNum.length && strTelNumber.length == 4) {
+	/*	if (strTelNumber.length == strCalledNum.length && strTelNumber.length == 4) {
 			// 如果主叫号码、被叫号码都是分机号码,则不弹屏
 			m_bIsOpen.value = true;
-		}
+		}*/
 		if (!m_bIsOpen.value && m_strOpenFlag.value === '2') {
 			m_bIsOpen.value = true;
 			// 用户按键
@@ -2273,10 +2273,10 @@ const evtEvtCallAnswer = (data: any) => {
 				strCalledNum +
 				']'
 		);
-		if (strTelNumber.length == strCalledNum.length && strTelNumber.length == 4) {
+		/*if (strTelNumber.length == strCalledNum.length && strTelNumber.length == 4) {
 			// 如果主叫号码、被叫号码都是分机号码,则不弹屏
 			m_bIsOpen.value = true;
-		}
+		}*/
 		if (!m_bIsOpen.value && m_strOpenFlag.value === '1') {
 			m_bIsOpen.value = true;
 			// 用户按键
@@ -2296,6 +2296,19 @@ const evtEvtCallAnswer = (data: any) => {
 					strCalledNum +
 					']'
 			);
+			if (AppConfigInfo.value.isOpenSpecialPhone) {
+				// 配置开关
+				getSpecialNumberDetailByPhone({ PhoneNumber: strTelNumber }).then((res: any) => {
+					// 如果来电电话在在特殊号码配置中 需要提示信息
+					if (res.result.notes) {
+						ElNotification({
+							title: '特殊号码提醒',
+							message: res.result.notes,
+							type: 'info',
+						});
+					}
+				});
+			}
 			// 来电 接通弹单
 			router.push({
 				name: 'orderAccept',