update
This commit is contained in:
parent
7f142a79f8
commit
b822bb18d2
14
pages.json
14
pages.json
@ -212,6 +212,20 @@
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "servicePartList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
<view class="meng" v-if="ydModal" @click.stop="handleShowYDModal"></view>
|
||||
|
||||
<view class="showMoreFixedBox" v-if="showMoreFixed" @click="handleShowMore">
|
||||
<view class="fixedBox">
|
||||
<view class="fixedBox" :style="{top: `${menu.bottom + 10}px` }">
|
||||
<view class="otherDetailBottom">
|
||||
<view class="bottomItem" style="margin-bottom: 16rpx">
|
||||
<view class="bottomItem" style="margin-bottom: 40rpx">
|
||||
<view class="bottomSmallItem">
|
||||
<view class="itemLeft">
|
||||
<view class="itemMonth">{{ `${selectMonth<10?'0'+selectMonth:selectMonth}月`}}</view>
|
||||
@ -30,7 +30,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="bottomItem" style="margin-bottom: 16rpx">
|
||||
<view class="bottomItem" style="margin-bottom: 40rpx">
|
||||
<view class="bottomSmallItem">
|
||||
<view class="itemLeft">
|
||||
<view class="itemMonth">{{ `${selectMonth<10?'0'+selectMonth:selectMonth}月`}}</view>
|
||||
@ -215,8 +215,9 @@
|
||||
<rateCharts :success="moneyRateList" :colorList="1<=selectMonth && selectMonth<=3?['#1677FE','#456497','#97A9C6']:4<=selectMonth && selectMonth<=6?['#1677FE','#456497','#97A9C6']:7<=selectMonth && selectMonth<=9?['#1677FE','#456497','#97A9C6']:['#1677FE','#456497','#97A9C6']" :name="`${selectMonth}rate`"/>
|
||||
</view>
|
||||
<view class="haveNoticeBox" v-if="ydModal" @click.stop="handleShowYDModal">
|
||||
<text class="label">驿达入账:<text class="value">{{ydRate}}%</text></text>
|
||||
<text class="label">商家入账:<text class="value">{{shopRate}}%</text></text>
|
||||
<text class="label">便利店:<text class="value">{{ydRate}}%</text></text>
|
||||
<text class="label">餐饮:<text class="value">{{shopRate}}%</text></text>
|
||||
<text class="label">商铺租赁:<text class="value">{{shopOutRate}}%</text></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="newRightBox">
|
||||
@ -1560,8 +1561,9 @@ export default {
|
||||
moneyRateList:[],
|
||||
currentPeriodData:{},// 本期数据
|
||||
ydModal: false,// 显示驿达百分比的具体值
|
||||
ydRate:'',// 驿达百分比
|
||||
shopRate:'',// 商家百分比
|
||||
ydRate:'',// 便利店百分比
|
||||
shopRate:'',// 餐饮客房百分比
|
||||
shopOutRate:'',// 商铺租赁
|
||||
showRateChart:true,// 显示百分比表格
|
||||
revenueMoney:'',// 自营收入
|
||||
externalMoney:'',// 外租收入
|
||||
@ -2573,15 +2575,7 @@ export default {
|
||||
console.log('result2',result)
|
||||
let progressAll = 0
|
||||
this.currentPeriodData = result.MonthRevenueModel.CurAccountRoyalty
|
||||
let sum = this.currentPeriodData.Royalty_Theory+this.currentPeriodData.SubRoyalty_Theory
|
||||
console.log('currentPeriodData',this.currentPeriodData)
|
||||
if(sum===0){
|
||||
this.ydRate = '-'
|
||||
this.shopRate = '-'
|
||||
}else{
|
||||
this.ydRate = ((this.currentPeriodData.Royalty_Theory / sum)*100).toFixed(2)
|
||||
this.shopRate = ((this.currentPeriodData.SubRoyalty_Theory / sum)*100).toFixed(2)
|
||||
}
|
||||
|
||||
console.log('result.BusinessTypeList',result.BusinessTypeList)
|
||||
let shareList = [{},{},{}]
|
||||
result.BusinessTypeList.forEach(item=>{
|
||||
@ -2621,6 +2615,23 @@ export default {
|
||||
})
|
||||
console.log('shareList',shareList)
|
||||
this.moneyRateList = [Number(shareList[0].value),Number(shareList[1].value),Number(shareList[2].value)]
|
||||
|
||||
let sum = 0
|
||||
shareList.forEach(item=>{
|
||||
console.log('Number(item.value)',Number(item.value))
|
||||
sum += Number(item.value)
|
||||
})
|
||||
console.log('sum',sum)
|
||||
if(sum===0){
|
||||
this.ydRate = '-'
|
||||
this.shopRate = '-'
|
||||
this.shopOutRate = '-'
|
||||
}else{
|
||||
this.ydRate = ((Number(shareList[0].value) / sum)*100).toFixed(2)
|
||||
this.shopRate = ((Number(shareList[1].value) / sum)*100).toFixed(2)
|
||||
this.shopOutRate = ((1-( (Number(shareList[0].value) / sum) + (Number(shareList[1].value) / sum)) )*100).toFixed(2)
|
||||
}
|
||||
|
||||
this.profitSharingList = shareList
|
||||
this.typeList = result.BusinessTypeList
|
||||
this.revenueMoney = result.BusinessTypeList[0].showValue
|
||||
@ -3007,11 +3018,11 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
.fixedBox{
|
||||
width: calc(100vw - 64rpx);
|
||||
box-sizing: border-box;
|
||||
padding: 32rpx 38rpx;
|
||||
padding: 38rpx 32rpx;
|
||||
border-radius: 16rpx;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
top: 10vh; left: 32rpx;
|
||||
left: 32rpx;
|
||||
.otherDetailBottom{
|
||||
.bottomItem{
|
||||
width: 100%;
|
||||
@ -3020,6 +3031,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8rpx;
|
||||
.itemLeft{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -3073,6 +3085,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
margin-bottom: 8rpx;
|
||||
.itemValue{
|
||||
font-family: DINAlternate, DINAlternate;
|
||||
font-weight: bold;
|
||||
@ -3090,7 +3103,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
line-height: 40rpx;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
margin-left: 4rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3670,7 +3683,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
width: 100%;
|
||||
background: #F9FAFC;
|
||||
box-sizing: border-box;
|
||||
padding: 24rpx 28rpx;
|
||||
padding: 28rpx 24rpx;
|
||||
margin-top: 48rpx;
|
||||
.accountItem{
|
||||
width: 100%;
|
||||
@ -3741,10 +3754,10 @@ $iphoneHeight: env(safe-area-inset-bottom);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 14rpx;
|
||||
margin-top: 16rpx;
|
||||
.showMorenDown{
|
||||
width: 40rpx;
|
||||
height: 50rpx;
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
}
|
||||
.goBusiness{
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
<text class="itemLabel">增长</text>
|
||||
<text class="itemValue">
|
||||
{{type===1?item.RevenueINC.increaseData?$util.getMoney(item.RevenueINC.increaseData / 10000):'0.00':
|
||||
type===2?item.RevenueINC.AccountINC?$util.getMoney(item.AccountINC.increaseData / 10000):'0.00':
|
||||
type===2?item.AccountINC.increaseData?$util.getMoney(item.AccountINC.increaseData / 10000):'0.00':
|
||||
type===3?item.BayonetINC.increaseData?$util.getMoney(item.BayonetINC.increaseData / 10000):'0.00':'-'}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
1077
pages/revenueStatistics/detail.vue
Normal file
1077
pages/revenueStatistics/detail.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1112
pages/revenueStatistics/servicePartList.vue
Normal file
1112
pages/revenueStatistics/servicePartList.vue
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user