wangfukang 4 weeks ago
parent
commit
bed053bcc3
  1. 77
      package2/partTimeJob/partTimeJobCenter.vue

77
package2/partTimeJob/partTimeJobCenter.vue

@ -19,8 +19,12 @@
<view class="title22"> <view class="title22">
<view style="display: flex;font-size: 32rpx;font-weight: 700;"> <view style="display: flex;font-size: 32rpx;font-weight: 700;">
{{worker.workerName}} {{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-if="isBaozhang"
<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;"> 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> </view>
<view class="title33" @tap="goDetail('xx')"> <view class="title33" @tap="goDetail('xx')">
@ -35,10 +39,10 @@
</view> </view>
<view class="order2"> <view class="order2">
<view class="order22"> <view class="order22">
<view class="order33" @tap="goDetail('db',4)"> <view class="order33" @tap="goDetail('db',4)">
<view class="order44"> <view class="order44">
{{daiquhuo}} {{daiquCount}}
</view> </view>
<view class="order55"> <view class="order55">
待取货 待取货
@ -46,7 +50,7 @@
</view> </view>
<view class="order33" @tap="goDetail('db',5)"> <view class="order33" @tap="goDetail('db',5)">
<view class="order44"> <view class="order44">
{{daisongda}} {{daisongCount}}
</view> </view>
<view class="order55"> <view class="order55">
待送达 待送达
@ -54,7 +58,7 @@
</view> </view>
<view class="order33" @tap="goDetail('tui',11)"> <view class="order33" @tap="goDetail('tui',11)">
<view class="order44"> <view class="order44">
{{shopData.refundCount == undefined?0:shopData.refundCount}} {{shouhouCount}}
</view> </view>
<view class="order55"> <view class="order55">
待退款/售后 待退款/售后
@ -62,7 +66,7 @@
</view> </view>
<view class="order33" @tap="goDetail('pj','cha')"> <view class="order33" @tap="goDetail('pj','cha')">
<view class="order44"> <view class="order44">
{{shopData.pendingBadReviewCount == undefined?0:shopData.pendingBadReviewCount}} {{chapingCount}}
</view> </view>
<view class="order55"> <view class="order55">
待回复差评 待回复差评
@ -84,7 +88,7 @@
<view class="data2"> <view class="data2">
<view class="data22"> <view class="data22">
<view class="data222"> <view class="data222">
{{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}} {{orderData.orderCount == undefined?0:orderData.orderCount}}
</view> </view>
<view class="data333"> <view class="data333">
完成订单 完成订单
@ -92,7 +96,7 @@
</view> </view>
<view class="data22"> <view class="data22">
<view class="data222"> <view class="data222">
{{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.amount}} {{orderData.amount == undefined?0:orderData.amount}}
</view> </view>
<view class="data333"> <view class="data333">
配送佣金 配送佣金
@ -105,7 +109,7 @@
必备工具 必备工具
</view> </view>
<view class="menu2"> <view class="menu2">
<view class="menu22" @tap="goDetail('xx')"> <view class="menu22" @tap="goDetail('xx')">
<view class="menu33"> <view class="menu33">
<img src="/static/images/dingdan/dd0.png" alt="" /> <img src="/static/images/dingdan/dd0.png" alt="" />
@ -158,12 +162,12 @@
return { return {
menuButtonInfo: {}, menuButtonInfo: {},
worker: {}, worker: {},
shopData: {}, orderData: {},
daixiaofei: 0, chapingCount: 0,
daichucan: 0, shouhouCount: 0,
daiquhuo: 0, daiquCount: 0,
daisongda: 0, daisongCount: 0,
isBaozhang:false isBaozhang: false
} }
}, },
onShow() { onShow() {
@ -176,28 +180,30 @@
}, },
methods: { methods: {
getData() { getData() {
this.tui.request("/mall/order/countByShop/" + uni.getStorageSync('shopId'), "GET", {}, false, true).then(( this.tui.request("/mall/delivery/countOrderByStatusIndex", "POST", {workerId:uni.getStorageSync('worker').workerId,regionId:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res) => {
res) => {
if (res.code == 200) { if (res.code == 200) {
this.shopData = res.result if(res.result != null){
for (let i = 0; i < this.shopData.orderStatusCount.length; i++) { for(let i = 0;i<res.result.length;i++){
if (this.shopData.orderStatusCount[i].counttype) { if(res.result[i].status == 1){
if (this.shopData.orderStatusCount[i].counttype == 'daisong') { this.daiquCount = Number(res.result[i].orderCount)
this.daisongda = this.shopData.orderStatusCount[i].count }else if(res.result[i].status == 2){
} else if (this.shopData.orderStatusCount[i].counttype == 'daiqu') { this.daisongCount = Number(res.result[i].orderCount)
this.daiquhuo = this.shopData.orderStatusCount[i].count }else if(res.result[i].status == 3){
} else if (this.shopData.orderStatusCount[i].counttype == 'daixiaofei') { this.shouhouCount = Number(res.result[i].orderCount)
this.daixiaofei = this.shopData.orderStatusCount[i].count }else if(res.result[i].status == 4){
} else if (this.shopData.orderStatusCount[i].counttype == 'daichucan') { this.chapingCount = Number(res.result[i].orderCount)
this.daichucan = this.shopData.orderStatusCount[i].count }else{
this.orderData = res.result[i].workerIndex
} }
} }
} }
that.$forceUpdate();
} else { } else {
this.tui.toast(res.message) that.tui.toast(res.message,1000);
return;
} }
uni.hideLoading() uni.hideLoading();
}).catch((res) => {}) }).catch((res) => {});
}, },
goDetail(type, index) { goDetail(type, index) {
let url = '' let url = ''
@ -227,10 +233,11 @@
break; break;
case 'pj': case 'pj':
let item = { let item = {
shopScore:uni.getStorageSync('worker').score, shopScore: uni.getStorageSync('worker').score,
id:uni.getStorageSync('worker').workerId 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; break;
default: default:
} }

Loading…
Cancel
Save