增加安徽配送数据展示

This commit is contained in:
zzy 2023-03-20 12:10:45 +08:00
parent 5128d1ad58
commit 36e3c5455e
3 changed files with 84 additions and 33 deletions

View File

@ -94,7 +94,7 @@
<text class="type">{{childItem.data}}/{{childItem.flow}}</text> <text class="type">{{childItem.data}}/{{childItem.flow}}</text>
<text class="carType">{{childItem.LargeVehicle_Count}}/{{childItem.MediumVehicle_Count}}/{{childItem.MinVehicle_Count}}</text> <text class="carType">{{childItem.LargeVehicle_Count}}/{{childItem.MediumVehicle_Count}}/{{childItem.MinVehicle_Count}}</text>
</li> </li>
</ul> </ul>
<!-- <div class="progress"> <!-- <div class="progress">
<div class="bgO" :style="{'width':item.bili+'%'}"></div> <div class="bgO" :style="{'width':item.bili+'%'}"></div>
</div> --> </div> -->
@ -481,6 +481,7 @@
} }
}); });
this.headMsg = totalData this.headMsg = totalData
console.log(this.headMsg)
// //
const [progressList, pieList] = this.getProgressData(busniessTypePie, totalData.cashPay) const [progressList, pieList] = this.getProgressData(busniessTypePie, totalData.cashPay)
this.modelProgress = progressList this.modelProgress = progressList
@ -1070,20 +1071,25 @@
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.bayonet-cell-area li{ .bayonet-cell-area li{
width: 100%; width: 100%;
} }
.bayonet-cell-area li .server,.bayonet-cell-area li .carType{ .bayonet-cell-area li .server{
width: 30%; width: 30%;
display: inline-block; display: inline-block;
text-align: center; text-align: left;
} padding-left: 15rpx;
.bayonet-cell-area li .type{ }
width: 40%; .bayonet-cell-area li .type{
display: inline-block; width: 35%;
text-align: center; display: inline-block;
} text-align: center;
}
.bayonet-cell-area li .carType{
width: 30%;
display: inline-block;
text-align: right;
}
.bayonet-cell-area li:nth-child(2n+1):before { .bayonet-cell-area li:nth-child(2n+1):before {
content: ''; content: '';
@ -1347,19 +1353,25 @@
.operation-cl-unit1 { .operation-cl-unit1 {
width: 100%; width: 100%;
font-size: 26rpx; font-size: 26rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.operation-cl-unit1 .type{ .operation-cl-unit1 .server{
width: 40%; width: 30%;
display: inline-block; display: inline-block;
text-align: center; text-align: left;
} padding-left: 30rpx;
.operation-cl-unit1 .server,.operation-cl-unit1 .carType{ }
width: 30%; .operation-cl-unit1 .type{
display: inline-block; width: 40%;
text-align: center; display: inline-block;
} text-align: left;
}
.operation-cl-unit1 .carType{
width: 30%;
display: inline-block;
text-align: center;
}
.operation-c-list .progress { .operation-c-list .progress {
width: 288rpx; width: 288rpx;

View File

@ -52,7 +52,7 @@
<div class="uni-flex jc-between" v-if="provinceCode == 340000 && groupType == 1000 && headMsg.shareShopCount > 0"> <div class="uni-flex jc-between" v-if="provinceCode == 340000 && groupType == 1000 && headMsg.shareShopCount > 0">
<div class="revenue-tag"> <div class="revenue-tag">
<div style="font-size: 24rpx; margin-top: 15rpx;"> <div style="font-size: 24rpx; margin-top: 15rpx;">
分润门店 分润门店:
<span class="amount" style="font-size: 28rpx;padding-left: 0.5em;"> <span class="amount" style="font-size: 28rpx;padding-left: 0.5em;">
{{headMsg.shareShopCount}} {{headMsg.shareShopCount}}
</span> </span>
@ -60,7 +60,7 @@
</div> </div>
<div class="revenue-tag"> <div class="revenue-tag">
<div style="font-size: 24rpx; margin-top: 15rpx;"> <div style="font-size: 24rpx; margin-top: 15rpx;">
驿达分润 驿达分润:
<span class="amount" style="font-size: 28rpx;padding-left: 0.5em;"> <span class="amount" style="font-size: 28rpx;padding-left: 0.5em;">
{{ $util.fmoney(headMsg.royaltyPrice) }} {{ $util.fmoney(headMsg.royaltyPrice) }}
</span> </span>
@ -71,6 +71,28 @@
</div> --> </div> -->
</div> </div>
</div> </div>
<div class="uni-flex jc-between" v-if="provinceCode == 340000 && groupType == 1000 && headMsg.deliverBillCount > 0">
<div class="revenue-tag">
<div style="font-size: 24rpx; margin-top: 15rpx;">
万佳配送订单:
<span class="amount" style="font-size: 28rpx;padding-left: 0.5em;">
{{headMsg.deliverBillCount}}
</span>
</div>
</div>
<div class="revenue-tag">
<div style="font-size: 24rpx; margin-top: 15rpx;">
采购金额:
<span class="amount" style="font-size: 28rpx;padding-left: 0.5em;">
{{ $util.fmoney(headMsg.deliverPrice) }}
</span>
</div>
<!-- <div style="font-size: 24rpx;">
累计分润
<span class="amount" style="font-size: 28rpx;padding-left: 0.5em;">272,109.93</span>
</div> -->
</div>
</div>
<div class="view-bottom" @click="toggleCard"> <div class="view-bottom" @click="toggleCard">
<text class="uni-icon uni-icon-arrowup" :class="{'up':isup}"></text> <text class="uni-icon uni-icon-arrowup" :class="{'up':isup}"></text>
</div> </div>

View File

@ -20,10 +20,17 @@ const methods = {
Statistics_Month: obj.month , Statistics_Month: obj.month ,
Province_Code: obj.ProvinceCode , Province_Code: obj.ProvinceCode ,
pushProvinceCode: obj.ProvinceCode , pushProvinceCode: obj.ProvinceCode ,
Serverpart_ID: obj.ServerpartIds ? obj.ServerpartIds : '', Serverpart_ID: obj.GroupType != 1020 ? obj.ServerpartIds : '',
SPRegionType_ID: obj.GroupType == 1020 ? obj.ServerpartIds : '', SPRegionType_ID: obj.GroupType == 1020 ? obj.ServerpartIds : '',
// Revenue_Include: 1 // Revenue_Include: 1
} }
const requestParamasBudget = {
Statistics_Date: obj.time ,
Statistics_Month: obj.month ,
Province_Code: obj.ProvinceCode ,
pushProvinceCode: obj.ProvinceCode ,
Serverpart_ID: obj.ServerpartIds ? obj.ServerpartIds : ''
}
this.provinceCode = obj.ProvinceCode this.provinceCode = obj.ProvinceCode
// 营收数据 // 营收数据
const data = await request.$webGet('CommercialApi/Revenue/GetRevenuePushList', requestParamas) const data = await request.$webGet('CommercialApi/Revenue/GetRevenuePushList', requestParamas)
@ -38,13 +45,17 @@ const methods = {
if (tradeData.Result_Code != 100) return if (tradeData.Result_Code != 100) return
// 计划营收金额 // 计划营收金额
const budgetAmount = await request.$webGet('CommercialApi/Revenue/GetBudgetExpenseList', requestParamas) const budgetAmount = await request.$webGet('CommercialApi/Revenue/GetBudgetExpenseList', requestParamasBudget)
if (budgetAmount.Result_Code != 100) return if (budgetAmount.Result_Code != 100) return
// 移动支付分账数据 // 移动支付分账数据
const mobileShare = await request.$webGet('CommercialApi/Revenue/GetMobileShare', requestParamas) const mobileShare = await request.$webGet('CommercialApi/Revenue/GetMobileShare', requestParamas)
if (mobileShare.Result_Code != 100) return if (mobileShare.Result_Code != 100) return
// 万佳商城配送数据
const mallDeliver = await request.$webGet('CommercialApi/Revenue/GetMallDeliver', requestParamas)
if (mallDeliver.Result_Code != 100) return
// 片区车流量 // 片区车流量
const bayonetCount = await request.$webGet('CommercialApi/Revenue/GetSPBayonetList', requestParamas) const bayonetCount = await request.$webGet('CommercialApi/Revenue/GetSPBayonetList', requestParamas)
if (bayonetCount.Result_Code != 100) return if (bayonetCount.Result_Code != 100) return
@ -55,7 +66,7 @@ const methods = {
} }
return _this.getReginList(data.Result_Data.List, busniessCounts.Result_Data.List, return _this.getReginList(data.Result_Data.List, busniessCounts.Result_Data.List,
tradeData.Result_Data.List, budgetAmount.Result_Data.List, tradeData.Result_Data.List, budgetAmount.Result_Data.List,
bayonetCount.Result_Data.List, mobileShare.Result_Data) bayonetCount.Result_Data.List, mobileShare.Result_Data, mallDeliver.Result_Data)
// [reginList, totalData, busniessTypePie, busniessTradePie] // [reginList, totalData, busniessTypePie, busniessTradePie]
}, },
@ -235,7 +246,7 @@ const methods = {
} }
return [ totalShow, busniessTypePie, busniessTradePie,busniessTradeFathPie ] return [ totalShow, busniessTypePie, busniessTradePie,busniessTradeFathPie ]
}, },
getReginList(data, shopCountList,tradeList,budgetAmount,bayonetCount, mobileShare) { getReginList(data, shopCountList,tradeList,budgetAmount,bayonetCount, mobileShare, mallDeliver) {
let _this = this let _this = this
let totalShow = {} // 总营收数据统计 let totalShow = {} // 总营收数据统计
@ -320,6 +331,12 @@ const methods = {
totalShow.subRoyaltyPrice = mobileShare.SubRoyalty_Price totalShow.subRoyaltyPrice = mobileShare.SubRoyalty_Price
totalShow.ticketFee = mobileShare.Ticket_Fee totalShow.ticketFee = mobileShare.Ticket_Fee
} }
// 获取移动支付分账数据
if (mallDeliver) {
totalShow.deliverBillCount = mallDeliver.DeliverBill_Count
totalShow.deliverPrice = mallDeliver.Deliver_Price
totalShow.deliverRate = mallDeliver.Deliver_Rate
}
// 片区车流量数据 // 片区车流量数据
bayonetCount.map(async (n, index) => { bayonetCount.map(async (n, index) => {
bayonetPie = _this.getBayonetPie('Serverpart_Name', n, bayonetPie) bayonetPie = _this.getBayonetPie('Serverpart_Name', n, bayonetPie)