Bladeren bron

ai外呼任务报错处理

Long 1 week geleden
bovenliggende
commit
497817d3df
3 gewijzigde bestanden met toevoegingen van 32 en 15 verwijderingen
  1. 27 0
      src/api/company/companyVoiceRobotic.js
  2. 1 1
      src/api/crm/customer.js
  3. 4 14
      src/views/company/companyVoiceRobotic/index.vue

+ 27 - 0
src/api/company/companyVoiceRobotic.js

@@ -116,3 +116,30 @@ export function wxList(params) {
     params
   })
 }
+
+// 企微加微列表
+export function wxListQw(params) {
+  return request({
+    url: '/company/companyVoiceRobotic/wxListQw',
+    method: 'get',
+    params
+  })
+}
+
+// 启动任务
+export function taskRun(data) {
+  return request({
+    url: '/company/companyVoiceRobotic/taskRun',
+    method: 'get',
+    params: data
+  })
+}
+
+// 查询执行记录
+export function getExecRecords(query) {
+  return request({
+    url: '/company/companyVoiceRobotic/execRecords',
+    method: 'get',
+    params: query
+  })
+}

+ 1 - 1
src/api/crm/customer.js

@@ -9,7 +9,7 @@ export function listLineCustomer(query) {
 }
 export function listCustomerAll(query) {
   return request({
-    url: '/crm/customer/getCustomerListAll',
+    url: '/crm/customer/listAll',
     method: 'get',
     params: query
   })

+ 4 - 14
src/views/company/companyVoiceRobotic/index.vue

@@ -776,7 +776,7 @@
                             耗时: {{ formatDuration(log.duration) }}
                           </span>
                         </div>
-                        
+
                       </el-card>
                     </el-timeline-item>
                   </el-timeline>
@@ -880,11 +880,10 @@ import {
   wxList,
   taskRun,
   // getTypes,
-  getSmsTempList,
   // getCIDGroupList,
-  getExecRecords,
-  getCurrentCompanyId
+  getExecRecords
 } from "@/api/company/companyVoiceRobotic";
+import { getSmsTempList } from "@/api/company/companySmsTemp";
 import draggable from 'vuedraggable'
 // import { listAll } from '@/api/company/wxDialog';
 import customerSelect from '@/views/crm/components/CustomerSelect.vue';
@@ -905,7 +904,7 @@ export default {
       submitFormLoading:false,
       taskType:1,
       taskTypeList:[{id:1,name:"普通任务"},{id:2,name:"场景任务"}],
-      currentCompanyId:null,
+
       // 遮罩层
       loading: true,
       // CIDGroupList:[],
@@ -1070,11 +1069,6 @@ export default {
     };
   },
   created() {
-    getCurrentCompanyId().then(res=>{
-        this.currentCompanyId = res.companyId;
-    }).catch(res=>{
-      console.log(res);
-    })
     //getTypes().then(e => {
       //this.robotList = e.robot;
       //this.dialogList = e.dialog;
@@ -1376,11 +1370,7 @@ export default {
       });
     },
     openSelect() {
-      if(!!this.currentCompanyId){
-      this.$refs.customer.setRowsDesignatedCompany(this.form.userTableList || [],this.currentCompanyId);
-      }else{
       this.$refs.customer.setRows(this.form.userTableList || []);
-      }
     },
     // openQwUserSelect(index) {
     //   this.thisQwUserIndex = index;