|
@@ -513,7 +513,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="orderAccept">
|
|
|
-import { computed, defineAsyncComponent, onMounted, onUnmounted, reactive, ref, watch } from 'vue';
|
|
|
+import { computed, defineAsyncComponent, nextTick, onMounted, onUnmounted, reactive, ref, watch } from 'vue';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
|
|
|
import { storeToRefs } from 'pinia';
|
|
@@ -1209,8 +1209,6 @@ const loadForm = async () => {
|
|
|
} else {
|
|
|
state.ruleForm.identityType = 1;
|
|
|
}
|
|
|
-
|
|
|
- historyOrderRef.value.searchHistory(); // 如果是电话来源手动调用一次查询历史工单
|
|
|
}
|
|
|
if (route.query.createBy === 'transfer') {
|
|
|
// 通话转写
|
|
@@ -1234,7 +1232,6 @@ const loadForm = async () => {
|
|
|
dicDataName: state.ruleForm.acceptType,
|
|
|
};
|
|
|
state.ruleForm.content = Local.get(`${route.query.callId}`);
|
|
|
- historyOrderRef.value.searchHistory(); // 如果是电话来源手动调用一次查询历史工单
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1368,6 +1365,7 @@ const handleBeforeUnload = (event: any) => {
|
|
|
event.returnValue = ''; // 对于某些浏览器,设置 returnValue
|
|
|
};
|
|
|
onMounted(async () => {
|
|
|
+ console.log(state.ruleForm,voiceAssistantRef.value, '查询历史工单')
|
|
|
await loadForm();
|
|
|
state.tagsViewList = await Session.get('tagsViewList');
|
|
|
window.addEventListener('beforeunload', handleBeforeUnload);
|