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

调整

parent 9bc2e187
...@@ -213,6 +213,12 @@ ...@@ -213,6 +213,12 @@
<p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.CustomerName}}</p> <p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.CustomerName}}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="CustomerType"
label="客户类型"
v-if="queryType[20].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column <el-table-column
prop="CustomerSourceTypeStr" prop="CustomerSourceTypeStr"
label="客户来源" label="客户来源"
...@@ -540,6 +546,10 @@ export default { ...@@ -540,6 +546,10 @@ export default {
label: '交客数', label: '交客数',
show: true, show: true,
}, },
{
label: '客户类型',
show: true,
}
], ],
queryType: [ queryType: [
{ {
...@@ -602,7 +612,10 @@ export default { ...@@ -602,7 +612,10 @@ export default {
},{ },{
label: '交客数', label: '交客数',
show: true, show: true,
}, }, {
label: '客户类型',
show: true,
}
], ],
CustomerId: 0, CustomerId: 0,
CustomerIdStr: '', CustomerIdStr: '',
......
...@@ -303,6 +303,7 @@ export default { ...@@ -303,6 +303,7 @@ export default {
SceneName: '', SceneName: '',
IsDefault: 0, IsDefault: 0,
} }
console.log(val)
}, },
deep:true deep:true
} }
...@@ -502,7 +503,7 @@ export default { ...@@ -502,7 +503,7 @@ export default {
x.region = this.optionsNames.filter(item=>{ x.region = this.optionsNames.filter(item=>{
return !item.t 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=>{ x.region = this.optionsNames.filter(item=>{
return (item.c === '等于' || item.c === '不等于') && item.t return (item.c === '等于' || item.c === '不等于') && item.t
}) })
......
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
this.sceneDataList = this.sceneData.filter(x=> this.sceneDataList = this.sceneData.filter(x=>
x.WhereType === 0 x.WhereType === 0
) )
console.log(this.sceneDataList)
let $this = this let $this = this
this.MsgBus.$on('editScene', function (){ this.MsgBus.$on('editScene', function (){
console.log(1) console.log(1)
......
...@@ -205,7 +205,8 @@ ...@@ -205,7 +205,8 @@
<span class="font-size-12">{{item.SeasonTypeName}}</span> <span class="font-size-12">{{item.SeasonTypeName}}</span>
</div> </div>
<div class="right"> <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> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
......
This diff is collapsed.
...@@ -204,7 +204,8 @@ ...@@ -204,7 +204,8 @@
<p>{{item.FestivalName}}</p> <p>{{item.FestivalName}}</p>
</div> </div>
<div class="right"> <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> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
...@@ -219,14 +220,14 @@ ...@@ -219,14 +220,14 @@
推荐解答 推荐解答
</el-col> </el-col>
<el-col :span="12" class="right-title"> <el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞 <!-- <i class="iconfont icondianzan1"></i> 点赞 -->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="fesRemind">根据对客户年龄段的统计,可以更好的了解不同年龄段客 人的喜根据对客户年龄段的统计。根据对客户年龄段的统 计,可以更好的了解不同年龄段客人的喜根据对客户年龄 段的统计</div> <div class="fesRemind">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="botTaolun" @click="drawer = true"> <div class="botTaolun" @click="drawer = true">
查看更多,参与讨论(1) {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div>
</div> </div>
...@@ -239,7 +240,7 @@ ...@@ -239,7 +240,7 @@
:visible.sync="drawer" :visible.sync="drawer"
direction="rtl" direction="rtl"
:with-header="false"> :with-header="false">
<discussBox :id="discussID"/> <discussBox :type="discussID"/>
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
...@@ -259,14 +260,33 @@ export default { ...@@ -259,14 +260,33 @@ export default {
discussID: 0, discussID: 0,
drawer: false, drawer: false,
isShowFeature:false, isShowFeature:false,
discussID: 11,
BbsList: [],
topOne:{}
}; };
},watch:{ },watch:{
}, },
mounted() { mounted() {
this.GetSexOrderList() this.GetSexOrderList()
this.GetBbsListByType()
}, },
methods: { 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(){ GetSexOrderList(){
this.loading = true this.loading = true
this.apipost("/api/Statistic/GetFestivalOrderList", {}, res => { this.apipost("/api/Statistic/GetFestivalOrderList", {}, res => {
......
This diff is collapsed.
This diff is collapsed.
...@@ -25,13 +25,15 @@ ...@@ -25,13 +25,15 @@
<div class="r"> <div class="r">
<div> <div>
累计报名 累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额 <b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b> <b>
<template v-if="item.TotalMoney"> <template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}} {{(item.TotalMoney/10000).toFixed(2)}}
</template> </template>
</b>,报名均价为: </b>, -->
报名均价为:
<b> <b>
<template v-if="item.Unit_Price"> <template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}} {{item.Unit_Price.toFixed(0)}}
...@@ -71,9 +73,9 @@ ...@@ -71,9 +73,9 @@
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div> <div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true"> <div class="bot" @click="drawer = true">
查看更多,参与讨论(19) {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div>
</div> </div>
...@@ -123,13 +125,32 @@ export default { ...@@ -123,13 +125,32 @@ export default {
"未婚", "未婚",
"丧偶", "丧偶",
"其他未知" "其他未知"
] ],
discussID: 14,
BbsList: [],
topOne:{}
}; };
}, },
mounted() { mounted() {
this.init(); this.init();
this.GetBbsListByType()
}, },
methods: { 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() { init() {
this.apipost("/api/Statistic/GetMarriageShopList", {}, res => { this.apipost("/api/Statistic/GetMarriageShopList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
...@@ -154,8 +175,10 @@ export default { ...@@ -154,8 +175,10 @@ export default {
initOrders() { initOrders() {
this.apipost("/api/Statistic/GetMarriageOrderList", {}, res => { this.apipost("/api/Statistic/GetMarriageOrderList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
this.showChats[x.Marriage - 1].LtName = x.LtName; if(x.Marriage - 1<this.showChats.length){
this.showChats[x.Marriage - 1].Unit_Price = x.Unit_Price; this.showChats[x.Marriage - 1].LtName = x.LtName;
this.showChats[x.Marriage - 1].Unit_Price = x.Unit_Price;
}
}); });
this.isLoaded = true; this.isLoaded = true;
}); });
......
...@@ -124,7 +124,8 @@ ...@@ -124,7 +124,8 @@
<span class="font-size-12">{{item.MarriageName}}</span> <span class="font-size-12">{{item.MarriageName}}</span>
</div> </div>
<div class="right"> <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> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<img width="24" height="24" :src="item.ImgPhoto" alt=""> <img width="24" height="24" :src="item.ImgPhoto" alt="">
<span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span> <span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span>
</div> </div>
<span class="font-color-info">{{item.TimeStr}}</span> <span class="font-color-info" style="font-size:12px;">{{item.TimeStr}}</span>
</div> </div>
<div class="content"> <div class="content">
<p>{{item.Content}}</p> <p>{{item.Content}}</p>
...@@ -176,13 +176,13 @@ ...@@ -176,13 +176,13 @@
<span>{{c.RejectUserName}}</span> <span>{{c.RejectUserName}}</span>
</div> </div>
</div> </div>
<span class="font-color-info">{{c.TimeStr}}</span> <span class="font-color-info" style="font-size:12px;">{{c.TimeStr}}</span>
</div> </div>
<div class="content"> <div class="content">
<p>{{c.Content}}</p> <p>{{c.Content}}</p>
</div> </div>
<div class="footer"> <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> <span class="cp" @click="setHF(c.Id)"><i class="iconfont iconhuifu"></i>{{hfID === c.Id ? '取消' : ''}}回复</span>
</div> </div>
<div class="msg-box" v-if="hfID === c.Id"> <div class="msg-box" v-if="hfID === c.Id">
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)' formatter: '{a} <br/>{b} : ({d}%)'
}, },
legend: { legend: {
orient: 'vertical', orient: 'vertical',
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
}, },
series: [ series: [
{ {
name: '访问来源', name: '购物占比',
type: 'pie', type: 'pie',
radius: '55%', radius: '55%',
center: ['50%', '60%'], center: ['50%', '60%'],
......
...@@ -25,12 +25,14 @@ ...@@ -25,12 +25,14 @@
<div class="r"> <div class="r">
<div> <div>
累计报名 累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额 <b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b> <b>
<template v-if="item.TotalMoney"> <template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}} {{(item.TotalMoney/10000).toFixed(2)}}
</template> </template>
</b>,报名均价为: </b>, -->
报名均价为:
<b> <b>
<template v-if="item.Unit_Price"> <template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}} {{item.Unit_Price.toFixed(0)}}
...@@ -72,7 +74,7 @@ ...@@ -72,7 +74,7 @@
</el-row> </el-row>
</div> </div>
<div class="situ"> <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"> <div class="bot" @click="drawer = true">
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}} {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
...@@ -81,27 +83,6 @@ ...@@ -81,27 +83,6 @@
</el-card> </el-card>
</div> </div>
</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-col>
</el-row> </el-row>
<el-drawer <el-drawer
...@@ -126,7 +107,7 @@ export default { ...@@ -126,7 +107,7 @@ export default {
}, },
data() { data() {
return { return {
discussID: 2,
drawer: false, drawer: false,
scaleData: [], scaleData: [],
showChats: [], showChats: [],
...@@ -151,7 +132,9 @@ export default { ...@@ -151,7 +132,9 @@ export default {
"中年(46-69岁)", "中年(46-69岁)",
"老年(70岁以上)" "老年(70岁以上)"
], ],
discussID: 2,
BbsList: [], BbsList: [],
topOne:{}
}; };
}, },
mounted() { mounted() {
...@@ -160,8 +143,18 @@ export default { ...@@ -160,8 +143,18 @@ export default {
}, },
methods: { methods: {
GetBbsListByType(){ GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 2}, res => { this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data 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() { init() {
...@@ -190,8 +183,10 @@ export default { ...@@ -190,8 +183,10 @@ export default {
initOrders() { initOrders() {
this.apipost("/api/Statistic/GetAgeOrderList", {}, res => { this.apipost("/api/Statistic/GetAgeOrderList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
this.showChats[x.NewAgeType - 1].LtName = x.LtName; if(x.NewAgeType - 1<this.showChats.length){
this.showChats[x.NewAgeType - 1].Unit_Price = x.Unit_Price; this.showChats[x.NewAgeType - 1].LtName = x.LtName;
this.showChats[x.NewAgeType - 1].Unit_Price = x.Unit_Price;
}
}); });
this.isLoaded = true; 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