| | |
| | | <view class="nr-status-type" v-if="info.type === 1">同城寄送</view> |
| | | <view class="nr-status-type1" v-if="info.type === 1 && info.isUrgent === 0">标速达</view> |
| | | <view class="nr-status-type1" v-if="info.type === 1 && info.isUrgent === 1">极速达</view> |
| | | <view class="nr-status-type2" v-if="info.exceptionStatus === 1">异常转存</view> |
| | | </view> |
| | | <view class="item" style="padding: 10rpx;" v-if="info.type ===1 && info.status===4"> |
| | | <map name="mapAddr"></map> |
| | |
| | | <view class="tc-contemt"> |
| | | <view class="tc-contemt-title" >确认取件</view> |
| | | <view class="input-c"> |
| | | <view class="input-label">拍照取件<text style="color: red;">*</text><text style="color: #666666;">(最多3张照片)</text></view> |
| | | <view class="input-label">拍照取件<text style="color: red;" v-if="info.type === 1">*</text><text style="color: #666666;">(最多3张照片)</text></view> |
| | | <view class="upload-row"> |
| | | <view class="upload-box" @click="chooseAndUploadImage1(3)"> |
| | | <view class="upload-plus">+</view> |
| | |
| | | this.checkRadiusAndGetDetail() |
| | | }, |
| | | methods:{ |
| | | confirmPickup() { |
| | | async confirmPickup() { |
| | | await this.checkRadiusAndGetDetail() |
| | | if (!this.inRadius) { |
| | | uni.showToast({ |
| | | title: '您当前位置与收货地址距离超出范围,请在地址附近重新拍照', |
| | |
| | | } |
| | | this.show1 = true |
| | | }, |
| | | // 确认收件核销 |
| | | confirmWriteOff() { |
| | | async confirmWriteOff() { |
| | | await this.checkRadiusAndGetDetail() |
| | | if (!this.inRadius) { |
| | | uni.showToast({ |
| | | title: '您当前位置与收货地址距离超出范围,请在地址附近重新拍照', |
| | |
| | | this.show0 = true |
| | | }, |
| | | async checkRadiusAndGetDetail() { |
| | | uni.getLocation({ |
| | | type: 'gcj02', |
| | | success: async (res) => { |
| | | const radiusRes = await this.$u.api.checkShopOperationRadius({ |
| | | lat: res.latitude, |
| | | lng: res.longitude, |
| | | orderId: this.id |
| | | }) |
| | | if (radiusRes.code === 200) { |
| | | if (!radiusRes.data) { |
| | | uni.showToast({ |
| | | title: '您当前位置与收货地址距离超出范围,请在地址附近重新拍照', |
| | | icon: 'none' |
| | | }) |
| | | return new Promise((resolve) => { |
| | | uni.getLocation({ |
| | | type: 'gcj02', |
| | | success: async (res) => { |
| | | const radiusRes = await this.$u.api.checkShopOperationRadius({ |
| | | lat: res.latitude, |
| | | lng: res.longitude, |
| | | orderId: this.id |
| | | }) |
| | | if (radiusRes.code === 200) { |
| | | if (!radiusRes.data) { |
| | | uni.showToast({ |
| | | title: '您当前位置与收货地址距离超出范围,请在地址附近重新拍照', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | this.inRadius = radiusRes.data |
| | | } |
| | | this.inRadius = radiusRes.data |
| | | this.getOrderDetail0() |
| | | resolve() |
| | | }, |
| | | fail: () => { |
| | | uni.showToast({ |
| | | title: '请先打开位置服务', |
| | | icon: 'none' |
| | | }) |
| | | this.getOrderDetail0() |
| | | resolve() |
| | | } |
| | | this.getOrderDetail0() |
| | | }, |
| | | fail: () => { |
| | | uni.showToast({ |
| | | title: '请先打开位置服务', |
| | | icon: 'none' |
| | | }) |
| | | this.getOrderDetail0() |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | // // 定位 |
| | |
| | | } |
| | | }, |
| | | async storeOutOrderDo(){ |
| | | uni.showToast({ |
| | | title: '操作成功', |
| | | icon: 'success' |
| | | }) |
| | | var that =this |
| | | if (!this.form1.images || this.form1.images.length == 0) { |
| | | uni.showToast({ |
| | | title:'请上传取件图片', |
| | | icon: 'warn' |
| | | }) |
| | | return |
| | | if (this.info.type === 1) { |
| | | if (!this.form1.images || this.form1.images.length == 0) { |
| | | uni.showToast({ |
| | | title: '请上传取件图片', |
| | | icon: 'warn' |
| | | }) |
| | | return |
| | | } |
| | | } else { |
| | | if (!this.form1.images || this.form1.images.length == 0) { |
| | | delete this.form1.images |
| | | } |
| | | } |
| | | let res = await that.$u.api.storeOutOrder(this.form1); |
| | | if (res.code === 200 ) { |
| | |
| | | }) |
| | | return |
| | | } |
| | | } else { |
| | | if (!this.form.images || this.form.images.length == 0) { |
| | | delete this.form.images |
| | | } |
| | | } |
| | | let res = await that.$u.api.shopVerifyOrder(this.form); |
| | | if (res.code === 200 ) { |
| | |
| | | icon: 'success' |
| | | }) |
| | | uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | that.printerOrder() |
| | | // that.printerOrder() |
| | | setTimeout(function(){ |
| | | that.getOrderDetail() |
| | | },1000) |
| | |
| | | color: #10B2FA; |
| | | margin-left: 16rpx; |
| | | } |
| | | .nr-status-type2 { |
| | | width: 158rpx; |
| | | height: 38rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: #FFFFFF; |
| | | border-radius: 8rpx; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #FF0000; |
| | | margin-left: 16rpx; |
| | | } |
| | | } |
| | | .nr-desc { |
| | | font-weight: 400; |