|  |  | @ -41,6 +41,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="inspectOrder.invCode" |  |  |  |               <el-select v-model="inspectOrder.invCode" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          placeholder="请选择仓库" |  |  |  |                          placeholder="请选择仓库" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable="true" |  |  |  |                          clearable="true" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          :disabled="isDeviceNameEmpty" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |               > |  |  |  |               > | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
	
		
		
			
				
					|  |  | @ -193,6 +194,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  |       deptList: [], |  |  |  |       deptList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       invList: [], |  |  |  |       invList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       isDeviceNameEmpty: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       deviceDialogVisible: false, |  |  |  |       deviceDialogVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       deviceLoading: false, |  |  |  |       deviceLoading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       filterQuery: { |  |  |  |       filterQuery: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -207,9 +209,12 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       deptName: null, |  |  |  |       deptName: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       invName: null, |  |  |  |       invName: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       selectRow: null, |  |  |  |       selectRow: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       check: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     deptChange() { |  |  |  |     deptChange() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if(this.inspectOrder.id == null){ |  |  |  |       if(this.inspectOrder.id == null){ | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.inspectOrder.deviceName=null; |  |  |  |         this.inspectOrder.deviceName=null; | 
			
		
	
	
		
		
			
				
					|  |  | @ -217,6 +222,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.inspectOrder.invCode = null; |  |  |  |       this.inspectOrder.invCode = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.invList = []; |  |  |  |       this.invList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.isDeviceNameEmpty=false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getInvList(); |  |  |  |       this.getInvList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getDeptList() { |  |  |  |     getDeptList() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -258,6 +264,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |         return; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.setDeptAnInvName(); |  |  |  |       this.setDeptAnInvName(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.check = false | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.deviceDialogVisible = true; |  |  |  |       this.deviceDialogVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery = { |  |  |  |       this.filterQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: null, |  |  |  |         code: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -303,6 +310,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     onReset() { |  |  |  |     onReset() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.code = null; |  |  |  |       this.filterQuery.code = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.page = 1; |  |  |  |       this.filterQuery.page = 1; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.filterQuery.limit = 10; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getDeviceList(); |  |  |  |       this.getDeviceList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     queryDevice() { |  |  |  |     queryDevice() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -310,12 +318,18 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getDeviceList(); |  |  |  |       this.getDeviceList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     handleCurrentChange(row) { |  |  |  |     handleCurrentChange(row) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.check = !this.check | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectRow = row; |  |  |  |       this.selectRow = row; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     combine() { |  |  |  |     combine() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (this.check == false) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.$message.error("请选择设备!") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.deviceDialogVisible = false; |  |  |  |       this.deviceDialogVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.inspectOrder.code = this.selectRow.code; |  |  |  |       this.inspectOrder.code = this.selectRow.code; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.inspectOrder.deviceName = this.selectRow.deviceName; |  |  |  |       this.inspectOrder.deviceName = this.selectRow.deviceName; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.isDeviceNameEmpty=true; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   created() { |  |  |  |   created() { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |