geer-builder 1.2.549 → 1.2.552
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GProcessSale.vue +12 -2
- package/package.json +1 -1
package/GProcessSale.vue
CHANGED
|
@@ -387,9 +387,10 @@ export default
|
|
|
387
387
|
// call abort() at any time if you can't retrieve data somehow
|
|
388
388
|
setTimeout( async () => {
|
|
389
389
|
if(val !== ''){
|
|
390
|
-
let slot_res = await new DB_USER().collection().where("keywords", "array-contains", val).get()
|
|
390
|
+
let slot_res = await new DB_USER().collection().where("keywords", "array-contains", val.toLowerCase()).get()
|
|
391
|
+
let slot_res2 = await new DB_USER().collection().where("keywords", "array-contains", val.toUpperCase()).get()
|
|
391
392
|
let new_option = [];
|
|
392
|
-
if(slot_res.docs.length>0)
|
|
393
|
+
if(slot_res.docs.length>0 || slot_res2.docs.length >0)
|
|
393
394
|
{
|
|
394
395
|
slot_res.docs.forEach(element => {
|
|
395
396
|
new_option.push({label:element.data().full_name.toLowerCase(),value: element.data().email });
|
|
@@ -398,6 +399,15 @@ export default
|
|
|
398
399
|
new_option.push({label:element.data().email, value: element.data().email.toLowerCase()});
|
|
399
400
|
}
|
|
400
401
|
});
|
|
402
|
+
|
|
403
|
+
slot_res2.docs.forEach(element => {
|
|
404
|
+
new_option.push({label:element.data().full_name.toLowerCase(),value: element.data().email });
|
|
405
|
+
if(new_option.map(function(e) { return e.label; }).indexOf(element.data().email.toLowerCase())<0)
|
|
406
|
+
{
|
|
407
|
+
new_option.push({label:element.data().email, value: element.data().email.toLowerCase()});
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
|
|
401
411
|
this.stringOptions = new_option;
|
|
402
412
|
}
|
|
403
413
|
else
|