|
@@ -78,8 +78,11 @@
|
|
|
<u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow4"></u-icon>
|
|
|
<u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow4"></u-icon>
|
|
|
</p>
|
|
|
+
|
|
|
|
|
|
- <u-collapse :headStyle="{
|
|
|
+ <u-collapse :style="changeitemBl?' border-Bottom: 1px solid #000205':''"
|
|
|
+
|
|
|
+ :headStyle="{
|
|
|
color:'#101010',
|
|
|
fontWeight: 'bold',
|
|
|
padding:'12px 0',
|
|
@@ -87,8 +90,8 @@
|
|
|
|
|
|
}"
|
|
|
v-if="stationFlowList.length">
|
|
|
- <u-collapse-item
|
|
|
- v-for="(item, index) in stationFlowList" :open="index==0" :title="item.stationName+' 总收入'+item.actualMoney.toFixed(2)+'元'" :key="index">
|
|
|
+ <u-collapse-item @change="changeitem"
|
|
|
+ v-for="(item, index) in stationFlowList" :index="index" :open="index==0" :title="item.stationName+' 总收入'+item.actualMoney.toFixed(2)+'元'" :key="index">
|
|
|
<!-- -->
|
|
|
<view class="detailsline">
|
|
|
|
|
@@ -155,7 +158,19 @@
|
|
|
</u-collapse-item>
|
|
|
</u-collapse>
|
|
|
|
|
|
-
|
|
|
+ <view class="detailsline" v-if="stationFlowList.length>1" >
|
|
|
+
|
|
|
+
|
|
|
+ <view class="details-row details-row-1">
|
|
|
+
|
|
|
+ <view class="span1">合计总收入</view>
|
|
|
+ <view class="span2">{{(allMoneySum).toFixed(2)}}<span>元</span></view>
|
|
|
+ </view>
|
|
|
+ <view class="details-row">
|
|
|
+ <view class="span1">合计总利润</view>
|
|
|
+ <view class="span2">{{(serviceMoneySum).toFixed(2)}}<span>元</span></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
</view>
|
|
@@ -263,7 +278,7 @@
|
|
|
indexData: {},
|
|
|
|
|
|
indexData2: null,
|
|
|
-
|
|
|
+ changeitemBl:false,
|
|
|
|
|
|
myChart: null,
|
|
|
myChartReady: false,
|
|
@@ -275,7 +290,9 @@
|
|
|
name: '笔数'
|
|
|
}
|
|
|
],
|
|
|
- stationFlowList: [],
|
|
|
+ stationFlowList: [],
|
|
|
+ serviceMoneySum:0,
|
|
|
+ allMoneySum:0,
|
|
|
stationList: [],
|
|
|
stationListSon: [],
|
|
|
tabbarList: [{
|
|
@@ -363,6 +380,13 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeitem(e){
|
|
|
+ if(this.stationFlowList.length>1&&e.index==this.stationFlowList.length-1&&e.show){
|
|
|
+ this.changeitemBl=true;
|
|
|
+ }else{
|
|
|
+ this.changeitemBl=false;
|
|
|
+ }
|
|
|
+ },
|
|
|
showTime(name){
|
|
|
if(!name){
|
|
|
return ''
|
|
@@ -476,7 +500,15 @@
|
|
|
API.homeFlowStatistics(this.form).then((res) => {
|
|
|
this.stationFlowList = res.data.stationFlowList;
|
|
|
this.nowTime=daysDistance(this.startTime, this.endTime)+1;
|
|
|
-
|
|
|
+ this.serviceMoneySum=0;
|
|
|
+ this.allMoneySum=0;
|
|
|
+ for(var i in this.stationFlowList ){
|
|
|
+ var item=this.stationFlowList[i];
|
|
|
+
|
|
|
+ this.allMoneySum+=item.actualMoney
|
|
|
+ this.serviceMoneySum+=item.serviceMoney
|
|
|
+ this.serviceMoneySum+=item.cardMoney
|
|
|
+ }
|
|
|
console.log(this.nowTime)
|
|
|
|
|
|
}).catch(error => {
|