Demo: filtrar por lista de precios en precios
This commit is contained in:
parent
cf868a92e9
commit
555b118716
2 changed files with 6 additions and 1 deletions
|
@ -93,7 +93,11 @@ setupForm("#save-token", async () => {
|
|||
});
|
||||
setupForm("#productos", () => getProductos(HOST, token(), {}));
|
||||
setupForm("#publicaciones", () => getPublications(HOST, token(), {}));
|
||||
setupForm("#price", () => getPrices(HOST, token(), {}));
|
||||
setupForm("#price", (event) =>
|
||||
getPrices(HOST, token(), {
|
||||
filter: (event.target! as any).filter.value,
|
||||
})
|
||||
);
|
||||
setupForm("#price-by-customer", (event) =>
|
||||
getPricesByCustomer(HOST, token(), {
|
||||
filter: (event.target! as any).filter.value,
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
|
||||
<form id="price">
|
||||
<button>Conseguir precios</button>
|
||||
<input name="filter" type="text" placeholder="Filtro por lista de precios (ID, opcional)" />
|
||||
<p class="status"></p>
|
||||
</form>
|
||||
|
||||
|
|
Loading…
Reference in a new issue