Commit 2c383fd7 authored by 华国豪's avatar 华国豪 🙄

销售数据统计

parent 9e5fdfd3
...@@ -38,8 +38,7 @@ export default { ...@@ -38,8 +38,7 @@ export default {
<style> <style>
@import './assets/global/font.css'; @import './assets/global/font.css';
@import '//at.alicdn.com/t/font_988027_pm4p4dmbxwe.css'; @import '//at.alicdn.com/t/font_988027_icjaw26gr1.css';
@import '//at.alicdn.com/t/font_635492_i78o4snnnqp.css';
@import './assets/global/global.css'; @import './assets/global/global.css';
body,html{ body,html{
padding: 0px; padding: 0px;
......
...@@ -586,18 +586,22 @@ ...@@ -586,18 +586,22 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<lineChart v-if="chartShow" :zoom="zoom" :preferpriceList="preferpriceList" :guestnumList="guestnumList" :clickcountList="clickcountList" :ordercountList="ordercountList" :unitpriceList="unitpriceList" :day_total_guestprice="day_total_guestprice" :dateList="dateList"/> <lineChart v-if="chartShow && (!RB_Branch_id || RB_Branch_id !== 0)" :zoom="zoom" :inquireList="inquireList" :preferpriceList="preferpriceList" :guestnumList="guestnumList" :clickcountList="clickcountList" :ordercountList="ordercountList" :unitpriceList="unitpriceList" :day_total_guestprice="day_total_guestprice" :dateList="dateList"/>
<lineChart2 v-if="chartShow && RB_Branch_id == 0" :zoom="zoom" :inquireList="inquireList" :preferpriceList="preferpriceList" :guestnumList="guestnumList" :clickcountList="clickcountList" :ordercountList="ordercountList" :unitpriceList="unitpriceList" :day_total_guestprice="day_total_guestprice" :dateList="dateList"/>
<!-- <lineChart2 v-if="chartShow" :zoom="zoom" :inquireList="inquireList" :preferpriceList="preferpriceList" :guestnumList="guestnumList" :clickcountList="clickcountList" :ordercountList="ordercountList" :unitpriceList="unitpriceList" :day_total_guestprice="day_total_guestprice" :dateList="dateList"/> -->
</el-row> </el-row>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import lineChart from "./lineChart2"; import lineChart from "./lineChart";
import lineChart2 from "./lineChart2";
import lineChartK from "./lineChartK"; import lineChartK from "./lineChartK";
export default { export default {
components: { components: {
lineChart, lineChart,
lineChart2,
lineChartK lineChartK
}, },
data(){ data(){
...@@ -644,6 +648,7 @@ export default { ...@@ -644,6 +648,7 @@ export default {
day_order_statics: [], day_order_statics: [],
day_click_statics: [], day_click_statics: [],
day_history_preferprice: [], day_history_preferprice: [],
inquireList: [],
zoom: 1, zoom: 1,
day_line_statics: [], day_line_statics: [],
day_total_guestprice: {}, day_total_guestprice: {},
...@@ -655,6 +660,7 @@ export default { ...@@ -655,6 +660,7 @@ export default {
Status:0, Status:0,
}, },
companyList: [], companyList: [],
RB_Branch_id: null
} }
}, },
watch: { watch: {
...@@ -662,6 +668,10 @@ export default { ...@@ -662,6 +668,10 @@ export default {
this.loadRegionChild(nv) this.loadRegionChild(nv)
}, },
},created(){ },created(){
let user = localStorage.user ? JSON.parse(localStorage.user) : ''
if (user) {
this.RB_Branch_id = user.RB_Branch_id
}
this.apipost("line_post_GetAllList_V2", {LineDirection: 0}, res => { this.apipost("line_post_GetAllList_V2", {LineDirection: 0}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
...@@ -763,6 +773,8 @@ export default { ...@@ -763,6 +773,8 @@ export default {
this.ordercountList = data.day_guestprice.ordercountList this.ordercountList = data.day_guestprice.ordercountList
// 时间 // 时间
this.dateList = data.day_guestprice.dateList this.dateList = data.day_guestprice.dateList
// 询价
this.inquireList = data.day_guestprice.inquireList
// 合计 // 合计
this.day_total_guestprice = data.day_total_guestprice[0] this.day_total_guestprice = data.day_total_guestprice[0]
this.chartShow = true; this.chartShow = true;
......
This diff is collapsed.
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
.PINGFANG{ .PINGFANG{
font-family: "PINGFANG REGULAR"; font-family: "PINGFANG REGULAR";
} }
.myecharts{ .myechartsS{
height: 100%; height: 1100px !important;
} }
</style> </style>
<template> <template>
<div class="myecharts" ref="myecharts" > <div class="myecharts myechartsS" ref="myecharts" >
</div> </div>
</template> </template>
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
'unitpriceList', 'unitpriceList',
'day_total_guestprice', 'day_total_guestprice',
'dateList', 'dateList',
'inquireList',
'zoom' 'zoom'
], ],
data(){ data(){
...@@ -79,7 +80,7 @@ export default { ...@@ -79,7 +80,7 @@ export default {
realtime: true, realtime: true,
start: 90, start: 90,
end: 100, end: 100,
xAxisIndex: [0, 1, 2, 3], xAxisIndex: [0, 1, 2, 3, 4],
textStyle: { textStyle: {
color: "#ffffff" color: "#ffffff"
}, },
...@@ -94,7 +95,7 @@ export default { ...@@ -94,7 +95,7 @@ export default {
realtime: true, realtime: true,
start: 90, start: 90,
end: 100, end: 100,
xAxisIndex: [0, 1, 2, 3], xAxisIndex: [0, 1, 2, 3, 4],
textStyle: { textStyle: {
color: "#ffffff" color: "#ffffff"
}, },
...@@ -113,23 +114,28 @@ export default { ...@@ -113,23 +114,28 @@ export default {
grid: [{ grid: [{
left: 80, left: 80,
right: 10, right: 10,
top: '5%', top: '40px',
height: '16%' height: '150px'
}, { }, {
left: 80, left: 80,
right: 10, right: 10,
top: '28%', top: '250px',
height: '16%' height: '150px'
}, { }, {
left: 80, left: 80,
right: 10, right: 10,
top: '51%', top: '460px',
height: '16%' height: '150px'
}, { }, {
left: 80, left: 80,
right: 10, right: 10,
top: '74%', top: '670px',
height: '16%' height: '150px'
}, {
left: 80,
right: 10,
top: '880px',
height: '150px'
} }
], ],
xAxis : [ xAxis : [
...@@ -163,6 +169,14 @@ export default { ...@@ -163,6 +169,14 @@ export default {
boundaryGap : false, boundaryGap : false,
data: _this.dateList, data: _this.dateList,
position: 'bottom', position: 'bottom',
"show": false,
},
{
gridIndex: 4,
type : 'category',
boundaryGap : false,
data: _this.dateList,
position: 'bottom',
"show": true, "show": true,
axisLabel: { axisLabel: {
color: '#fff', color: '#fff',
...@@ -212,7 +226,7 @@ export default { ...@@ -212,7 +226,7 @@ export default {
}, },
{ {
gridIndex: 2, gridIndex: 2,
name : '收客人头数 '+ _this.day_total_guestprice.OrderCount, name : '收客人头数 '+ _this.day_total_guestprice.GuestNum,
type : 'value', type : 'value',
inverse: false, inverse: false,
splitLine: { splitLine: {
...@@ -249,6 +263,26 @@ export default { ...@@ -249,6 +263,26 @@ export default {
axisLabel: { axisLabel: {
color: '#EE4454', color: '#EE4454',
} }
},
{
gridIndex: 4,
name : '询价统计 '+ _this.day_total_guestprice.InquireCount,
type : 'value',
inverse: false,
splitLine: {
lineStyle: {
color: '#30374E',
type: 'dashed'
}
},
nameTextStyle: {
color: '#ffffff',
padding: [10, 0, 0, 110],
fontSize: 18
},
axisLabel: {
color: 'rgb(106, 176, 76)',
}
} }
], ],
series : [ series : [
...@@ -377,6 +411,37 @@ export default { ...@@ -377,6 +411,37 @@ export default {
]) ])
} }
}, },
},
{
name:'询价统计',
type:'line',
xAxisIndex: 4,
yAxisIndex: 4,
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data: _this.inquireList,
itemStyle: {
borderWidth: 2,
color: "rgb(106, 176, 76)",
shadowBlur: 5,
shadowColor: 'rgba(255,250,0,1)'
},
lineStyle: {
color: "rgb(106, 176, 76)",
width: 1,
shadowBlur: 2,
shadowColor: "rgb(106, 176, 76)",
},
areaStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "rgba(106, 176, 76,1)" },
{ offset: .8, color: "rgba(106, 176, 76,0)" }
])
}
},
} }
] ]
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -5,6 +5,7 @@ import index from './views/index' ...@@ -5,6 +5,7 @@ import index from './views/index'
import viittoData from './components/viitto/viittoData' import viittoData from './components/viitto/viittoData'
import viittoData2 from './components/viitto/viittoData2' import viittoData2 from './components/viitto/viittoData2'
import dataLook from './components/viitto/dataLook' import dataLook from './components/viitto/dataLook'
import saleDataLook from './components/viitto/saleDataLook'
import PerCompetition from './components/viitto/PerCompetition' import PerCompetition from './components/viitto/PerCompetition'
Vue.use(Router) Vue.use(Router)
...@@ -43,6 +44,11 @@ export default new Router({ ...@@ -43,6 +44,11 @@ export default new Router({
name: 'dataLook', name: 'dataLook',
component: dataLook, component: dataLook,
}, },
{
path: '/saleDataLook',
name: 'saleDataLook',
component: saleDataLook,
},
{ {
path: '/PerCompetition', path: '/PerCompetition',
name: 'PerCompetition', name: 'PerCompetition',
......
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