forked from nathalie/pedi2
		
	Frontend de crear Subpedido muestra las coincidencias de tu barrio únicamente
This commit is contained in:
		
							parent
							
								
									6b9aa7a995
								
							
						
					
					
						commit
						546b901a05
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		
							
								
								
									
										7
									
								
								public/js/subpedidos-create.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								public/js/subpedidos-create.js
									
										
									
									
										vendored
									
									
								
							|  | @ -11,7 +11,12 @@ Vue.component('subpedido-select', { | |||
|   	}, | ||||
| 	methods: { | ||||
|   		onType() { | ||||
| 	    	axios.get("/api/subpedidos?nombre=" + this.subpedido).then(response => { | ||||
| 	    	axios.get("/api/subpedidos", { | ||||
|           params: { | ||||
|             nombre: this.subpedido, | ||||
|             grupo_de_compra: this.gdcid | ||||
|           } | ||||
|         }).then(response => { | ||||
| 	    		this.subpedidosExistentes = response.data | ||||
| 	    	}); | ||||
|   		}, | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 nat
						nat