Przeglądaj źródła

外呼 次数和企微下拉框

xw 12 godzin temu
rodzic
commit
6d77cc9b66

+ 7 - 0
src/types/crm/customerListRow.ts

@@ -0,0 +1,7 @@
+/**
+ * 客户列表行:getLineCustomerList / getMyCustomerList / getCustomerList 等接口返回的 rows 项。
+ * isReceive===0 与已领取行结构均包含 roboticCallOutCount。
+ */
+export interface CrmCustomerListRow {
+  roboticCallOutCount?: number;
+}

+ 5 - 0
src/views/company/companyVoiceRobotic/index.vue

@@ -474,6 +474,11 @@
             <el-tag v-for="item in levelList" v-if="scope.row.intention == item.dictValue">{{item.dictLabel}}</el-tag>
           </template>
         </el-table-column>
+        <el-table-column label="呼出次数" align="right" prop="roboticCallOutCount" width="100">
+          <template slot-scope="scope">
+            {{ scope.row.roboticCallOutCount == null ? 0 : scope.row.roboticCallOutCount }}
+          </template>
+        </el-table-column>
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template slot-scope="scope">
             <el-button

+ 0 - 38
src/views/components/QwUserSelectTwo.vue

@@ -5,18 +5,6 @@
       <el-card shadow="never" class="search-card">
         <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="100px" class="search-form">
           <el-row :gutter="16">
-            <el-col :span="6">
-            <el-form-item label="销售公司" prop="companyId">
-              <el-select v-model="queryParams.companyId" placeholder="销售公司" size="small" @change="handleCompanyChange">
-                <el-option
-                  v-for="dict in qwCompanyList"
-                  :key="dict.companyId"
-                  :label="dict.companyName"
-                  :value="dict.companyId"
-                />
-              </el-select>
-            </el-form-item>
-            </el-col>
             <el-col :span="6">
               <el-form-item label="企微用户名" prop="qwUserName">
                 <el-input v-model="queryParams.qwUserName" placeholder="请输入企微用户名" clearable size="small" @keyup.enter.native="handleQuery"/>
@@ -75,7 +63,6 @@
 
 <script>
 import {queryQwList} from "../../api/qw/qwUser";
-import {listCompany} from "../../api/company/company";
 
 export default {
   name: "QwUserSelectTwo",
@@ -96,42 +83,21 @@ export default {
       total: 0,
       // 企微账号表格数据
       qwUserList: [],
-      qwCompanyList: [],
       // 查询参数
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        companyId: null,
         qwUserName: null,
         qwUserId: null
       }
     };
   },
   methods: {
-    // 获取企业数据
-    getCompanyData() {
-      listCompany().then(response => {
-        this.qwCompanyList = response.rows;
-        // 默认选中第一个企业
-        if (this.qwCompanyList && this.qwCompanyList.length > 0) {
-          this.queryParams.companyId = this.qwCompanyList[0].companyId;
-          // 重新加载页面数据
-          this.handleQuery();
-        }
-      });
-    },
-    // 企业改变时触发查询
-    handleCompanyChange() {
-      this.queryParams.pageNum = 1;
-      this.getList();
-    },
     setRows(rows){
       this.shows = true;
       this.rows = rows || [];
       this.selectedRows = rows || []; // 同步更新
       this.getList();
-      // 获取企业列表并默认选中第一个
-      this.getCompanyData();
     },
     initSelect(){
       let row = this.rows;
@@ -168,10 +134,6 @@ export default {
       this.resetForm("queryForm");
       this.queryParams.pageNum = 1;
       this.queryParams.pageSize = 10;
-      // 重置后选中第一个企业
-      if (this.qwCompanyList && this.qwCompanyList.length > 0) {
-        this.queryParams.companyId = this.qwCompanyList[0].companyId;
-      }
       this.getList();
     },
     // 多选框选中数据

+ 5 - 0
src/views/crm/customer/index.vue

@@ -242,6 +242,11 @@
               {{scope.row.mobile}}
             </template>
           </el-table-column>
+          <el-table-column label="AI外呼呼出次数" align="right" prop="roboticCallOutCount" width="130">
+            <template slot-scope="scope">
+              {{ scope.row.roboticCallOutCount == null ? 0 : scope.row.roboticCallOutCount }}
+            </template>
+          </el-table-column>
           <el-table-column  label="客户来源" align="center" prop="source">
             <template slot-scope="scope">
                 <el-tag prop="status" v-for="(item, index) in sourceOptions"    v-if="scope.row.source==item.dictValue">{{item.dictLabel}}</el-tag>

+ 5 - 0
src/views/crm/customer/line.vue

@@ -172,6 +172,11 @@
             {{scope.row.mobile}}
           </template>
         </el-table-column>
+        <el-table-column label="AI外呼呼出次数" align="right" prop="roboticCallOutCount" width="130">
+          <template slot-scope="scope">
+            {{ scope.row.roboticCallOutCount == null ? 0 : scope.row.roboticCallOutCount }}
+          </template>
+        </el-table-column>
         <el-table-column  label="客户来源" align="center" prop="source">
           <template slot-scope="scope">
               <el-tag prop="status" v-for="(item, index) in sourceOptions"    v-if="scope.row.source==item.dictValue">{{item.dictLabel}}</el-tag>

+ 5 - 0
src/views/crm/customer/my.vue

@@ -170,6 +170,11 @@
           <el-button v-hasPermi="['crm:customer:addVisit']"  type="text" size="mini" @click="handleAddVisit(scope.row)">写跟进</el-button>
         </template>
       </el-table-column>
+      <el-table-column label="AI外呼呼出次数" align="right" prop="roboticCallOutCount" width="130">
+        <template slot-scope="scope">
+          {{ scope.row.roboticCallOutCount == null ? 0 : scope.row.roboticCallOutCount }}
+        </template>
+      </el-table-column>
       <el-table-column  label="客户来源" align="center" prop="source">
         <template slot-scope="scope">
             <el-tag prop="status" v-for="(item, index) in sourceOptions"    v-if="scope.row.source==item.dictValue">{{item.dictLabel}}</el-tag>