Browse Source

新增物流总件数和店铺开单bug

master
wangfukang 2 years ago
parent
commit
7997b5ed98
  1. 34
      package2/other/logisticsDataStatistics.vue
  2. 45
      package2/other/newLogisticsIndex.vue

34
package2/other/logisticsDataStatistics.vue

@ -3,20 +3,26 @@
<uni-datetime-picker style="margin-bottom:10px;" clear-icon='false' v-model="range" type="daterange" @change="searchList" />
<view class="IndexContent">
<view class="contentPadding">
<u-grid :col="3">
<u-grid-item>
<u-count-to :start-val="0" :end-val="orderStatistics.totalFreight" :decimals="2"></u-count-to>
<text class="grid-text">客户运费</text>
</u-grid-item>
<u-grid-item>
<u-count-to :start-val="0" :end-val="orderStatistics.totalOrder"></u-count-to>
<view class="grid-text">总单数</view>
</u-grid-item>
<u-grid-item>
<u-count-to :start-val="0" :end-val="orderStatistics.totalCustomer"></u-count-to>
<view class="grid-text">客户数</view>
</u-grid-item>
</u-grid>
<view style="display: flex;text-align: center;font-size: 30rpx;">
<view class="title-four" style="background-image: linear-gradient(#84C1FF, #C4E1FF)">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalFreight!=null?orderStatistics.totalFreight:0}}</view>
<view>客户运费</view>
</view>
<view class="title-four" style="background-image: linear-gradient(#84C1FF, #C4E1FF)">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalOrder!=null?orderStatistics.totalOrder:0}}</view>
<view>总单数</view>
</view>
<view class="title-four" style="background-image: linear-gradient(#84C1FF, #C4E1FF)">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalWeight!=null?orderStatistics.totalWeight:0}}</view>
<view>客户数</view>
</view>
<view class="title-four" style="background-image: linear-gradient(#84C1FF, #C4E1FF)">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalCount!=null?orderStatistics.totalCount:0}}</view>
<view>总件数</view>
</view>
</view>
<view style="display: flex;text-align: center;font-size: 30rpx;">
<view class="title-four">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalTransportationFee}}</view>

45
package2/other/newLogisticsIndex.vue

@ -13,22 +13,24 @@
</view>
</i>
</view>
<u-grid :col="4">
<u-grid-item @tap='shijiPrice = true'>
<u-count-to :start-val="0" :end-val="orderStatistics.totalFreight" :decimals="2"></u-count-to>
<text class="grid-text">客户运费</text>
<!-- <uni-icons type="help" size="21"
style="position: absolute;bottom: 35rpx;right: 10rpx;"></uni-icons> -->
</u-grid-item>
<u-grid-item>
<u-count-to :start-val="0" :end-val="orderStatistics.totalOrder"></u-count-to>
<text class="grid-text">总单数</text>
</u-grid-item>
<u-grid-item>
<u-count-to :start-val="0" :end-val="orderStatistics.totalWeight"></u-count-to>
<view class="grid-text">总重量</view>
</u-grid-item>
</u-grid>
<view style="display: flex;text-align: center;font-size: 30rpx;">
<view class="title-four" @tap='shijiPrice = true'>
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalFreight!=null?orderStatistics.totalFreight:0}}</view>
<view>客户运费</view>
</view>
<view class="title-four">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalOrder!=null?orderStatistics.totalOrder:0}}</view>
<view>总单数</view>
</view>
<view class="title-four">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalWeight!=null?orderStatistics.totalWeight:0}}</view>
<view>总重量</view>
</view>
<view class="title-four">
<view style="line-height:80rpx;font-size:34rpx;">{{orderStatistics.totalCount!=null?orderStatistics.totalCount:0}}</view>
<view>总件数</view>
</view>
</view>
</view>
<view class="contentPadding" style="margin-top: 20rpx;">
<view>
@ -139,6 +141,7 @@
shopName:'',
pageNum:1,
searchStr:'',
allCount:0,
shijiPrice: false,
settingShow1: false,
orderList:[],
@ -373,6 +376,7 @@
this.orderList = [...this.orderList, ...res.data.result.records]
}
this.pages = res.data.result.pages
this.allCount = 0
}
},
fail: (res) => {
@ -625,4 +629,13 @@
color: #fff;
border-radius: 10px;
}
.title-four{
width: 23% !important;
height: 160rpx;
background-image: linear-gradient(#84C1FF, #C4E1FF) !important;
margin-left: 2%;
border-radius: 30rpx;
margin-top: 20rpx !important;
color: #fff !important;
}
</style>
Loading…
Cancel
Save