Forráskód Böngészése

[FIX] fuzzy search at more fields

Gogs 7 éve
szülő
commit
addedf302d
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      src/components/steps/Customer.vue
  2. 1 1
      src/components/steps/Product.vue

+ 1 - 1
src/components/steps/Customer.vue

@@ -2,7 +2,7 @@
     .pos-step
         .customer-selection-step
             .customer-selector
-                searcher(:items='customers' :keys="['name', 'displayName']" @onSearch='filterCustomers')
+                searcher(:items='customers' :keys="['name', 'displayName', 'phone', 'mobile', 'email']" @onSearch='filterCustomers')
                 card-grid(:items='visibleCustomers' :loading='loadingCustomers' canAdd @onAdd='showCustomerForm' @onSelect='selectCustomer')
                 customer-modal(:show='showingCustomerForm' @onAccept='submitCustomer' @onCancel='hideCustomerForm')
             transition(name='slide-fade')

+ 1 - 1
src/components/steps/Product.vue

@@ -1,7 +1,7 @@
 <template lang="pug">
     .pos-step
         .products-selector
-            searcher(:items='products' :keys="['name', 'displayName']" @onSearch='filterProducts')
+            searcher(:items='products' :keys="['name', 'displayName', 'ean13']" @onSearch='filterProducts')
             card-grid(:items='visibleProducts' :loading='loadingProducts' @onAdd='showProductForm' @onSelect='selectProduct')
             product-modal(:show='showingProductForm' @onAccept='submitProduct' @onCancel='hideProductForm')
             variant-modal