Commit b9e84b02 by 怪兽?别跑

离职继承部门字段更改

1 parent 00b27824
<script> <script>
import { getAllocateCustomers, getAllocateGroups } from '@/api/customer/dimission' import { getAllocateCustomers, getAllocateGroups } from '@/api/customer/dimission'
export default { export default {
name: 'AllocatedStaffDetailList', name: 'AllocatedStaffDetailList',
components: {}, components: {},
props: { props: {
dateRange: { dateRange: {
type: Array, type: Array,
default: () => [], default: () => []
}, },
type: { type: {
type: String, type: String,
default: 'customer', default: 'customer'
}, }
}, },
data() { data() {
return { return {
...@@ -23,11 +23,11 @@ export default { ...@@ -23,11 +23,11 @@ export default {
handoverUserId: undefined, handoverUserId: undefined,
oldOwner: undefined, oldOwner: undefined,
beginTime: undefined, beginTime: undefined,
endTime: undefined, endTime: undefined
}, },
loading: false, loading: false,
total: 0, total: 0,
list: [], list: []
} }
}, },
watch: {}, watch: {},
...@@ -56,18 +56,18 @@ export default { ...@@ -56,18 +56,18 @@ export default {
.catch(() => { .catch(() => {
this.loading = false this.loading = false
}) })
}, }
}, }
} }
</script> </script>
<template> <template>
<div class="page"> <div class="page">
<el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%"> <el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%;">
<el-table-column v-if="type === 'customer'" prop="customerName" label="客户名称"></el-table-column> <el-table-column v-if="type === 'customer'" prop="customerName" label="客户名称"></el-table-column>
<el-table-column v-else prop="groupName" label="群名称"></el-table-column> <el-table-column v-else prop="groupName" label="群名称"></el-table-column>
<el-table-column :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column> <el-table-column :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column>
<el-table-column prop="department" label="接替员工所属部门" show-overflow-tooltip></el-table-column> <el-table-column prop="deptNames" label="接替员工所属部门" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
...@@ -76,10 +76,11 @@ export default { ...@@ -76,10 +76,11 @@ export default {
@click=" @click="
$router.push({ $router.push({
path: 'customerDetail', path: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }, query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
}) })
" "
type="text"> type="text"
>
查看 查看
</el-button> </el-button>
</template> </template>
...@@ -91,7 +92,8 @@ export default { ...@@ -91,7 +92,8 @@ export default {
:total="total" :total="total"
:page.sync="query.pageNum" :page.sync="query.pageNum"
:limit.sync="query.pageSize" :limit.sync="query.pageSize"
@pagination="getList()" /> @pagination="getList()"
/>
</div> </div>
</template> </template>
......
<script> <script>
import { getListTable } from '@/api/customer/dimission' import { getListTable } from '@/api/customer/dimission'
export default { export default {
name: 'AllocatedStaffList', name: 'AllocatedStaffList',
components: {}, components: {},
props: {}, props: {},
...@@ -14,13 +14,13 @@ export default { ...@@ -14,13 +14,13 @@ export default {
pageSize: 10, pageSize: 10,
userName: undefined, userName: undefined,
beginTime: undefined, beginTime: undefined,
endTime: undefined, endTime: undefined
}, },
loading: false, loading: false,
total: 0, total: 0,
list: [], list: [],
dialogVisibleSelectUser: false, dialogVisibleSelectUser: false,
dateRange: [], // 离职日期 dateRange: [] // 离职日期
} }
}, },
watch: {}, watch: {},
...@@ -55,9 +55,9 @@ export default { ...@@ -55,9 +55,9 @@ export default {
this.dateRange = [] this.dateRange = []
this.$refs['queryForm'].resetFields() this.$refs['queryForm'].resetFields()
this.getList(1) this.getList(1)
}, }
}, }
} }
</script> </script>
<template> <template>
...@@ -77,7 +77,8 @@ export default { ...@@ -77,7 +77,8 @@ export default {
range-separator="-" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right"></el-date-picker> align="right"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label> <el-form-item label>
<el-button v-hasPermi="['customerManage:dimission:query']" type="primary" @click="getList(1)">查询</el-button> <el-button v-hasPermi="['customerManage:dimission:query']" type="primary" @click="getList(1)">查询</el-button>
...@@ -86,10 +87,10 @@ export default { ...@@ -86,10 +87,10 @@ export default {
</el-form> </el-form>
<div class="g-card"> <div class="g-card">
<el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%"> <el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%;">
<el-table-column type="index" label="序号" width="55"></el-table-column> <el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="userName" label="已离职员工"></el-table-column> <el-table-column prop="userName" label="已离职员工"></el-table-column>
<el-table-column prop="department" label="所属部门"></el-table-column> <el-table-column prop="deptNames" label="所属部门"></el-table-column>
<el-table-column prop="allocateCustomerNum" label="已分配客户数" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateCustomerNum" label="已分配客户数" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateGroupNum" label="已分配群聊数" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateGroupNum" label="已分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip> <el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip>
...@@ -102,10 +103,11 @@ export default { ...@@ -102,10 +103,11 @@ export default {
@click=" @click="
$router.push({ $router.push({
path: 'allocatedStaffDetail', path: 'allocatedStaffDetail',
query: { userId: scope.row.userId }, query: { userId: scope.row.userId }
}) })
" "
type="text"> type="text"
>
查看 查看
</el-button> </el-button>
</template> </template>
...@@ -117,7 +119,8 @@ export default { ...@@ -117,7 +119,8 @@ export default {
:total="total" :total="total"
:page.sync="query.pageNum" :page.sync="query.pageNum"
:limit.sync="query.pageSize" :limit.sync="query.pageSize"
@pagination="getList()" /> @pagination="getList()"
/>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
<el-table-column type="selection" align="center" width="55"></el-table-column> <el-table-column type="selection" align="center" width="55"></el-table-column>
<el-table-column type="index" label="序号" width="55"></el-table-column> <el-table-column type="index" label="序号" width="55"></el-table-column>
<el-table-column prop="userName" label="已离职员工"></el-table-column> <el-table-column prop="userName" label="已离职员工"></el-table-column>
<el-table-column prop="department" label="所属部门"></el-table-column> <el-table-column prop="deptNames" label="所属部门"></el-table-column>
<el-table-column prop="allocateCustomerNum" label="待分配客户数" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateCustomerNum" label="待分配客户数" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateGroupNum" label="待分配群聊数" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateGroupNum" label="待分配群聊数" show-overflow-tooltip></el-table-column>
<el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip> <el-table-column prop="dimissionTime" label="离职时间" show-overflow-tooltip>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!