diff --git a/api/views.py b/api/views.py index f86fc25fa6..fa55fada56 100644 --- a/api/views.py +++ b/api/views.py @@ -2963,6 +2963,7 @@ def get_companies(request): { "pk": company.pk, "title": company.title, + "inn": company.inn if isinstance(company, Company) else None } for company in companies ] diff --git a/l2-frontend/src/construct/ConstructCompany.vue b/l2-frontend/src/construct/ConstructCompany.vue index a4e2cdb6c6..9064528c0b 100644 --- a/l2-frontend/src/construct/ConstructCompany.vue +++ b/l2-frontend/src/construct/ConstructCompany.vue @@ -166,7 +166,7 @@
@@ -420,9 +420,10 @@ export default { filteredCompany() { return this.companies.filter(company => { const companyTitle = company.title.toLowerCase(); + const companyInn = company.inn.toLowerCase(); const searchTerm = this.searchCompany.toLowerCase(); - return companyTitle.includes(searchTerm); + return companyTitle.includes(searchTerm) || companyInn.includes(searchTerm); }); }, filteredDepartments() {