| | |
| | | </view> |
| | | </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> |
| | | <view class="footer" > |
| | | <view class="footer-btns"> |
| | | <view class="btn you" v-if="info.status >0 || info.status <=7 " @click="printerOrder1()" >打印标签</view> |
| | | <view class="btn you" v-if="info.status ===1 ||info.status ===4 " @click="show0=true" >收件核销</view> |
| | | <view class="btn you" v-if="info.status ===5 &&(info.overdueStatus ==0 || info.overdueStatus == 1)" @click="show2=true" >确认到店</view> |
| | | <view class="btn you" v-if="info.status ===5 && (info.overdueStatus == 4 || info.overdueStatus == 2)" @click="show1=true" >取件核销</view> |
| | |
| | | id:null, |
| | | show1:false, |
| | | show0:false, |
| | | loading:false, |
| | | show3:false, |
| | | show2:false, |
| | | info:{}, |
| | |
| | | onLoad(options) { |
| | | this.info={} |
| | | this.show2=false |
| | | this.loading=false |
| | | this.show1=false |
| | | this.show0=false |
| | | this.show3=false |
| | |
| | | let res = await that.$u.api.confirmArrivedOrder(this.form); |
| | | if (res.code === 200 ) { |
| | | uni.showToast({ |
| | | title: `操作成功`, |
| | | title: '操作成功', |
| | | icon: 'success' |
| | | }) |
| | | uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | that.getOrderDetail() |
| | | // uni.navigateBack({delta:-1}) |
| | | setTimeout(function(){ |
| | | that.getOrderDetail() |
| | | },1000) |
| | | } |
| | | }, |
| | | async storeOutOrderDo(){ |
| | | uni.showToast({ |
| | | title: '操作成功', |
| | | icon: 'success' |
| | | }) |
| | | var that =this |
| | | if (!this.form1.images || this.form1.images.length == 0) { |
| | | uni.showToast({ |
| | | title: `请上传取件图片`, |
| | | title:'请上传取件图片', |
| | | icon: 'warn' |
| | | }) |
| | | return |
| | |
| | | let res = await that.$u.api.storeOutOrder(this.form1); |
| | | if (res.code === 200 ) { |
| | | uni.showToast({ |
| | | title: `核验成功`, |
| | | title: '核验成功', |
| | | icon: 'success' |
| | | }) |
| | | uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | that.getOrderDetail() |
| | | // uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | setTimeout(function(){ |
| | | that.getOrderDetail() |
| | | },1000) |
| | | } |
| | | }, |
| | | async printerOrder(){ |
| | | try{ |
| | | var that =this |
| | | that.$u.api.printOrderLabel({ orderId: this.id }).then(res=>{}) |
| | | }catch(e){ |
| | | } |
| | | |
| | | }, |
| | | async printerOrder1(){ |
| | | 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 shopVerifyOrderDo(){ |
| | | var that =this |
| | | if (!this.form.images || this.form.images.length == 0) { |
| | | uni.showToast({ |
| | | title: `请上传收件图片`, |
| | | title: '请上传收件图片', |
| | | icon: 'warn' |
| | | }) |
| | | return |
| | |
| | | let res = await that.$u.api.shopVerifyOrder(this.form); |
| | | if (res.code === 200 ) { |
| | | uni.showToast({ |
| | | title: `核验成功`, |
| | | title:'核验成功', |
| | | icon: 'success' |
| | | }) |
| | | uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | that.getOrderDetail() |
| | | uni.$emit('updateOrder',{info:this.info,delete:0}) |
| | | that.printerOrder() |
| | | setTimeout(function(){ |
| | | that.getOrderDetail() |
| | | },1000) |
| | | } |
| | | }, |
| | | async getOrderDetail(){ |
| | |
| | | let res = await this.$u.api.shopOrderDetail( {orderId:this.id} ) |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | if(res.data.status === 1 ){ |
| | | if(res.data.status === 1 ||res.data.status === 4 ){ |
| | | that.actionType = 0 |
| | | that.show0 = true |
| | | //info.overdueStatus ==0 || info.overdueStatus == 1 |