Commit 79b930ee authored by 罗超's avatar 罗超

调整

parent 9bc2e187
......@@ -213,6 +213,12 @@
<p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.CustomerName}}</p>
</template>
</el-table-column>
<el-table-column
prop="CustomerType"
label="客户类型"
v-if="queryType[20].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="CustomerSourceTypeStr"
label="客户来源"
......@@ -540,6 +546,10 @@ export default {
label: '交客数',
show: true,
},
{
label: '客户类型',
show: true,
}
],
queryType: [
{
......@@ -602,7 +612,10 @@ export default {
},{
label: '交客数',
show: true,
},
}, {
label: '客户类型',
show: true,
}
],
CustomerId: 0,
CustomerIdStr: '',
......
......@@ -303,6 +303,7 @@ export default {
SceneName: '',
IsDefault: 0,
}
console.log(val)
},
deep:true
}
......@@ -502,7 +503,7 @@ export default {
x.region = this.optionsNames.filter(item=>{
return !item.t
})
} else if (x.Name === '负责人' || x.Name === '创建人' || x.Name === '线索来源' || x.Name === '客户来源' || x.Name === '客人级别' || x.Name === '经营场所' || x.Name === '性别' || x.Name === '是否关键决策人' || x.Name === '职务' || x.Name === '商机状态组' || x.Name === '交客数' || x.Name === '优惠券数' || x.Name === '交易金额' || x.Name === '幸福存折') {
} else if (x.Name === '负责人' || x.Name === '客户类别' || x.Name === '创建人' || x.Name === '线索来源' || x.Name === '客户来源' || x.Name === '客人级别' || x.Name === '经营场所' || x.Name === '性别' || x.Name === '是否关键决策人' || x.Name === '职务' || x.Name === '商机状态组' || x.Name === '交客数' || x.Name === '优惠券数' || x.Name === '交易金额' || x.Name === '幸福存折') {
x.region = this.optionsNames.filter(item=>{
return (item.c === '等于' || item.c === '不等于') && item.t
})
......
......@@ -68,6 +68,7 @@ export default {
this.sceneDataList = this.sceneData.filter(x=>
x.WhereType === 0
)
console.log(this.sceneDataList)
let $this = this
this.MsgBus.$on('editScene', function (){
console.log(1)
......
......@@ -205,7 +205,8 @@
<span class="font-size-12">{{item.SeasonTypeName}}</span>
</div>
<div class="right">
<p>累计报名<span class="hight-font">{{item.SeasonCount}}</span>人,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<p>累计报名<span class="hight-font">{{item.SeasonCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- ,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万 -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div>
</div>
......
This diff is collapsed.
......@@ -204,7 +204,8 @@
<p>{{item.FestivalName}}</p>
</div>
<div class="right">
<p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- 关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万, -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div>
</div>
......@@ -219,14 +220,14 @@
推荐解答
</el-col>
<el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞
<!-- <i class="iconfont icondianzan1"></i> 点赞 -->
</el-col>
</el-row>
</div>
<div class="situ">
<div class="fesRemind">根据对客户年龄段的统计,可以更好的了解不同年龄段客 人的喜根据对客户年龄段的统计。根据对客户年龄段的统 计,可以更好的了解不同年龄段客人的喜根据对客户年龄 段的统计</div>
<div class="fesRemind">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="botTaolun" @click="drawer = true">
查看更多,参与讨论(1)
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div>
</div>
......@@ -239,7 +240,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......@@ -259,14 +260,33 @@ export default {
discussID: 0,
drawer: false,
isShowFeature:false,
discussID: 11,
BbsList: [],
topOne:{}
};
},watch:{
},
mounted() {
this.GetSexOrderList()
this.GetBbsListByType()
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
});
},
GetSexOrderList(){
this.loading = true
this.apipost("/api/Statistic/GetFestivalOrderList", {}, res => {
......
This diff is collapsed.
<style>
.job{
.job {
height: calc(100% - 25px);
}
.statistics-title {
......@@ -9,7 +9,7 @@
margin-bottom: 30px;
font-family: perfectFont;
}
.job .conten-box{
.job .conten-box {
display: flex;
flex-direction: column;
height: calc(100% - 62px);
......@@ -17,18 +17,18 @@
.job .conten-box .el-card .el-card__header {
font-weight: normal !important;
}
.job .conten-box .top{
.job .conten-box .top {
flex: 1.2;
margin-bottom: 25px;
}
.job .conten-box .bottom{
flex: .8;
.job .conten-box .bottom {
flex: 0.8;
}
.job .conten-box .left{
.job .conten-box .left {
height: 100%;
}
.job .conten-box .el-card.blue {
background: #0D2481!important;
background: #0d2481 !important;
color: #fff !important;
height: calc(100% - 2px);
}
......@@ -41,45 +41,44 @@
display: flex;
align-items: flex-end;
text-align: center;
padding: 27px 0 0 90px!important;
padding: 27px 0 0 90px !important;
justify-content: center;
font-size: 14px;
}
.job .sjsm{
.job .sjsm {
height: 198px;
overflow: auto;
}
.job .sjsm>div{
.job .sjsm > div {
margin-bottom: 20px;
}
.job .sjsm>div:last-child{
.job .sjsm > div:last-child {
margin-bottom: 0px;
}
.job .sjsm>div{
.job .sjsm > div {
flex: 1;
background:rgba(244,245,249,1);
background: rgba(244, 245, 249, 1);
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
}
.job .sjsm>div .left{
.job .sjsm > div .left {
display: flex;
align-items: center;
}
.job .sjsm>div .left img{
.job .sjsm > div .left img {
padding-right: 10px;
}
.job .sjsm>div .right{
.job .sjsm > div .right {
text-align: right;
color: #888888;
font-size: 12px;
}
.job .hight-font{
color: #0D2481 !important;
.job .hight-font {
color: #0d2481 !important;
font-size: 14px;
}
</style>
<template>
<div class="job" v-loading="loading">
......@@ -95,19 +94,19 @@
<el-col :span="6" class="img">
<div>
<div style="margin-bottom: 10px;">
<img src="../../assets/img/tongji/qinzi.png" alt="">
<img src="../../assets/img/tongji/qinzi.png" alt />
</div>
<p>教育</p>
</div>
</el-col>
<el-col :span="18" style="height: 100%;">
<sexChart :myData="chartData" :strArr="strArr"/>
<sexChart :myData="chartData" :strArr="strArr" />
</el-col>
</el-row>
</el-card>
</el-col>
</el-row>
<el-row :gutter="25" class="bottom" >
<el-row :gutter="25" class="bottom">
<el-col :span="12" style="height: 100%;">
<el-card style="height: 100%;">
<div slot="header" class="clearfix">
......@@ -116,17 +115,25 @@
<div class="sjsm">
<div v-for="(item, index) in orders" :key="index">
<div class="left">
<img v-if="index==0" src="../../assets/img/tongji/qinzhi.png" alt="">
<img v-else-if="index==1" src="../../assets/img/tongji/miyue.png" alt="">
<img v-else-if="index==2" src="../../assets/img/tongji/in3.png" alt="">
<img v-else-if="index==3" src="../../assets/img/tongji/d1.png" alt="">
<img v-else-if="index==4" src="../../assets/img/tongji/hanjia.png" alt="">
<img v-else src="../../assets/img/tongji/qinzhi.png" alt="">
<img v-if="index==0" src="../../assets/img/tongji/qinzhi.png" alt />
<img v-else-if="index==1" src="../../assets/img/tongji/miyue.png" alt />
<img v-else-if="index==2" src="../../assets/img/tongji/in3.png" alt />
<img v-else-if="index==3" src="../../assets/img/tongji/d1.png" alt />
<img v-else-if="index==4" src="../../assets/img/tongji/hanjia.png" alt />
<img v-else src="../../assets/img/tongji/qinzhi.png" alt />
<span class="font-size-12">{{item.DutyTypeName}}</span>
</div>
<div class="right">
<p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
<p>
累计报名
<span class="hight-font">{{item.OrderCount}}</span>人,报名均价为
<span class="hight-font">{{item.Unit_Price}}</span>
</p>
<!-- 关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万, -->
<p>
最喜爱产品
<span class="hight-font">{{item.LtName}}</span>
</p>
</div>
</div>
</div>
......@@ -136,18 +143,16 @@
<el-card style="height: 100%;">
<div slot="header" class="clearfix">
<el-row style="width:100%">
<el-col :span="12" size="30">
推荐解答
</el-col>
<el-col :span="12" size="30">推荐解答</el-col>
<el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞
</el-col>
</el-row>
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
查看更多,参与讨论(19)
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div>
</div>
......@@ -155,18 +160,14 @@
</el-col>
</el-row>
</div>
<el-drawer
size='695px'
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :type="discussID"/>
<el-drawer size="695px" :visible.sync="drawer" direction="rtl" :with-header="false">
<discussBox :type="discussID" />
</el-drawer>
</div>
</template>
<script>
import sexChart from './model/sexChart'
import shopChart from './model/shopChart'
import sexChart from "./model/sexChart";
import shopChart from "./model/shopChart";
import discussBox from "./model/discussBox";
export default {
components: {
......@@ -176,45 +177,68 @@ export default {
},
data() {
return {
orders:[],
orders: [],
discussID: 0,
drawer: false,
chartData: [],
shopChartData: [],
SexOrder: [],
loading: false,
strArr: ['娱乐', '教育', '服务']
strArr: ["娱乐", "教育", "服务"],
discussID: 13,
BbsList: [],
topOne: {}
};
},watch:{
},
watch: {},
mounted() {
this.GetSexOrderList()
this.GetSexOrderList();
this.GetBbsListByType();
},
methods: {
GetSexOrderList(){
this.loading = true
GetBbsListByType() {
this.apipost(
"/api/Customer/GetBbsListByType",
{ t: this.discussID },
res => {
this.BbsList = res.data.data;
if (this.BbsList && this.BbsList.length > 0) {
this.topOne = this.BbsList[0];
this.BbsList.forEach(x => {
if (x.Likes > this.topOne.Likes) {
this.topOne = x;
}
});
}
}
);
},
GetSexOrderList() {
this.loading = true;
this.apipost("/api/Statistic/GetDutyTypeOrderList", {}, res => {
this.loading = false
if(res.data.resultCode==1){
this.strArr=[];
let data=res.data.data;
var totalOrder=0;
var totalMoney=0;
data.forEach(item=>{
this.loading = false;
if (res.data.resultCode == 1) {
this.strArr = [];
let data = res.data.data;
var totalOrder = 0;
var totalMoney = 0;
data.forEach(item => {
this.strArr.push(item.DutyTypeName);
totalOrder+=item.OrderCount;
totalMoney+=item.ShopMoney;
})
data.forEach(item=>{
this.chartData.push(((item.OrderCount/totalOrder)*100).toFixed(2));
})
this.orders=res.data.data;
}else{
totalOrder += item.OrderCount;
totalMoney += item.ShopMoney;
});
data.forEach(item => {
this.chartData.push(
((item.OrderCount / totalOrder) * 100).toFixed(2)
);
});
this.orders = res.data.data;
} else {
this.$message.error(res.data.message);
}
});
}
}
}
};
</script>
\ No newline at end of file
......@@ -25,13 +25,15 @@
<div class="r">
<div>
累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额
<b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b>
<template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}}
</template>
</b>,报名均价为:
</b>, -->
报名均价为:
<b>
<template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}}
......@@ -71,9 +73,9 @@
</el-row>
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
查看更多,参与讨论(19)
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div>
</div>
......@@ -123,13 +125,32 @@ export default {
"未婚",
"丧偶",
"其他未知"
]
],
discussID: 14,
BbsList: [],
topOne:{}
};
},
mounted() {
this.init();
this.GetBbsListByType()
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
});
},
init() {
this.apipost("/api/Statistic/GetMarriageShopList", {}, res => {
res.data.data.forEach(x => {
......@@ -154,8 +175,10 @@ export default {
initOrders() {
this.apipost("/api/Statistic/GetMarriageOrderList", {}, res => {
res.data.data.forEach(x => {
if(x.Marriage - 1<this.showChats.length){
this.showChats[x.Marriage - 1].LtName = x.LtName;
this.showChats[x.Marriage - 1].Unit_Price = x.Unit_Price;
}
});
this.isLoaded = true;
});
......
......@@ -124,7 +124,8 @@
<span class="font-size-12">{{item.MarriageName}}</span>
</div>
<div class="right">
<p>累计报名<span class="hight-font">{{item.MarriageCount}}</span>人,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<p>累计报名<span class="hight-font">{{item.MarriageCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- 关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万, -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div>
</div>
......
......@@ -147,7 +147,7 @@
<img width="24" height="24" :src="item.ImgPhoto" alt="">
<span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span>
</div>
<span class="font-color-info">{{item.TimeStr}}</span>
<span class="font-color-info" style="font-size:12px;">{{item.TimeStr}}</span>
</div>
<div class="content">
<p>{{item.Content}}</p>
......@@ -176,13 +176,13 @@
<span>{{c.RejectUserName}}</span>
</div>
</div>
<span class="font-color-info">{{c.TimeStr}}</span>
<span class="font-color-info" style="font-size:12px;">{{c.TimeStr}}</span>
</div>
<div class="content">
<p>{{c.Content}}</p>
</div>
<div class="footer">
<span class="cp like" @click="AddLike(c)"><i class="iconfont iconzan"></i>{{c.Likes > 0 ? c.Likes : ''}}</span>
<!-- <span class="cp like" @click="AddLike(c)"><i class="iconfont iconzan"></i>{{c.Likes > 0 ? c.Likes : ''}}</span> -->
<span class="cp" @click="setHF(c.Id)"><i class="iconfont iconhuifu"></i>{{hfID === c.Id ? '取消' : ''}}回复</span>
</div>
<div class="msg-box" v-if="hfID === c.Id">
......
......@@ -52,7 +52,7 @@ export default {
},
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)'
formatter: '{a} <br/>{b} : ({d}%)'
},
legend: {
orient: 'vertical',
......@@ -61,7 +61,7 @@ export default {
},
series: [
{
name: '访问来源',
name: '购物占比',
type: 'pie',
radius: '55%',
center: ['50%', '60%'],
......
......@@ -25,12 +25,14 @@
<div class="r">
<div>
累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额
<b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b>
<template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}}
</template>
</b>,报名均价为:
</b>, -->
报名均价为:
<b>
<template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}}
......@@ -72,7 +74,7 @@
</el-row>
</div>
<div class="situ">
<div class="c">{{BbsList.length ? BbsList[0].Content : '暂无'}}</div>
<div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
......@@ -81,27 +83,6 @@
</el-card>
</div>
</div>
<!-- <div class="title">购物统计(按平均计算)</div>
<shopping></shopping>
<div class="title" style="margin-top:30px;">我来解图</div>
<div class="situ">
<div class="head">
<el-row style="width:100%">
<el-col ::span="12" size="30" style="font-size:14px;">
<el-avatar style="margin-top:3px;margin-right:5px;vertical-align: bottom;">系统</el-avatar>系统默认
</el-col>
<el-col :span="12" class="right">
<i class="iconfont icondianzan1"></i> 点赞
</el-col>
</el-row>
</div>
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="bot">
查看更多,参与讨论(19)
<i class="el-icon-d-arrow-right"></i>
</div>
</div>-->
</el-col>
</el-row>
<el-drawer
......@@ -126,7 +107,7 @@ export default {
},
data() {
return {
discussID: 2,
drawer: false,
scaleData: [],
showChats: [],
......@@ -151,7 +132,9 @@ export default {
"中年(46-69岁)",
"老年(70岁以上)"
],
discussID: 2,
BbsList: [],
topOne:{}
};
},
mounted() {
......@@ -160,8 +143,18 @@ export default {
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 2}, res => {
this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
});
},
init() {
......@@ -190,8 +183,10 @@ export default {
initOrders() {
this.apipost("/api/Statistic/GetAgeOrderList", {}, res => {
res.data.data.forEach(x => {
if(x.NewAgeType - 1<this.showChats.length){
this.showChats[x.NewAgeType - 1].LtName = x.LtName;
this.showChats[x.NewAgeType - 1].Unit_Price = x.Unit_Price;
}
});
this.isLoaded = true;
});
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment