|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="bg-img" id="fullScreen" style="box-sizing: border-box">
|
|
|
- <div style="padding: 0 20px 0 20px">
|
|
|
+ <div style="padding: 0 1.042vw 0 1.042vw">
|
|
|
<div class="justify-style">
|
|
|
<div class="select-style">
|
|
|
<el-cascader :placeholder="$t('部门')" class="inline-16" ref="selectdep" size="small" v-model="depment" :options="deplist" :append-to-body="false" placement="bottom"
|
|
|
@@ -35,21 +35,30 @@
|
|
|
<div>
|
|
|
<div class="justify-style">
|
|
|
<!-- 业务员账户 -->
|
|
|
- <salesmanAccount></salesmanAccount>
|
|
|
+ <salesmanAccount ref="accountRef"></salesmanAccount>
|
|
|
<!-- 作业数据 -->
|
|
|
- <jobData></jobData>
|
|
|
+ <jobData ref="jobRef"></jobData>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <!-- 作业数据 -->
|
|
|
+ <div class="inline-top-20">
|
|
|
+ <!-- 销售面板 -->
|
|
|
<salesPanel></salesPanel>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
<!-- 销售漏斗 -->
|
|
|
<salesFunnel></salesFunnel>
|
|
|
+ <div class="justify-style inline-top-20">
|
|
|
+ <!-- 营销费用 -->
|
|
|
+ <marketingExpenses ref="expensesRef"></marketingExpenses>
|
|
|
+ <!-- 营销费用统计 -->
|
|
|
+ <marketingExpenseStatistics></marketingExpenseStatistics>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <accountsReceivable></accountsReceivable>
|
|
|
+ <!-- 应收账款 -->
|
|
|
+ <accountsReceivable ref="receivableRef"></accountsReceivable>
|
|
|
+ <!-- 数据概况 -->
|
|
|
+ <dataProfile class="inline-top-20"></dataProfile>
|
|
|
</div>
|
|
|
</div>
|
|
|
<fullScreen ref="fullRef" class="inline-16" domId="fullScreen" style="visibility: hidden" @backFull="backFull"></fullScreen>
|
|
|
@@ -58,14 +67,17 @@
|
|
|
|
|
|
<script>
|
|
|
import fullScreen from "@/views/salesData/components/fullScreen";
|
|
|
-import salesmanAccount from './components/salesmanAccount';
|
|
|
-import jobData from './components/jobData'
|
|
|
-import salesPanel from './components/salesPanel'
|
|
|
-import salesFunnel from './components/salesFunnel'
|
|
|
-import accountsReceivable from './components/accountsReceivable'
|
|
|
+import salesmanAccount from './modules/salesmanAccount';
|
|
|
+import jobData from './modules/jobData'
|
|
|
+import salesPanel from './modules/salesPanel'
|
|
|
+import salesFunnel from './modules/salesFunnel'
|
|
|
+import marketingExpenses from './modules/marketingExpenses'
|
|
|
+import marketingExpenseStatistics from './modules/marketingExpenseStatistics'
|
|
|
+import accountsReceivable from './modules/accountsReceivable'
|
|
|
+import dataProfile from './modules/dataProfile'
|
|
|
export default {
|
|
|
name: "index",
|
|
|
- components:{fullScreen,salesmanAccount,jobData,salesPanel,salesFunnel,accountsReceivable},
|
|
|
+ components:{fullScreen,salesmanAccount,jobData,salesPanel,salesFunnel,marketingExpenses,marketingExpenseStatistics,accountsReceivable,dataProfile},
|
|
|
data(){
|
|
|
return {
|
|
|
timer: "", // 定义一个定时器
|
|
|
@@ -103,12 +115,6 @@ export default {
|
|
|
that.windowWidth = window.fullHeight
|
|
|
})()
|
|
|
};
|
|
|
- autofit.init({
|
|
|
- dh: 1135,
|
|
|
- dw: 1920,
|
|
|
- el:"body",
|
|
|
- resize: true
|
|
|
- })
|
|
|
},
|
|
|
watch: {
|
|
|
windowWidth (val) {
|
|
|
@@ -161,7 +167,6 @@ export default {
|
|
|
const type = this.depment?'1':'0'
|
|
|
this.person = ''
|
|
|
const dataid = type == '0'?-1:this.departmentid
|
|
|
- this.otherModel(dataid,type,this.isleave,'状态')
|
|
|
this.personData()
|
|
|
},
|
|
|
/*获取新的业务员列表*/
|
|
|
@@ -183,6 +188,7 @@ export default {
|
|
|
this.depment = ''
|
|
|
this.departmentid = ''
|
|
|
const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
|
|
|
+ this.queryAllData(userid)
|
|
|
},
|
|
|
createMenu (array) {
|
|
|
var that = this
|
|
|
@@ -240,20 +246,45 @@ export default {
|
|
|
selectDep(val) {
|
|
|
if (val.length === 0){
|
|
|
const userid = JSON.parse(sessionStorage.getItem('active_account')).userid
|
|
|
- this.otherModel(userid,'0')
|
|
|
+ this.queryAllData(userid)
|
|
|
}else {
|
|
|
this.person = ''
|
|
|
this.dataid = ''
|
|
|
this.departmentid = val[val.length -1]
|
|
|
- this.otherModel(this.departmentid,'1',this.isleave)
|
|
|
+ this.queryAllData(this.departmentid)
|
|
|
}
|
|
|
},
|
|
|
selectPerson(val){
|
|
|
this.depment = ''
|
|
|
this.departmentid = ''
|
|
|
this.dataid = val
|
|
|
- this.otherModel(val,'0',this.isleave)
|
|
|
+ this.queryAllData(val)
|
|
|
},
|
|
|
+ queryAllData(id){
|
|
|
+ /*业务员账户*/
|
|
|
+ this.$refs.accountRef.param.content.dataid = id
|
|
|
+ this.$refs.accountRef.param.content.type = this.departmentid !== ''?1:0
|
|
|
+ this.$refs.accountRef.param.content.where.isleave = this.isleave
|
|
|
+ this.$refs.accountRef.listData()
|
|
|
+
|
|
|
+ /*作业数据*/
|
|
|
+ this.$refs.jobRef.param.content.dataid = id
|
|
|
+ this.$refs.jobRef.param.content.type = this.departmentid !== ''?1:0
|
|
|
+ this.$refs.jobRef.param.content.where.isleave = this.isleave
|
|
|
+ this.$refs.jobRef.listData()
|
|
|
+
|
|
|
+ /*营销费用*/
|
|
|
+ this.$refs.expensesRef.param.content.dataid = id
|
|
|
+ this.$refs.expensesRef.param.content.type = this.departmentid !== ''?1:0
|
|
|
+ this.$refs.expensesRef.param.content.where.isleave = this.isleave
|
|
|
+ this.$refs.expensesRef.listData()
|
|
|
+
|
|
|
+ /*应收账款*/
|
|
|
+ this.$refs.receivableRef.param.content.dataid = id
|
|
|
+ this.$refs.receivableRef.param.content.type = this.departmentid !== ''?1:0
|
|
|
+ this.$refs.receivableRef.param.content.where.isleave = this.isleave
|
|
|
+ this.$refs.receivableRef.listData()
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
this.getTime()
|
|
|
@@ -267,9 +298,6 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-div{
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
.bg-img {
|
|
|
background: url("../../assets/icons/bgScreen.jpg") no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
@@ -325,7 +353,7 @@ div{
|
|
|
}
|
|
|
.content-style{
|
|
|
margin: 1.804vw 1.042vw 1.042vw 1.042vw;
|
|
|
- border: 0.052vw solid #5daf34;
|
|
|
+ /*border: 0.052vw solid #5daf34;*/
|
|
|
height: calc(100vh - 7.458vw);
|
|
|
}
|
|
|
.inline-left-20{
|