This commit is contained in:
cclu 2024-03-15 18:21:49 +08:00
parent 7f142a79f8
commit b822bb18d2
6 changed files with 3386 additions and 1109 deletions

View File

@ -212,6 +212,20 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "servicePartList",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "detail",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}
]
},

View File

@ -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{

View File

@ -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>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff