|  |  |  | @ -11,7 +11,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="申购部门"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="filterQuery.deptCode" @change="getInvList" placeholder="请选择申购部门" style="width: 90%"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="filterQuery.targetDeptCode" clearable @change="getInvList" placeholder="请选择申购部门" style="width: 90%"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in deptList" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.code" | 
			
		
	
	
		
			
				
					|  |  |  | @ -25,7 +25,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-form-item label="申购仓库"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="filterQuery.invCode" style="width: 90%" clearable placeholder="请选择所属仓库"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-select v-model="filterQuery.targetInvCode" style="width: 90%" clearable placeholder="请选择所属仓库"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                   v-for="item in invList" | 
			
		
	
		
			
				
					|  |  |  |  |                   :key="item.name" | 
			
		
	
	
		
			
				
					|  |  |  | @ -171,7 +171,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | import pureApplyDetail from "./pureApplyDetailDialog"; | 
			
		
	
		
			
				
					|  |  |  |  | import {delApply, auditOrder, listApplyDetail, auditListApply, listApply} from "@/api/purchase/purApply"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getInvListByUser} from "@/api/system/invWarehouse"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getDeptListByUser} from "@/api/auth/authDept"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterDepts, getDeptListByUser} from "@/api/auth/authDept"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterSubAll} from "@/api/system/invSubWarehouse"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
	
		
			
				
					|  |  |  | @ -297,7 +297,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$router.push({ | 
			
		
	
		
			
				
					|  |  |  |  |         path: "", | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       let deptCode = this.filterQuery.deptCode | 
			
		
	
		
			
				
					|  |  |  |  |       let targetDeptCode = this.filterQuery.targetDeptCode | 
			
		
	
		
			
				
					|  |  |  |  |       this.filterQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |         billNo: "", | 
			
		
	
		
			
				
					|  |  |  |  |         thirdSysFk: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -310,9 +310,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         corpName: null, | 
			
		
	
		
			
				
					|  |  |  |  |         type: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         editStatus: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         deptCode: this.invCodebe, | 
			
		
	
		
			
				
					|  |  |  |  |         targetDeptCode: this.invCodebe, | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       if (deptCode != this.invCodebe) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (targetDeptCode != this.invCodebe) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.getInvList() | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.actDateRange = []; | 
			
		
	
	
		
			
				
					|  |  |  | @ -463,7 +463,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     getDeptList() { | 
			
		
	
		
			
				
					|  |  |  |  |       getDeptListByUser().then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |       let query = { | 
			
		
	
		
			
				
					|  |  |  |  |         spUse: true, | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       filterDepts(query).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.deptList = res.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.deptList.length > 0) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.filterQuery.targetDeptCode = this.deptList[0].code | 
			
		
	
	
		
			
				
					|  |  |  | 
 |