|  |  |  | @ -2,7 +2,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-form :inline="true" :model="unitquery" class="query-form" size="mini"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item class="query-form-item"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input v-model="unitquery.key" placeholder="搜索"></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input v-model="unitquery.key" placeholder="搜索" clearable></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-button | 
			
		
	
	
		
			
				
					|  |  |  | @ -67,7 +67,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import {getBasicUnitMaintains, getCorpFilter} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCorpFilter} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |     name: "DialogSelectUnit", | 
			
		
	
	
		
			
				
					|  |  |  | @ -79,7 +79,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     data() { | 
			
		
	
		
			
				
					|  |  |  |  |         return { | 
			
		
	
		
			
				
					|  |  |  |  |             unitquery: {key: "", page: 1, limit: 20}, | 
			
		
	
		
			
				
					|  |  |  |  |             unitquery: { | 
			
		
	
		
			
				
					|  |  |  |  |                 key: "", | 
			
		
	
		
			
				
					|  |  |  |  |                 udiRlIdFk: null | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |             unitlist: [], | 
			
		
	
		
			
				
					|  |  |  |  |             unitUpdateQuery: { | 
			
		
	
		
			
				
					|  |  |  |  |                 id: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -90,21 +93,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     methods: { | 
			
		
	
		
			
				
					|  |  |  |  |         getUnitList() { | 
			
		
	
		
			
				
					|  |  |  |  |             // this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |             // getBasicUnitMaintains(this.unitquery) | 
			
		
	
		
			
				
					|  |  |  |  |             //     .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.unitlist = response.data.page.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |             //     }) | 
			
		
	
		
			
				
					|  |  |  |  |             //     .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |             //         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             //     }); | 
			
		
	
		
			
				
					|  |  |  |  |             this.getUnitListByCode(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getUnitListByCode(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 udiRlIdFk: row.relId, | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             getCorpFilter(query) | 
			
		
	
		
			
				
					|  |  |  |  |         getUnitListByCode() { | 
			
		
	
		
			
				
					|  |  |  |  |             getCorpFilter(this.unitquery) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                     if (response.code == 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -131,8 +123,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |         console.log("this.codeId = " + this.codeId) | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.codeId != null) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.unitquery.udiRlIdFk = this.codeId.relId; | 
			
		
	
		
			
				
					|  |  |  |  |             this.getUnitListByCode(this.codeId) | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |