diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 12:08:32 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 12:08:32 +0300 |
commit | 8e011b65f346386abe26afcce737dd59c5865988 (patch) | |
tree | 68e1159eea6ec6ea65740bf61e5ee1182883dae4 /src/services.js | |
parent | dfe13c7c061b4b2fd6dfde8e1c3c284d574ad8f2 (diff) | |
download | commercel-ui-8e011b65f346386abe26afcce737dd59c5865988.tar.gz |
feat: add Waybills
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, + }, }, ]; |