| | |
| | | <view class="addr-item-top"> |
| | | <text>{{info.depositShopName || ''}}</text> |
| | | </view> |
| | | <text>{{info.depositShopAddress || ''}} </text> |
| | | <view class='addr-link' style="top: 50rpx;"> |
| | | <text style="width: 70%;">{{info.depositShopAddress || ''}} </text> |
| | | <view class='addr-link' style="top: 0;"> |
| | | <image style="margin-right: 10rpx;" @click="contactPhoneDo(info.takePhone)" src="/static/icon/ic_call@2x.png" mode="widthFix" ></image> |
| | | <text class=" txt-d1">联系客户</text> |
| | | </view> |
| | |
| | | <view class="addr-item-top"> |
| | | <text class=" txt-d">司机:{{info.driverName || '战神'}} </text> |
| | | </view> |
| | | <view class='addr-link'> |
| | | <view class='addr-link' style="top: 0;"> |
| | | <image style="margin-right: 10rpx;" @click="contactPhoneDo(info.driverPhone)" src="/static/icon/ic_call@2x.png" mode="widthFix" ></image> |
| | | <text class=" txt-d1">联系司机</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view style="width: 100%; height: calc(210rpx + env(safe-area-inset-bottom));"></view> |
| | | </view> |
| | | <view class="tips" v-if="info.overdueStatus !==0"> |
| | | <view class="tips" v-if="info.overdueStatus !==0 &&info.overdueStatus !==2"> |
| | | <image src="/static/icon/ic_waring@2x.png" mode="widthFix"></image> |
| | | <text v-if="info.overdueStatus ===1">已超过取件时间,已产生超时费用:¥{{((info.overdueFee || 0)/100).toFixed(2)}}元</text> |
| | | <text v-if="info.overdueStatus ===3">已超过取件时间,等待客户支付超时费用:¥{{((info.overdueFee || 0)/100).toFixed(2)}}元</text> |
| | |
| | | <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 ===5 || 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 }); |