|
|
@@ -48,7 +48,7 @@
|
|
|
<button
|
|
|
class="admin-button-com mini-btn btn-danger"
|
|
|
v-if="orderInfo.sendStatus == '1'"
|
|
|
- @click.stop="cancelExpress(orderInfo.id)">
|
|
|
+ @click.stop="cancelMyExpress(orderInfo.id)">
|
|
|
取消跑腿
|
|
|
</button>
|
|
|
</view>
|
|
|
@@ -634,24 +634,15 @@ export default {
|
|
|
/**
|
|
|
* 取消配送订单
|
|
|
*/
|
|
|
- async cancelExpress(orderId) {
|
|
|
+ async cancelMyExpress(orderId) {
|
|
|
this.$util.confirmModal({content: '确认取消?(若配送员接单1分钟后取消,扣2元违约金)'}, async () => {
|
|
|
- try {
|
|
|
const res = await cancelExpressOrder({orderId: orderId})
|
|
|
if (res.code === 1) {
|
|
|
- this.$msg('已取消')
|
|
|
- // 刷新订单列表
|
|
|
- this.resetList()
|
|
|
- this.getOrderList()
|
|
|
- } else {
|
|
|
- this.$msg('取消失败了')
|
|
|
+ this.$msg('取消成功')
|
|
|
+ this.init()
|
|
|
}
|
|
|
- } catch (error) {
|
|
|
- this.$msg('取消失败')
|
|
|
- }
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
/**
|
|
|
* 查看配送成功详情
|
|
|
*/
|