From a8f56532c9df74dd483aa360919422154442c911 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 18 Apr 2021 21:43:55 +0300 Subject: feat: add group to Products --- src/services/products/ProductForm.tsx | 1 + src/services/products/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/services/products/ProductForm.tsx b/src/services/products/ProductForm.tsx index 62f0e70..8b6099d 100644 --- a/src/services/products/ProductForm.tsx +++ b/src/services/products/ProductForm.tsx @@ -7,6 +7,7 @@ const ProductForm: React.FC = () => { return (
+
); diff --git a/src/services/products/index.ts b/src/services/products/index.ts index 2e9a714..73e6bbe 100644 --- a/src/services/products/index.ts +++ b/src/services/products/index.ts @@ -7,10 +7,13 @@ const service: ServiceParams = { name: 'Товары', nameSingular: 'Товар', tableFields: [ + { key: 'group', label: 'Категория' }, { key: 'name', label: 'Название' }, - { key: 'price', label: 'Цена' }, { key: 'quantity', label: 'На складе' }, ], + filters: [ + { key: 'group', label: 'Категория' }, + ], searchBy: ['name'], default: { name: '', -- cgit v1.2.3