diff options
-rw-r--r-- | src/services/products/ProductForm.tsx | 1 | ||||
-rw-r--r-- | src/services/products/index.ts | 5 |
2 files changed, 5 insertions, 1 deletions
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 ( <Form id="form"> <Input name="name" label="Название" /> + <Input name="group" label="Категория" /> <Input name="price" type="number" label="Цена" /> </Form> ); 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<Product> = { name: 'Товары', nameSingular: 'Товар', tableFields: [ + { key: 'group', label: 'Категория' }, { key: 'name', label: 'Название' }, - { key: 'price', label: 'Цена' }, { key: 'quantity', label: 'На складе' }, ], + filters: [ + { key: 'group', label: 'Категория' }, + ], searchBy: ['name'], default: { name: '', |