|
|
|
@ -54,12 +54,17 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="btn info" v-if="item.order_status == 10" @click.stop="openPage(1,index,item)">取消订单 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn info" v-if="item.is_success==1 && (item.order_status == 20)" |
|
|
|
|
<view class="btn info" style="width: 120rpx;" v-if="item.order_status == 20" |
|
|
|
|
@click.stop="openPage(4,index,item)">完成</view> |
|
|
|
|
<view class="btn info" v-if="item.order_status == 10&&userInfo.user_type == 40" |
|
|
|
|
@click.stop="openPage(5,index,item)">验收</view> |
|
|
|
|
<view class="btn info" v-if="item.order_status == 10&&userInfo.user_type !=40" |
|
|
|
|
@click.stop="openPage(6,index,item)">确认收款</view> |
|
|
|
|
<view class="btn info" style="width: 120rpx;" |
|
|
|
|
v-if="item.order_status == 10&&userInfo.user_type == 40" @click.stop="openPage(5,index,item)">验收 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn info" style="width: 120rpx;" |
|
|
|
|
v-if="item.order_status == 10&&userInfo.user_type !=40" @click.stop="openPage(6,index,item)">收款 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn info" style="width: 120rpx;" |
|
|
|
|
v-if="item.order_status == 10&&userInfo.user_type ==40" @click.stop="openPage(7,index,item)">收货 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -99,7 +104,7 @@ |
|
|
|
|
}, |
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.goodsList = []; |
|
|
|
|
this.getOrderList = []; |
|
|
|
|
this.getList(); |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
@ -108,7 +113,7 @@ |
|
|
|
|
onReachBottom() { |
|
|
|
|
if (this.goodsList.length <= this.total) { |
|
|
|
|
this.pageNum++; |
|
|
|
|
this.getList(); |
|
|
|
|
this.getOrderList(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -144,7 +149,7 @@ |
|
|
|
|
confirmColor: "#F21A1C", |
|
|
|
|
complete(res) { |
|
|
|
|
if (res.confirm) { |
|
|
|
|
that.toComplete(index, a.order_id); |
|
|
|
|
that.toCheck(index, a.order_id, 40, a.recovery_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -157,7 +162,7 @@ |
|
|
|
|
confirmColor: "#F21A1C", |
|
|
|
|
complete(res) { |
|
|
|
|
if (res.confirm) { |
|
|
|
|
that.toCheck(index, a.order_id,20,a.recovery_id); |
|
|
|
|
that.toCheck(index, a.order_id, 20, a.recovery_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -170,25 +175,40 @@ |
|
|
|
|
confirmColor: "#F21A1C", |
|
|
|
|
complete(res) { |
|
|
|
|
if (res.confirm) { |
|
|
|
|
that.toCheck(index, a.order_id,40,a.recovery_id); |
|
|
|
|
that.toCheck(index, a.order_id, 40, a.recovery_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
// 店长收货 |
|
|
|
|
if (i == 7) { |
|
|
|
|
uni.showModal({ |
|
|
|
|
title: "温馨提示", |
|
|
|
|
content: "是否确认收货?", |
|
|
|
|
confirmColor: "#F21A1C", |
|
|
|
|
complete(res) { |
|
|
|
|
if (res.confirm) { |
|
|
|
|
that.toCheck(index, a.order_id, 40, a.recovery_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
async toCheck(index, order_id,stat,recovery_id) { |
|
|
|
|
async toCheck(index, order_id, stat, recovery_id) { |
|
|
|
|
const { |
|
|
|
|
status, |
|
|
|
|
message, |
|
|
|
|
data |
|
|
|
|
} = await newFunApi.updateOrderStatus({ |
|
|
|
|
order_id:order_id,status:stat,recovery_id:recovery_id |
|
|
|
|
order_id: order_id, |
|
|
|
|
status: stat, |
|
|
|
|
recovery_id: recovery_id |
|
|
|
|
}); |
|
|
|
|
if (status == 200) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: "操作成功" |
|
|
|
|
}) |
|
|
|
|
this.classifyShow = 1 |
|
|
|
|
this.classifyShow = stat == 40 ? 2 : 1 |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.goodsList = [] |
|
|
|
|
this.getOrderList(1) |
|
|
|
@ -570,7 +590,7 @@ |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
|
width: 180upx; |
|
|
|
|
width: 160upx; |
|
|
|
|
height: 56upx; |
|
|
|
|
background: #FFFFFF; |
|
|
|
|
border-radius: 50px 50px 50px 50px; |
|
|
|
|