| 
					
				 | 
			
			
				@@ -157,8 +157,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     setTableH () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const searchBoxH = this.$refs.searchBox.offsetHeight 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.tableHeight = window.innerHeight - searchBoxH - 340 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const searchBoxH = this.$refs.searchBox.offsetHeight 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.tableHeight = window.innerHeight - searchBoxH - 340 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  产品分类  change 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changeProductType (val, opt) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -262,6 +264,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   watch: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    '$store.state.app.winHeight' (newValue, oldValue) { //  窗口变更时,需同时更改表格高度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.setTableH() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  父页面传过来的弹框状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openModal (newValue, oldValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.isShow = newValue 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,9 +276,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (!newValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.onCancel() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.setTableH() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.setTableH() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.title = '上次采购缺货产品明细(采购单号:' + this.paramsData.purchaseBillNo + ')' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |