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