|
|
@@ -7,30 +7,31 @@
|
|
|
<template #content>
|
|
|
<div style="overflow: auto;height: calc(100vh - 220px)" ref="rollRef" @scroll="handleScroll">
|
|
|
<div style="display: flex;justify-content: space-between;margin: 10px 24px 20px 24px;">
|
|
|
- <div>
|
|
|
- <div class="inline-16">
|
|
|
- <label class="search__label" >{{$t('部门')}}:</label>
|
|
|
- <el-cascader class="inline-16" placement="bottom" ref="selectdep" size="small" v-model="depment" :options="deplist" :props="{emitPath:true,expandTrigger:'hover',checkStrictly:true,label:'label',value:'departmentid',children:'children'}" @change="selectDep" clearable></el-cascader>
|
|
|
- </div>
|
|
|
- <div class="inline-16">
|
|
|
- <label class="search__label" >{{$t('业务员')}}:</label>
|
|
|
- <el-select v-model="person" filterable :placeholder="$t('请选择')" size="small" clearable @change="selectPerson">
|
|
|
- <el-option
|
|
|
- v-for="item in personnelList"
|
|
|
- :key="item.index"
|
|
|
- :label="$t(item.name)"
|
|
|
- :value="item.userid">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- <div class="mt-10 inline-16">
|
|
|
- <p class="search__label">{{$t('状态')}}:</p>
|
|
|
- <el-select v-model="isleave" clearable style="margin-right:10px" size="small" :placeholder="$t('请选择状态')" @change="leaveChange" >
|
|
|
- <el-option :label="$t('在职')" value="1"></el-option>
|
|
|
- <el-option :label="$t('离职')" value="2"></el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <div class="inline-16">-->
|
|
|
+<!-- <label class="search__label" >{{$t('部门')}}:</label>-->
|
|
|
+<!-- <el-cascader class="inline-16" placement="bottom" ref="selectdep" size="small" v-model="depment" :options="deplist" :props="{emitPath:true,expandTrigger:'hover',checkStrictly:true,label:'label',value:'departmentid',children:'children'}" @change="selectDep" clearable></el-cascader>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="inline-16">-->
|
|
|
+<!-- <label class="search__label" >{{$t('业务员')}}:</label>-->
|
|
|
+<!-- <el-select v-model="person" filterable :placeholder="$t('请选择')" size="small" clearable @change="selectPerson">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in personnelList"-->
|
|
|
+<!-- :key="item.index"-->
|
|
|
+<!-- :label="$t(item.name)"-->
|
|
|
+<!-- :value="item.userid">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="mt-10 inline-16">-->
|
|
|
+<!-- <p class="search__label">{{$t('状态')}}:</p>-->
|
|
|
+<!-- <el-select v-model="isleave" clearable style="margin-right:10px" size="small" :placeholder="$t('请选择状态')" @change="leaveChange" >-->
|
|
|
+<!-- <el-option :label="$t('在职')" value="1"></el-option>-->
|
|
|
+<!-- <el-option :label="$t('离职')" value="2"></el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+ <depStatus ref="allDepRef" @depData="depData" @personData="depData" @leaveData="depData"></depStatus>
|
|
|
<div>
|
|
|
<btnSelect :btn-title="['全部','本年','本季','本月','上月','去年']" :date-type="dateType" @btnClick="btnClick"></btnSelect>
|
|
|
</div>
|
|
|
@@ -183,7 +184,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</dataDetail>
|
|
|
- <salesContribution></salesContribution>
|
|
|
+ <salesContribution class="mt-10" ref="salesContributionRef"></salesContribution>
|
|
|
</div>
|
|
|
</template>
|
|
|
</normal-layout>
|
|
|
@@ -196,9 +197,10 @@ import btnSelect from "@/components/btn_select/btnSelect";
|
|
|
import dataBoard from '@/components/dataBoard/index'
|
|
|
import dataDetail from '@/template/dataDetail/index'
|
|
|
import salesContribution from './components/salesContribution'
|
|
|
+import depStatus from './components/depStatus'
|
|
|
export default {
|
|
|
name: "index",
|
|
|
- components:{normalLayout,btnSelect,dataBoard,dataDetail,salesContribution},
|
|
|
+ components:{normalLayout,btnSelect,dataBoard,dataDetail,salesContribution,depStatus},
|
|
|
data(){
|
|
|
return {
|
|
|
scrollData:'',
|
|
|
@@ -346,9 +348,21 @@ export default {
|
|
|
async departmentrtment() {
|
|
|
const res = await this.$api.requested(this.depmentParam)
|
|
|
this.deplist = this.createMenu(res.data.dep)
|
|
|
+ this.$refs.allDepRef.deplist = this.deplist
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusCusRef.deplist = this.deplist
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusProRef.deplist = this.deplist
|
|
|
this.personnelList = res.data.hr
|
|
|
+ this.$refs.allDepRef.personnelList = this.personnelList
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusCusRef.personnelList = this.personnelList
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusProRef.personnelList = this.personnelList
|
|
|
this.depment = ''
|
|
|
+ this.$refs.allDepRef.depment = this.depment
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusCusRef.depment = this.depment
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusProRef.depment = this.depment
|
|
|
this.person = JSON.parse(window.sessionStorage.getItem('active_account')).name
|
|
|
+ this.$refs.allDepRef.person = this.person
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusCusRef.person = this.person
|
|
|
+ this.$refs.salesContributionRef.$refs.depStatusProRef.person = this.person
|
|
|
const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
|
|
|
this.otherMethod(userid)
|
|
|
},
|
|
|
@@ -448,6 +462,10 @@ export default {
|
|
|
this.dateType = data
|
|
|
this.queryMainData(this.paramMain.content.dataid,data)
|
|
|
},
|
|
|
+ /*选择部门*/
|
|
|
+ depData(id,type,isleave,state){
|
|
|
+ this.otherModel(id,type,isleave,state)
|
|
|
+ },
|
|
|
/*其他页面首次调用*/
|
|
|
otherMethod(dataid){
|
|
|
const userName = JSON.parse(sessionStorage.getItem('active_account')).name
|