From 3e0fd10b41160f7ae3eb23a89aa8eb1874459c89 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 6 Feb 2020 14:33:28 +0100 Subject: [PATCH] 2029 - Item request fixes & searchbar filters working --- modules/item/front/request/index.html | 30 ++++++++++----------------- modules/item/front/request/index.js | 2 +- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/modules/item/front/request/index.html b/modules/item/front/request/index.html index 6d6e786dc..e0cf05107 100644 --- a/modules/item/front/request/index.html +++ b/modules/item/front/request/index.html @@ -6,14 +6,15 @@ order="shipped DESC, isOk ASC"> - + suggested-filter="$ctrl.filter.where" + info="Search request by id or alias"> + + @@ -21,8 +22,6 @@ Ticket ID Shipped - Warehouse - SalesPerson Description Requested Price @@ -47,15 +46,7 @@ {{::request.shipped | date: 'dd/MM/yyyy'}} - {{::request.warehouse}} - - - {{::request.salesPersonNickname}} - - - {{::request.description}} + {{::request.description}} {{::request.quantity}} {{::request.price | currency: 'EUR':2}} @@ -82,7 +73,7 @@ - + + translate-attr="{title: 'Discard'}" + tabindex="-1"> @@ -124,7 +116,7 @@
Specify the reasons to deny this request
- diff --git a/modules/item/front/request/index.js b/modules/item/front/request/index.js index b56df41a8..b91e5d6d1 100644 --- a/modules/item/front/request/index.js +++ b/modules/item/front/request/index.js @@ -86,6 +86,7 @@ export default class Controller extends Component { } onSearch(params) { + console.log(params); if (params) this.$.model.applyFilter(null, params); else @@ -96,7 +97,6 @@ export default class Controller extends Component { this.selectedRequest = requestId; this.$.denyReason.parent = event.target; this.$.denyReason.show(); - document.querySelector('vn-item-request vn-textarea textArea').focus(); } clear() {