|
@@ -549,25 +549,25 @@ export default {
|
|
|
link.setAttribute('download', fname + '.xlsx')
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
+ },
|
|
|
+ pageInit () {
|
|
|
+ this.orderId = this.$route.params.id
|
|
|
+ this.orderSn = this.$route.params.sn
|
|
|
+ this.buyerSn = this.$route.params.buyerSn
|
|
|
+ this.getOrderDetail()
|
|
|
+ this.getWarehouseCascade()
|
|
|
+ if (!this.disabled) {
|
|
|
+ this.resetForm()
|
|
|
+ this.$refs.queryPart.resetSearchForm()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.orderId = this.$route.params.id
|
|
|
- this.orderSn = this.$route.params.sn
|
|
|
- this.buyerSn = this.$route.params.buyerSn
|
|
|
- this.getOrderDetail()
|
|
|
- this.getWarehouseCascade()
|
|
|
- this.resetForm()
|
|
|
- this.$refs.queryPart.resetSearchForm()
|
|
|
+ this.pageInit()
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|
|
|
next(vm => {
|
|
|
- if (!vm.disabled) {
|
|
|
- vm.getOrderDetail()
|
|
|
- vm.getWarehouseCascade()
|
|
|
- vm.resetForm()
|
|
|
- vm.$refs.queryPart.resetSearchForm()
|
|
|
- }
|
|
|
+ vm.pageInit()
|
|
|
})
|
|
|
}
|
|
|
}
|