From 7d1b8c8c56db8f79a1def5cf14922f370ec4bb46 Mon Sep 17 00:00:00 2001 From: alexandre Date: Fri, 23 Dec 2022 12:11:24 +0100 Subject: [PATCH] refs #4971 itemSearchFunc added --- modules/entry/front/buy/index/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/entry/front/buy/index/index.js b/modules/entry/front/buy/index/index.js index 6d9ee5760..322b81d4e 100644 --- a/modules/entry/front/buy/index/index.js +++ b/modules/entry/front/buy/index/index.js @@ -73,6 +73,12 @@ export default class Controller extends Section { this.vnApp.showSuccess(this.$t('Data saved!')); }); } + + itemSearchFunc($search) { + return /^\d+$/.test($search) + ? {id: $search} + : {name: {like: '%' + $search + '%'}}; + } } ngModule.vnComponent('vnEntryBuyIndex', {