|
@@ -518,20 +518,24 @@ export default {
|
|
|
window.frames['printf'].focus()
|
|
|
window.frames['printf'].print()
|
|
|
}
|
|
|
+ },
|
|
|
+ pageInit () {
|
|
|
+ this.getDetail()
|
|
|
+ this.getWarehouseList()
|
|
|
+ if (!this.disabled) {
|
|
|
+ this.resetSearchForm()
|
|
|
+ }
|
|
|
+ if (!this.chooseDisabled) {
|
|
|
+ this.chooseResetSearchForm()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.getDetail()
|
|
|
- this.getWarehouseList()
|
|
|
+ this.pageInit()
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|
|
|
next(vm => {
|
|
|
- if (!vm.disabled) {
|
|
|
- vm.getDetail()
|
|
|
- vm.getWarehouseList()
|
|
|
- vm.resetSearchForm()
|
|
|
- vm.chooseResetSearchForm()
|
|
|
- }
|
|
|
+ vm.pageInit()
|
|
|
})
|
|
|
}
|
|
|
}
|