| | |
| | | <view class="btn kong" @click="contactPhoneDo(info.takePhone)" v-if="info.status === 1 || info.status === 5" >联系客户</view> |
| | | <view class="btn kong" @click="contactPhoneDo(info.driverPhone)" v-if="info.type ===1&&(info.status === 4 || info.status === 3)">联系骑手</view> |
| | | <view class="btn you" v-if="info.status ===1 || info.status ===4 " @click="hexiaoOrder(info)" >收件核销</view> |
| | | <view class="btn you" v-if="info.status ==2 || info.status ===3 || info.status ===4 " @click="printerOrder(info)" >打印标签</view> |
| | | <view class="btn you" v-if="info.status ===5 &&(info.overdueStatus ==0 || info.overdueStatus == 1)" @click="hexiaoOrder(info)" >确认到店</view> |
| | | <view class="btn you" v-if="info.status ===5 && (info.overdueStatus == 4 || info.overdueStatus == 2)" @click="hexiaoOrder(info)" >取件核销</view> |
| | | </view> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | loading:false, |
| | | id:null, |
| | | qrcodeImage:null, |
| | | showCancel:false, |
| | |
| | | cancelOrder(item){ |
| | | this.showCancel = !this.showCancel |
| | | }, |
| | | async printerOrder(){ |
| | | if(this.loading){ |
| | | return |
| | | } |
| | | this.loading =true |
| | | try{ |
| | | var that =this |
| | | that.$u.api.printOrderLabel({ orderId: this.id }).then(res=>{ |
| | | if (res.code === 200 ) { |
| | | uni.showToast({ |
| | | title:'发起打印请求成功', |
| | | icon:'none' |
| | | }) |
| | | } |
| | | that.loading =false |
| | | }) |
| | | }catch(e){ |
| | | this.loading =false |
| | | } |
| | | |
| | | }, |
| | | async cancelOrderDo(){ |
| | | var that =this |
| | | let res = await that.$u.api.cancelOrder({ orderId: this.id }); |