summaryrefslogtreecommitdiff
path: root/src/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/services.js b/src/services.js
new file mode 100644
index 0000000..83fc425
--- /dev/null
+++ b/src/services.js
@@ -0,0 +1,29 @@
+import ContractorForm from './containers/ContractorForm';
+import ProductForm from './containers/ProductForm';
+import { ServiceParams } from './containers/Service/ServiceContext';
+
+const services: ServiceParams[] = [
+ {
+ route: 'products',
+ name: 'Товары',
+ nameSingular: 'Товар',
+ tableFields: [
+ { key: 'name', label: 'Название' },
+ { key: 'price', label: 'Цена' },
+ ],
+ Form: ProductForm,
+ },
+ {
+ route: 'contractors',
+ name: 'Контрагенты',
+ nameSingular: 'Контрагент',
+ tableFields: [
+ { key: 'vatId', label: 'УНП' },
+ { key: 'name', label: 'Название' },
+ { key: 'debt', label: 'Долг' },
+ ],
+ Form: ContractorForm,
+ },
+];
+
+export default services;