|
|
@@ -70,11 +70,11 @@
|
|
70
|
70
|
class="ordermanagement-yisdf"
|
|
71
|
71
|
v-for="(item, index) in dingdansss"
|
|
72
|
72
|
:key="index + 'pp' + '__index__'"
|
|
73
|
|
- @click="afterSalesClick(item.status, index+1)"
|
|
|
73
|
+ @click="afterSalesClick(item.status, index + 1)"
|
|
74
|
74
|
>
|
|
75
|
75
|
<view class="ordermanagement-img">
|
|
76
|
76
|
<image :src="item.img" mode="widthFix"></image>
|
|
77
|
|
- <view class="ordermanagement-img-biao" v-if="item.num > 0">
|
|
|
77
|
+ <view class="ordermanagement-img-biao" v-if="item.num > 0">
|
|
78
|
78
|
{{ item.num }}
|
|
79
|
79
|
</view>
|
|
80
|
80
|
</view>
|
|
|
@@ -139,34 +139,40 @@ export default {
|
|
139
|
139
|
{
|
|
140
|
140
|
img: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812154932244.png",
|
|
141
|
141
|
name: "审核中",
|
|
142
|
|
- status:0,
|
|
143
|
|
- num:0,
|
|
|
142
|
+ status: 0,
|
|
|
143
|
+ num: 0,
|
|
144
|
144
|
},
|
|
145
|
145
|
{
|
|
146
|
146
|
img: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812154949118.png",
|
|
147
|
147
|
name: "处理中",
|
|
148
|
|
- num:0,
|
|
149
|
|
- status:2,
|
|
|
148
|
+ num: 0,
|
|
|
149
|
+ status: 2,
|
|
150
|
150
|
},
|
|
151
|
151
|
{
|
|
152
|
152
|
img: "https://cdn.bjtdba.com/vod/image/2022-08-12/20220812155008586.png",
|
|
153
|
153
|
name: "已完成",
|
|
154
|
|
- num:0,
|
|
155
|
|
- status:3,
|
|
|
154
|
+ num: 0,
|
|
|
155
|
+ status: 3,
|
|
156
|
156
|
},
|
|
157
|
157
|
],
|
|
158
|
158
|
};
|
|
159
|
159
|
},
|
|
160
|
160
|
onLoad() {},
|
|
161
|
161
|
async onShow() {
|
|
162
|
|
- uni.showLoading({
|
|
163
|
|
- title: "加载中",
|
|
164
|
|
- });
|
|
|
162
|
+
|
|
165
|
163
|
let selectmerchant = uni.getStorageSync("selectmerchant");
|
|
166
|
164
|
this.mer_id = selectmerchant.merId;
|
|
167
|
|
- await this.getOrderListData();
|
|
168
|
|
- await this.getOrderStatusNumberData();
|
|
169
|
|
- await this.getAfterSaleListData()
|
|
|
165
|
+ uni.showLoading({
|
|
|
166
|
+ title: "加载中",
|
|
|
167
|
+ });
|
|
|
168
|
+ try {
|
|
|
169
|
+
|
|
|
170
|
+ await this.getOrderListData();
|
|
|
171
|
+ await this.getOrderStatusNumberData();
|
|
|
172
|
+ await this.getAfterSaleListData();
|
|
|
173
|
+ } finally {
|
|
|
174
|
+ uni.hideLoading();
|
|
|
175
|
+ }
|
|
170
|
176
|
},
|
|
171
|
177
|
methods: {
|
|
172
|
178
|
//售后管理
|
|
|
@@ -211,9 +217,10 @@ export default {
|
|
211
|
217
|
this.orderSta[obj[item.name]] = item.count || undefined;
|
|
212
|
218
|
});
|
|
213
|
219
|
}
|
|
214
|
|
- } catch (error) {}finally{
|
|
215
|
|
- uni.hideLoading()
|
|
216
|
|
- }
|
|
|
220
|
+ } catch (error) {
|
|
|
221
|
+ } finally {
|
|
|
222
|
+ // uni.hideLoading();
|
|
|
223
|
+ }
|
|
217
|
224
|
},
|
|
218
|
225
|
|
|
219
|
226
|
// 正向订单状态数
|
|
|
@@ -262,11 +269,11 @@ export default {
|
|
262
|
269
|
status: 4,
|
|
263
|
270
|
},
|
|
264
|
271
|
];
|
|
265
|
|
- uni.hideLoading();
|
|
|
272
|
+ // uni.hideLoading();
|
|
266
|
273
|
}
|
|
267
|
274
|
},
|
|
268
|
275
|
(fail) => {
|
|
269
|
|
- uni.hideLoading()
|
|
|
276
|
+ // uni.hideLoading();
|
|
270
|
277
|
console.log(fail);
|
|
271
|
278
|
}
|
|
272
|
279
|
);
|
|
|
@@ -283,23 +290,23 @@ export default {
|
|
283
|
290
|
order_sn: "",
|
|
284
|
291
|
refund_type: "",
|
|
285
|
292
|
});
|
|
286
|
|
-
|
|
287
|
|
- if(res.data.status == 200){
|
|
288
|
|
- const data = res.data.data.stat
|
|
289
|
|
- var num = data.refuse;
|
|
290
|
|
- var num1 = data.end;
|
|
291
|
|
- var num2 =data.agree;
|
|
292
|
293
|
|
|
|
294
|
+ if (res.data.status == 200) {
|
|
|
295
|
+ const data = res.data.data.stat;
|
|
|
296
|
+ var num = data.refuse;
|
|
|
297
|
+ var num1 = data.end;
|
|
|
298
|
+ var num2 = data.agree;
|
|
293
|
299
|
|
|
294
|
|
- let finishOrder = num + num1 + num2;
|
|
295
|
|
- this.dingdansss[0].num =data.audit || 0
|
|
296
|
|
- this.dingdansss[1].num = data.backgood || 0
|
|
297
|
|
- this.dingdansss[2].num = finishOrder || 0
|
|
|
300
|
+ let finishOrder = num + num1 + num2;
|
|
|
301
|
+ this.dingdansss[0].num = data.audit || 0;
|
|
|
302
|
+ this.dingdansss[1].num = data.backgood || 0;
|
|
|
303
|
+ this.dingdansss[2].num = finishOrder || 0;
|
|
298
|
304
|
}
|
|
299
|
|
- uni.hideLoading();
|
|
300
|
|
- } catch (error) {}finally{
|
|
301
|
|
- uni.hideLoading()
|
|
302
|
|
- }
|
|
|
305
|
+ // uni.hideLoading();
|
|
|
306
|
+ } catch (error) {
|
|
|
307
|
+ } finally {
|
|
|
308
|
+ // uni.hideLoading();
|
|
|
309
|
+ }
|
|
303
|
310
|
},
|
|
304
|
311
|
jiru(e, i) {
|
|
305
|
312
|
let authorization = uni.getStorageSync("authorization");
|
|
|
@@ -483,37 +490,35 @@ page {
|
|
483
|
490
|
font-size: 24rpx;
|
|
484
|
491
|
font-weight: 400;
|
|
485
|
492
|
color: #5f6060;
|
|
486
|
|
-
|
|
487
|
|
-
|
|
488
|
493
|
}
|
|
489
|
494
|
}
|
|
490
|
495
|
}
|
|
491
|
496
|
.ordermanagement-img {
|
|
492
|
|
- width: 48rpx;
|
|
493
|
|
- height: 48rpx;
|
|
494
|
|
- position: relative;
|
|
|
497
|
+ width: 48rpx;
|
|
|
498
|
+ height: 48rpx;
|
|
|
499
|
+ position: relative;
|
|
495
|
500
|
|
|
496
|
|
- image {
|
|
497
|
|
- width: 100%;
|
|
498
|
|
- height: 100%;
|
|
499
|
|
- }
|
|
|
501
|
+ image {
|
|
|
502
|
+ width: 100%;
|
|
|
503
|
+ height: 100%;
|
|
|
504
|
+ }
|
|
500
|
505
|
|
|
501
|
|
- .ordermanagement-img-biao {
|
|
502
|
|
- position: absolute;
|
|
503
|
|
- left: 40rpx;
|
|
504
|
|
- bottom: 31rpx;
|
|
505
|
|
- width: 30rpx;
|
|
506
|
|
- height: 30rpx;
|
|
507
|
|
- border-radius: 50%;
|
|
508
|
|
- background: #fe0032;
|
|
509
|
|
- font-size: 20rpx;
|
|
510
|
|
- font-weight: 400;
|
|
511
|
|
- color: #ffffff;
|
|
512
|
|
- display: flex;
|
|
513
|
|
- justify-content: center;
|
|
514
|
|
- align-items: center;
|
|
515
|
|
- }
|
|
516
|
|
- }
|
|
|
506
|
+ .ordermanagement-img-biao {
|
|
|
507
|
+ position: absolute;
|
|
|
508
|
+ left: 40rpx;
|
|
|
509
|
+ bottom: 31rpx;
|
|
|
510
|
+ width: 30rpx;
|
|
|
511
|
+ height: 30rpx;
|
|
|
512
|
+ border-radius: 50%;
|
|
|
513
|
+ background: #fe0032;
|
|
|
514
|
+ font-size: 20rpx;
|
|
|
515
|
+ font-weight: 400;
|
|
|
516
|
+ color: #ffffff;
|
|
|
517
|
+ display: flex;
|
|
|
518
|
+ justify-content: center;
|
|
|
519
|
+ align-items: center;
|
|
|
520
|
+ }
|
|
|
521
|
+ }
|
|
517
|
522
|
.ordermanagement-dingsss {
|
|
518
|
523
|
width: calc(100% - 52rpx);
|
|
519
|
524
|
height: 216rpx;
|