qymljy 8 месяцев назад
Родитель
Сommit
64f0033d44

+ 11 - 10
src/HDrpManagement/contactData/components/allRank.vue

@@ -70,16 +70,17 @@ export default {
   methods:{
     allClick(){
       console.log(this.paramOld,'old')
-      this.drawerShow = true
-      this.param.content.pageNumber = 1
-      this.param.id = this.paramOld.id
-      this.param.content.type = this.paramOld.content.type
-      this.param.content.dataid = this.paramOld.content.dataid
-      this.param.content.dateType = this.paramOld.content.dateType
-      this.param.content.where.isleave = this.paramOld.content.where.isleave
-      this.param.content.where.begindate = this.paramOld.content.where.begindate
-      this.param.content.where.enddate = this.paramOld.content.where.enddate
-      this.listData()
+      this.$emit('allClick')
+      // this.drawerShow = true
+      // this.param.content.pageNumber = 1
+      // this.param.id = this.paramOld.id
+      // this.param.content.type = this.paramOld.content.type
+      // this.param.content.dataid = this.paramOld.content.dataid
+      // this.param.content.dateType = this.paramOld.content.dateType
+      // this.param.content.where.isleave = this.paramOld.content.where.isleave
+      // this.param.content.where.begindate = this.paramOld.content.where.begindate
+      // this.param.content.where.enddate = this.paramOld.content.where.enddate
+      // this.listData()
     },
     async listData(){
       const res = await this.$api.requested(this.param)

+ 9 - 3
src/HDrpManagement/contactData/components/salesContribution.vue

@@ -6,7 +6,7 @@
           <el-tab-pane :label="$t(`联系人关联客户销售TOP10`)" name="关联客户">
             <depStatus class="inline-16" ref="depStatusCusRef" @depData="listData" @personData="listData" @leaveData="listData"></depStatus>
             <btnSelect @btnClick="btnClick" class="inline-16"  :btnTitle="['本年','本季','本月']" dateType="本年"></btnSelect>
-            <allRank ref="allRankCusRef" class="inline-16" btnTitle="全部排名" allTitle="联系人关联客户销售贡献度排行" :paramOld="paramCus" :tablecols="tool.tabelCol(this.$route.name).associatedCustomers.tablecols"></allRank>
+            <allRank @allClick="allClick" ref="allRankCusRef" class="inline-16" btnTitle="全部排名" allTitle="联系人关联客户销售贡献度排行" :paramOld="paramCus" :tablecols="tool.tabelCol(this.$route.name).associatedCustomers.tablecols"></allRank>
             <tableDetail :layout="tablecols" :data="list" :opwidth="200" :custom="true" >
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'amount'">
@@ -19,7 +19,7 @@
           <el-tab-pane :label="$t(`联系人关联项目销售TOP10`)" name="关联项目">
             <depStatus @btnClick="handleClick" class="inline-16"  ref="depStatusProRef" @depData="listData" @personData="listData" @leaveData="listData"></depStatus>
             <btnSelect @btnClick="btnClick" class="inline-16" :btnTitle="['本年','本季','本月']" dateType="本年"></btnSelect>
-            <allRank ref="allRankProRef"  class="inline-16" btnTitle="全部排名" allTitle="联系人关联项目销售贡献度排行" :paramOld="paramPro" :tablecols="tool.tabelCol(this.$route.name).associatedProject.tablecols"></allRank>
+            <allRank @allClick="allClick" ref="allRankProRef"  class="inline-16" btnTitle="全部排名" allTitle="联系人关联项目销售贡献度排行" :paramOld="paramPro" :tablecols="tool.tabelCol(this.$route.name).associatedProject.tablecols"></allRank>
             <tableDetail :layout="tablecols" :data="list" :opwidth="200" :custom="true">
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'amount'">
@@ -132,7 +132,13 @@ export default {
       }
     },
     allClick(){
-      this.drawerShow = true
+      if (this.activeName == '关联客户'){
+        this.$refs.allRankCusRef.drawerShow = true
+        this.$refs.allRankCusRef.$refs.depStatusCusRef.deplist = this.$refs.depStatusCusRef.deplist
+        this.$refs.allRankCusRef.$refs.depStatusCusRef.personnelList = this.$refs.depStatusCusRef.personnelList
+        this.$refs.allRankCusRef.$refs.depStatusCusRef.depment = this.$refs.depStatusCusRef.depment
+        this.$refs.allRankCusRef.$refs.depStatusCusRef.person = this.$refs.depStatusCusRef.person
+      }
     },
     onCLose(){
       console.log('关闭弹窗')

+ 0 - 8
src/HDrpManagement/contactData/index.vue

@@ -327,29 +327,21 @@ export default {
       this.$refs.allDepRef.deplist = this.deplist
       this.$refs.salesContributionRef.$refs.depStatusCusRef.deplist = this.deplist
       this.$refs.salesContributionRef.$refs.depStatusProRef.deplist = this.deplist
-      // this.$refs.salesContributionRef.$refs.allRankProRef.$refs.depStatusProRef.deplist = this.deplist
-      // this.$refs.salesContributionRef.$refs.allRankCusRef.$refs.depStatusCusRef.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.$refs.salesContributionRef.$refs.allRankCusRef.$refs.depStatusCusRef.personnelList = this.personnelList
-      // this.$refs.salesContributionRef.$refs.allRankProRef.$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.$refs.salesContributionRef.$refs.allRankCusRef.$refs.depStatusCusRef.depment = this.depment
-      // this.$refs.salesContributionRef.$refs.allRankProRef.$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
-      // this.$refs.salesContributionRef.$refs.allRankCusRef.$refs.depStatusCusRef.person = this.person
-      // this.$refs.salesContributionRef.$refs.allRankProRef.$refs.depStatusProRef.person = this.person
 
       const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
       this.otherMethod(userid)