|
|
@@ -1,19 +1,20 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form-item label="企微公司" prop="corpId">
|
|
|
+ <el-select clearable v-model="queryParams.corpId" placeholder="请选择企微公司" size="small" @change="updateCorpId()">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in myQwCompanyList"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="公司名称" prop="companyName">
|
|
|
<el-input
|
|
|
v-model="queryParams.companyName"
|
|
|
- placeholder="请输入销售公司名称"
|
|
|
- clearable
|
|
|
- size="small"
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="主体名称" prop="corpName">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.corpName"
|
|
|
- placeholder="请输入企微主体名称"
|
|
|
+ placeholder="请输入接替销售公司名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
@@ -22,7 +23,7 @@
|
|
|
<el-form-item label="销售名称" prop="companyUserName">
|
|
|
<el-input
|
|
|
v-model="queryParams.companyUserName"
|
|
|
- placeholder="请输入销售名称"
|
|
|
+ placeholder="请输入接替销售名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
@@ -40,12 +41,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" border>
|
|
|
+ <el-table-column label="ID" align="center" prop="id" width="55"/>
|
|
|
<el-table-column label="主体名称" align="center" prop="corpName" />
|
|
|
<el-table-column label="接替公司名称" align="center" prop="companyName" />
|
|
|
<el-table-column label="接替销售名称" align="center" prop="companyUserName" />
|
|
|
@@ -95,6 +97,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-table v-loading="detailLoading" :data="userList" border>
|
|
|
+ <el-table-column label="ID" align="center" prop="id" />
|
|
|
<el-table-column label="客户名称" align="center" prop="externalUserName" />
|
|
|
<el-table-column label="原公司名称" align="center" prop="companyName" />
|
|
|
<el-table-column label="原销售名称" align="center" prop="companyUserName" />
|
|
|
@@ -106,12 +109,21 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="userTotal>0"
|
|
|
+ :total="userTotal"
|
|
|
+ :page.sync="userQueryParams.pageNum"
|
|
|
+ :limit.sync="userQueryParams.pageSize"
|
|
|
+ @pagination="getUserList"
|
|
|
+ />
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { detail, listExternalContactTransferAudit, sync } from '@/api/qw/externalContactTransferAudit'
|
|
|
+import { getMyQwCompanyList } from '@/api/qw/user'
|
|
|
|
|
|
export default {
|
|
|
name: "companyTransferDetail",
|
|
|
@@ -126,6 +138,7 @@ export default {
|
|
|
corpName: null,
|
|
|
companyUserName: null,
|
|
|
status: 0,
|
|
|
+ corpId: null,
|
|
|
},
|
|
|
total: 0,
|
|
|
list: [],
|
|
|
@@ -134,12 +147,21 @@ export default {
|
|
|
dialogAuditVisible: false,
|
|
|
dialogViewVisible: false,
|
|
|
detailLoading: false,
|
|
|
+ userQueryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
userList: [],
|
|
|
+ userTotal: 0,
|
|
|
currentAudit: {},
|
|
|
syncLoading: false,
|
|
|
+ myQwCompanyList:[],
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ getMyQwCompanyList().then(response => {
|
|
|
+ this.myQwCompanyList = response.data;
|
|
|
+ });
|
|
|
this.getDicts("sys_qw_transfer_audit_status").then((response) => {
|
|
|
this.auditStatusOptions = response.data;
|
|
|
});
|
|
|
@@ -149,6 +171,9 @@ export default {
|
|
|
this.handleQuery()
|
|
|
},
|
|
|
methods: {
|
|
|
+ updateCorpId() {
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
@@ -161,6 +186,7 @@ export default {
|
|
|
corpName: null,
|
|
|
companyUserName: null,
|
|
|
status: 0,
|
|
|
+ corpId: null,
|
|
|
};
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
@@ -185,22 +211,23 @@ export default {
|
|
|
},
|
|
|
handleView(row) {
|
|
|
this.currentAudit = row
|
|
|
+ this.userQueryParams.pageNum = 1
|
|
|
+ this.getUserList()
|
|
|
+ this.dialogViewVisible = true
|
|
|
+ },
|
|
|
+ getUserList() {
|
|
|
this.detailLoading = true
|
|
|
- detail(row.id).then(response => {
|
|
|
- this.userList = response.data
|
|
|
+ detail(this.currentAudit.id, this.userQueryParams).then(response => {
|
|
|
+ this.userList = response.rows
|
|
|
+ this.userTotal = response.total
|
|
|
this.detailLoading = false
|
|
|
})
|
|
|
- this.dialogViewVisible = true
|
|
|
},
|
|
|
sync() {
|
|
|
const id = this.currentAudit.id
|
|
|
this.syncLoading = true
|
|
|
sync(id).then(() => {
|
|
|
- this.detailLoading = true
|
|
|
- detail(id).then(response => {
|
|
|
- this.userList = response.data
|
|
|
- this.detailLoading = false
|
|
|
- })
|
|
|
+ this.getUserList()
|
|
|
this.syncLoading = false
|
|
|
})
|
|
|
},
|