|
|
|
@ -24,6 +24,7 @@ export default{ |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
this.step= parseInt(this.$route.query.step) |
|
|
|
console.info(this.$route) |
|
|
|
this.type=this.$route.query.type |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
@ -33,7 +34,9 @@ export default{ |
|
|
|
if (val.status==8 || val.status==2 || val.status==3) { |
|
|
|
this.step=2 |
|
|
|
if (val.status==8) { |
|
|
|
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:2}}) |
|
|
|
if (this.$route.path!='/order/orderDetails') { |
|
|
|
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:2}}) |
|
|
|
} |
|
|
|
this.type=2 |
|
|
|
} |
|
|
|
}else if (val.status==0 ||val.status==1) { |
|
|
|
@ -44,7 +47,9 @@ export default{ |
|
|
|
this.step=4 |
|
|
|
}else if (val.status==7 ) { |
|
|
|
this.step=5 |
|
|
|
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:this.$route.query.type}}) |
|
|
|
if (this.$route.path!='/order/orderDetails') { |
|
|
|
this.$router.push({path:'/order/orderDetails',query:{batchcode:val.batchcode,type:this.$route.query.type}}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|