代码提交
This commit is contained in:
		
							parent
							
								
									8383351d8e
								
							
						
					
					
						commit
						7dd2ad52f2
					
				| 
						 | 
					@ -367,11 +367,10 @@ export default {
 | 
				
			||||||
        if(this.$route.query.purchaseInspectionRowData){ 
 | 
					        if(this.$route.query.purchaseInspectionRowData){ 
 | 
				
			||||||
            this.purchaseInspectionRowData = JSON.parse(this.$route.query.purchaseInspectionRowData)
 | 
					            this.purchaseInspectionRowData = JSON.parse(this.$route.query.purchaseInspectionRowData)
 | 
				
			||||||
            this.getContractInfo()
 | 
					            this.getContractInfo()
 | 
				
			||||||
        }else{
 | 
					 | 
				
			||||||
            this.getAreaTreeData()  
 | 
					 | 
				
			||||||
            this.getMaterialTree()  
 | 
					 | 
				
			||||||
            this.attachmentList=[]
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        this.getAreaTreeData()  
 | 
				
			||||||
 | 
					        this.getMaterialTree()  
 | 
				
			||||||
 | 
					        this.attachmentList=[]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    watch:{
 | 
					    watch:{
 | 
				
			||||||
        '$route.query.purchaseInspectionRowData':function(newId, oldId) {
 | 
					        '$route.query.purchaseInspectionRowData':function(newId, oldId) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -410,10 +410,9 @@ export default {
 | 
				
			||||||
        if(this.$route.query.purchaseOrderRowData){ 
 | 
					        if(this.$route.query.purchaseOrderRowData){ 
 | 
				
			||||||
            this.purchaseOrderRowData = JSON.parse(this.$route.query.purchaseOrderRowData) 
 | 
					            this.purchaseOrderRowData = JSON.parse(this.$route.query.purchaseOrderRowData) 
 | 
				
			||||||
            this.getContractInfo() 
 | 
					            this.getContractInfo() 
 | 
				
			||||||
        }else{
 | 
					 | 
				
			||||||
            this.getAreaTreeData()  
 | 
					 | 
				
			||||||
            this.getMaterialTree()   
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        this.getAreaTreeData()  
 | 
				
			||||||
 | 
					        this.getMaterialTree()   
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    watch:{
 | 
					    watch:{
 | 
				
			||||||
        '$route.query.purchaseOrderRowData':function(newId, oldId) {
 | 
					        '$route.query.purchaseOrderRowData':function(newId, oldId) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -330,10 +330,9 @@ export default {
 | 
				
			||||||
        if(this.$route.query.inRowData){ 
 | 
					        if(this.$route.query.inRowData){ 
 | 
				
			||||||
            this.inRowData = JSON.parse(this.$route.query.inRowData)
 | 
					            this.inRowData = JSON.parse(this.$route.query.inRowData)
 | 
				
			||||||
            this.getContractInfo()
 | 
					            this.getContractInfo()
 | 
				
			||||||
        }else{
 | 
					 | 
				
			||||||
            this.getAreaTreeData()  
 | 
					 | 
				
			||||||
            this.getMaterialTree()   
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        this.getAreaTreeData()  
 | 
				
			||||||
 | 
					        this.getMaterialTree()    
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    watch:{ 
 | 
					    watch:{ 
 | 
				
			||||||
        '$route.query.inRowData':function(newId, oldId) {
 | 
					        '$route.query.inRowData':function(newId, oldId) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue