diff --git a/salesRanking/page/enterpriseDetails/enterpriseDetails.vue b/salesRanking/page/enterpriseDetails/enterpriseDetails.vue index 0a47b16..3191664 100644 --- a/salesRanking/page/enterpriseDetails/enterpriseDetails.vue +++ b/salesRanking/page/enterpriseDetails/enterpriseDetails.vue @@ -52,64 +52,46 @@ :class=" chartSeleIndex==index?'selechartSeleBar_item':'chartSeleBar_item' ">{{item.lable}} - - - - - - - - - - - - - - - + - - 今日 - {{}} L - {{}} + + + + + + 今日 + {{oneMonthData.todaySalesRose.toFixed(2)}} L + + {{oneMonthData.siteDayBalance|price}} + - + {{dedata.startTime|timeProcessing}} - {{dedata.endTime|timeProcessing}} @@ -163,23 +145,24 @@ }, dedata: null, chartsData: null, + detailsData: null, + oneMonthData: null, income: 0, quantity: 0, - detailsData: null, chartSeleBarData: [{ lable: '近五日动销', value: 0 }, { lable: '近五次充值', value: 1 - },{ + }, { lable: '近一月动销', value: 2 }], chartSeleIndex: 0, Line: {}, LineTwo: {}, - oneMonthLine:{} + oneMonthLine: {} } }, onLoad(e) { @@ -209,6 +192,9 @@ } }, methods: { + getTouchMove(e) { + // console.log('e',e) + }, datePopupChange(e) { sy[(this.routerIndex ? 'queryBusinessIncome' : 'queryEnterpriseIncome')]({ [((this.routerIndex ? 'siteId' : 'companyId'))]: this.dedata.id, @@ -277,7 +263,7 @@ this.quantity = res.data.orderNumber console.log(res, '收入') }) - if(this.routerIndex) { + if (this.routerIndex) { // 近一个月动销 仅油站动销展示 sy.findMonthlySiteMovingPinVo(e.id).then(res => { let dateArr = [] @@ -285,8 +271,11 @@ res.data.siteMovingPins.forEach(item => { let date = item.createTime.split('-') dateArr.push(`${date[1]}-${date[2]}`) - moneyArr.push(item.money.toFixed(2)) + let money = (item.money + '').includes('.') ? item.money.toFixed(2) : item + .money + moneyArr.push(money) }) + this.oneMonthData = res.data this.oneMonthLine = { categories: dateArr, series: [{ @@ -295,7 +284,7 @@ }] } }) - } + } }, jump(e) { this.dedata.routerIndex = this.routerIndex; @@ -333,7 +322,7 @@ }, swiperChange(e) { - this.chartSeleIndex = e.detail.current + // this.chartSeleIndex = e.detail.current }, chartSeleBarFn(item, index) { this.chartSeleIndex = index @@ -345,6 +334,10 @@