| | |
| | | <view class="flex tj-container" v-if="selftype==='partner'">. |
| | | <view class="tj-each"> |
| | | <view class="num total"> |
| | | ¥0.00 |
| | | ¥{{tj.income||'0.00'}} |
| | | </view> |
| | | </view> |
| | | <view class="tj-each" style="flex: 1;"> |
| | |
| | | <view class="flex tj-container"> |
| | | <view class="tj-each"> |
| | | <view class="num"> |
| | | 0扎 |
| | | {{dto.orderCountToday||0}}扎 |
| | | </view> |
| | | <view class="name"> |
| | | 今日订单数 |
| | |
| | | </view> |
| | | <view class="tj-each"> |
| | | <view class="num"> |
| | | 0扎 |
| | | {{dto.orderCountYesterday||0}}扎 |
| | | </view> |
| | | <view class="name"> |
| | | 昨日订单数 |
| | |
| | | </view> |
| | | <view class="tj-each"> |
| | | <view class="num"> |
| | | 0扎 |
| | | {{dto.orderCountMonth||0}}扎 |
| | | </view> |
| | | <view class="name"> |
| | | 本月订单数 |
| | |
| | | <view class="item-container flex m-t-12" style="padding: 34rpx 44rpx;"> |
| | | <view class="rate-view flex1" style="max-width: 140rpx;"> |
| | | <view class="title">售后率</view> |
| | | <view class="title" style="color: red;">0.00%</view> |
| | | <view class="title" style="color: red;">{{tj.salesRate||0}}%</view> |
| | | </view> |
| | | <view class="tj-panel pink flex1"> |
| | | <view class="tj-panel pink flex1" @click="goto('/pages/order/order-delivery?status=ARRIVED',true)"> |
| | | <view class="name">今日待配送</view> |
| | | <view class="title">0扎</view> |
| | | <view class="title">{{tj.deliverCount||0}}扎</view> |
| | | </view> |
| | | <view class="tj-panel green flex1"> |
| | | <view class="tj-panel green flex1" @click="goto('/pages/order/order-delivery?status=',true)"> |
| | | <view class="name green">今日配送汇总</view> |
| | | <view class="title">0扎</view> |
| | | <view class="title">{{tj.deliverTotal||0}}扎</view> |
| | | </view> |
| | | </view> |
| | | <view class="m-t-12" @click="getNoticeMore"> |
| | |
| | | |
| | | }, |
| | | scrollable: false, |
| | | cacheUserId:'', |
| | | tj:{} |
| | | |
| | | }; |
| | | }, |
| | |
| | | onLoad(options) { |
| | | const url = options.q ? decodeURIComponent(options.q) : ''; |
| | | const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | | }, |
| | | onShow(){ |
| | | this.getTj() |
| | | }, |
| | | created() { |
| | | //公告 |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | getTj() { |
| | | // /api/supplier/delivery |
| | | |
| | | if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) { |
| | | this.cacheUserId = this.currentInfo.id |
| | | let that = this |
| | | setTimeout(() => { |
| | | //其他统计 |
| | | // #ifdef PUB_SUPPLIER |
| | | this.$http.request('get', '/api/supplier/delivery/statistics', {}).then(res => { |
| | | if (res.code === 0) { |
| | | that.tj = res.data || {} |
| | | } |
| | | }) |
| | | // #endif |
| | | // #ifdef PUB_PARTNER |
| | | this.$http.request('get', '/api/partner/order/statistics', {}).then(res => { |
| | | if (res.code === 0) { |
| | | that.tj = res.data || {} |
| | | } |
| | | }) |
| | | // #endif |
| | | |
| | | }, 200) |
| | | } |
| | | |
| | | }, |
| | | async toFlowManage() { |
| | | |
| | | |