From 546b901a05a689be0f88d64efc91af0e5db9739c Mon Sep 17 00:00:00 2001 From: nat Date: Tue, 22 Feb 2022 11:44:52 -0300 Subject: [PATCH] =?UTF-8?q?Frontend=20de=20crear=20Subpedido=20muestra=20l?= =?UTF-8?q?as=20coincidencias=20de=20tu=20barrio=20=C3=BAnicamente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/subpedidos-create.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/subpedidos-create.js b/public/js/subpedidos-create.js index 41b399a..c8a2fa7 100644 --- a/public/js/subpedidos-create.js +++ b/public/js/subpedidos-create.js @@ -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 }); },