|
|
@@ -539,6 +539,15 @@
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="重粉记录" align="center" width="100px" fixed="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="showRepeatRecord(scope.row)"
|
|
|
+ >重粉记录</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="修改" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@@ -970,6 +979,52 @@
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
|
|
|
+ <!-- 重粉记录 -->
|
|
|
+ <el-drawer title="重粉记录" :visible.sync="repeatRecord.open" size="75%" append-to-body>
|
|
|
+ <div style="padding: 10px">
|
|
|
+ <el-form :model="repeatRecord.queryParams" ref="repeatRecordQueryForm" :inline="true" label-width="110px">
|
|
|
+ <el-form-item label="销售企微ID" prop="qwUserId">
|
|
|
+ <el-input
|
|
|
+ v-model="repeatRecord.queryParams.qwUserId"
|
|
|
+ placeholder="请输入销售企微ID"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQueryRepeatRecord"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="销售企微昵称" prop="qwUserName">
|
|
|
+ <el-input
|
|
|
+ v-model="repeatRecord.queryParams.qwUserName"
|
|
|
+ placeholder="请输入销售企微昵称"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @keyup.enter.native="handleQueryRepeatRecord"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQueryRepeatRecord">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetRepeatRecordQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table v-loading="repeatRecord.loading" :data="repeatRecord.list" border>
|
|
|
+ <el-table-column label="企微客户ID" align="center" prop="externalUserId" min-width="140" />
|
|
|
+ <el-table-column label="企微客户昵称" align="center" prop="externalUserName" min-width="120" />
|
|
|
+ <el-table-column label="销售企微ID" align="center" prop="qwUserId" min-width="120" />
|
|
|
+ <el-table-column label="销售企微昵称" align="center" prop="qwUserName" min-width="120" />
|
|
|
+ <el-table-column label="企微部门" align="center" prop="deptName" min-width="120" />
|
|
|
+ <el-table-column label="添加时间" align="center" prop="createTime" width="170" />
|
|
|
+ <el-table-column label="注册时间" align="center" prop="registerTime" width="170" />
|
|
|
+ </el-table>
|
|
|
+ <pagination
|
|
|
+ v-show="repeatRecord.total > 0"
|
|
|
+ :total="repeatRecord.total"
|
|
|
+ :page.sync="repeatRecord.queryParams.pageNum"
|
|
|
+ :limit.sync="repeatRecord.queryParams.pageSize"
|
|
|
+ @pagination="repeatRecordList"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
+
|
|
|
<!-- 设置一个课程sop-->
|
|
|
<el-dialog :title="setSop.title" :visible.sync="setSop.open" width="1200px" append-to-body>
|
|
|
<SopDialog ref="SopDialog" @bindCourseSop="bindCourseSop"></SopDialog>
|
|
|
@@ -1024,7 +1079,7 @@ import {
|
|
|
setCustomerCourseSop,
|
|
|
getCustomerCourseSop,
|
|
|
setCustomerCourseSopList,
|
|
|
- unBindUserId, updateExternalContactCall,updateExternalContactStatus,getWatchLogList
|
|
|
+ unBindUserId, updateExternalContactCall,updateExternalContactStatus,getWatchLogList,getRepeatRecordList
|
|
|
} from '@/api/qw/externalContact'
|
|
|
import {getMyQwUserList, getMyQwCompanyList, updateUser,getQwUserListLikeName} from "@/api/qw/user";
|
|
|
import {listTag, getTag, searchTags} from "@/api/qw/tag";
|
|
|
@@ -1065,6 +1120,20 @@ export default {
|
|
|
videoId: null,
|
|
|
},
|
|
|
},
|
|
|
+ repeatRecord: {
|
|
|
+ open: false,
|
|
|
+ loading: false,
|
|
|
+ list: [],
|
|
|
+ total: 0,
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ corpId: null,
|
|
|
+ externalUserId: null,
|
|
|
+ qwUserId: null,
|
|
|
+ qwUserName: null
|
|
|
+ }
|
|
|
+ },
|
|
|
statusDialog: {
|
|
|
open: false,
|
|
|
title: "修改客户状态"
|
|
|
@@ -1392,6 +1461,36 @@ export default {
|
|
|
this.log.total = e.total;
|
|
|
});
|
|
|
},
|
|
|
+ /** 重粉记录 */
|
|
|
+ showRepeatRecord(row) {
|
|
|
+ this.repeatRecord.queryParams.corpId = row.corpId;
|
|
|
+ this.repeatRecord.queryParams.externalUserId = row.externalUserId;
|
|
|
+ this.repeatRecord.queryParams.qwUserId = null;
|
|
|
+ this.repeatRecord.queryParams.qwUserName = null;
|
|
|
+ this.repeatRecord.queryParams.pageNum = 1;
|
|
|
+ this.repeatRecord.queryParams.pageSize = 10;
|
|
|
+ this.repeatRecord.open = true;
|
|
|
+ this.repeatRecordList();
|
|
|
+ },
|
|
|
+ handleQueryRepeatRecord() {
|
|
|
+ this.repeatRecord.queryParams.pageNum = 1;
|
|
|
+ this.repeatRecordList();
|
|
|
+ },
|
|
|
+ resetRepeatRecordQuery() {
|
|
|
+ this.repeatRecord.queryParams.qwUserId = null;
|
|
|
+ this.repeatRecord.queryParams.qwUserName = null;
|
|
|
+ this.repeatRecord.queryParams.pageNum = 1;
|
|
|
+ this.repeatRecordList();
|
|
|
+ },
|
|
|
+ repeatRecordList() {
|
|
|
+ this.repeatRecord.loading = true;
|
|
|
+ getRepeatRecordList(this.repeatRecord.queryParams).then(res => {
|
|
|
+ this.repeatRecord.list = res.rows || [];
|
|
|
+ this.repeatRecord.total = res.total || 0;
|
|
|
+ }).finally(() => {
|
|
|
+ this.repeatRecord.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
courseChange(row) {
|
|
|
this.log.queryParams.videoId = null;
|
|
|
if (row === '') {
|