|
|
|
@ -19,8 +19,12 @@ |
|
|
|
<view class="title22"> |
|
|
|
<view style="display: flex;font-size: 32rpx;font-weight: 700;"> |
|
|
|
{{worker.workerName}} |
|
|
|
<img v-if="isBaozhang" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/d27fa14c6bb7426482ed7821919d3aa7.png" alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
<img v-else src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/176715c0f8ea41e7a9be8fa1c3edd670.png" alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
<img v-if="isBaozhang" |
|
|
|
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/d27fa14c6bb7426482ed7821919d3aa7.png" |
|
|
|
alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
<img v-else |
|
|
|
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/176715c0f8ea41e7a9be8fa1c3edd670.png" |
|
|
|
alt="" style="width: 140rpx;height: 32rpx;background-size: 100%;margin: 20rpx;"> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="title33" @tap="goDetail('xx')"> |
|
|
|
@ -38,7 +42,7 @@ |
|
|
|
|
|
|
|
<view class="order33" @tap="goDetail('db',4)"> |
|
|
|
<view class="order44"> |
|
|
|
{{daiquhuo}} |
|
|
|
{{daiquCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待取货 |
|
|
|
@ -46,7 +50,7 @@ |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('db',5)"> |
|
|
|
<view class="order44"> |
|
|
|
{{daisongda}} |
|
|
|
{{daisongCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待送达 |
|
|
|
@ -54,7 +58,7 @@ |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('tui',11)"> |
|
|
|
<view class="order44"> |
|
|
|
{{shopData.refundCount == undefined?0:shopData.refundCount}} |
|
|
|
{{shouhouCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待退款/售后 |
|
|
|
@ -62,7 +66,7 @@ |
|
|
|
</view> |
|
|
|
<view class="order33" @tap="goDetail('pj','cha')"> |
|
|
|
<view class="order44"> |
|
|
|
{{shopData.pendingBadReviewCount == undefined?0:shopData.pendingBadReviewCount}} |
|
|
|
{{chapingCount}} |
|
|
|
</view> |
|
|
|
<view class="order55"> |
|
|
|
待回复差评 |
|
|
|
@ -84,7 +88,7 @@ |
|
|
|
<view class="data2"> |
|
|
|
<view class="data22"> |
|
|
|
<view class="data222"> |
|
|
|
{{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}} |
|
|
|
{{orderData.orderCount == undefined?0:orderData.orderCount}} |
|
|
|
</view> |
|
|
|
<view class="data333"> |
|
|
|
完成订单 |
|
|
|
@ -92,7 +96,7 @@ |
|
|
|
</view> |
|
|
|
<view class="data22"> |
|
|
|
<view class="data222"> |
|
|
|
{{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.amount}} |
|
|
|
{{orderData.amount == undefined?0:orderData.amount}} |
|
|
|
</view> |
|
|
|
<view class="data333"> |
|
|
|
配送佣金 |
|
|
|
@ -158,11 +162,11 @@ |
|
|
|
return { |
|
|
|
menuButtonInfo: {}, |
|
|
|
worker: {}, |
|
|
|
shopData: {}, |
|
|
|
daixiaofei: 0, |
|
|
|
daichucan: 0, |
|
|
|
daiquhuo: 0, |
|
|
|
daisongda: 0, |
|
|
|
orderData: {}, |
|
|
|
chapingCount: 0, |
|
|
|
shouhouCount: 0, |
|
|
|
daiquCount: 0, |
|
|
|
daisongCount: 0, |
|
|
|
isBaozhang: false |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -176,28 +180,30 @@ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData() { |
|
|
|
this.tui.request("/mall/order/countByShop/" + uni.getStorageSync('shopId'), "GET", {}, false, true).then(( |
|
|
|
res) => { |
|
|
|
this.tui.request("/mall/delivery/countOrderByStatusIndex", "POST", {workerId:uni.getStorageSync('worker').workerId,regionId:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.shopData = res.result |
|
|
|
for (let i = 0; i < this.shopData.orderStatusCount.length; i++) { |
|
|
|
if (this.shopData.orderStatusCount[i].counttype) { |
|
|
|
if (this.shopData.orderStatusCount[i].counttype == 'daisong') { |
|
|
|
this.daisongda = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daiqu') { |
|
|
|
this.daiquhuo = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daixiaofei') { |
|
|
|
this.daixiaofei = this.shopData.orderStatusCount[i].count |
|
|
|
} else if (this.shopData.orderStatusCount[i].counttype == 'daichucan') { |
|
|
|
this.daichucan = this.shopData.orderStatusCount[i].count |
|
|
|
if(res.result != null){ |
|
|
|
for(let i = 0;i<res.result.length;i++){ |
|
|
|
if(res.result[i].status == 1){ |
|
|
|
this.daiquCount = Number(res.result[i].orderCount) |
|
|
|
}else if(res.result[i].status == 2){ |
|
|
|
this.daisongCount = Number(res.result[i].orderCount) |
|
|
|
}else if(res.result[i].status == 3){ |
|
|
|
this.shouhouCount = Number(res.result[i].orderCount) |
|
|
|
}else if(res.result[i].status == 4){ |
|
|
|
this.chapingCount = Number(res.result[i].orderCount) |
|
|
|
}else{ |
|
|
|
this.orderData = res.result[i].workerIndex |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
that.$forceUpdate(); |
|
|
|
} else { |
|
|
|
this.tui.toast(res.message) |
|
|
|
that.tui.toast(res.message,1000); |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.hideLoading() |
|
|
|
}).catch((res) => {}) |
|
|
|
uni.hideLoading(); |
|
|
|
}).catch((res) => {}); |
|
|
|
}, |
|
|
|
goDetail(type, index) { |
|
|
|
let url = '' |
|
|
|
@ -230,7 +236,8 @@ |
|
|
|
shopScore: uni.getStorageSync('worker').score, |
|
|
|
id: uni.getStorageSync('worker').workerId |
|
|
|
} |
|
|
|
url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + (index =='cha'?1:0) |
|
|
|
url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + ( |
|
|
|
index == 'cha' ? 1 : 0) |
|
|
|
break; |
|
|
|
default: |
|
|
|
} |
|
|
|
|