diff options
Diffstat (limited to 'src/services.js')
-rw-r--r-- | src/services.js | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/src/services.js b/src/services.js index 83fc425..dbfedd5 100644 --- a/src/services.js +++ b/src/services.js @@ -1,5 +1,3 @@ -import ContractorForm from './containers/ContractorForm'; -import ProductForm from './containers/ProductForm'; import { ServiceParams } from './containers/Service/ServiceContext'; const services: ServiceParams[] = [ @@ -10,8 +8,13 @@ const services: ServiceParams[] = [ tableFields: [ { key: 'name', label: 'Название' }, { key: 'price', label: 'Цена' }, + { key: 'quantity', label: 'На складе' }, ], - Form: ProductForm, + default: { + name: '', + price: '', + quantity: 0, + }, }, { route: 'contractors', @@ -22,7 +25,26 @@ const services: ServiceParams[] = [ { key: 'name', label: 'Название' }, { key: 'debt', label: 'Долг' }, ], - Form: ContractorForm, + default: { + name: '', + vatId: '', + debt: 0, + }, + }, + { + route: 'waybills', + name: 'Накладные', + nameSingular: 'Накладная', + tableFields: [ + { key: 'operation', label: 'Операция' }, + { key: 'productId', label: 'Товар' }, + { key: 'contractorId', label: 'Поставщик' }, + { key: 'status', label: 'Статус' }, + { key: 'quantity', label: 'Количество' }, + ], + default: { + quantity: 1, + }, }, ]; |