diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-18 20:36:19 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-18 20:36:19 +0300 |
commit | 6627ec88b2a02b522511b85eb38d21225098cfad (patch) | |
tree | 25a92e3c92a6a08bf513af29a236e4cbecbe1e4b /src/services | |
parent | c222bc06f9c123d3e2fa4a428d74032f54887485 (diff) | |
download | commercel-ui-6627ec88b2a02b522511b85eb38d21225098cfad.tar.gz |
feat: support date filters
Diffstat (limited to 'src/services')
-rw-r--r-- | src/services/transfers/index.ts | 1 | ||||
-rw-r--r-- | src/services/waybills/index.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/services/transfers/index.ts b/src/services/transfers/index.ts index b0f71e6..84858ce 100644 --- a/src/services/transfers/index.ts +++ b/src/services/transfers/index.ts @@ -16,6 +16,7 @@ const service: ServiceParams<Transfer> = { { key: 'amount', label: 'Сумма' }, ], filters: [ + { key: 'date', label: 'Дата', date: true }, { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'contractorId', label: 'Контрагент', as: 'contractor.name' }, ], diff --git a/src/services/waybills/index.ts b/src/services/waybills/index.ts index 0b24876..b623da6 100644 --- a/src/services/waybills/index.ts +++ b/src/services/waybills/index.ts @@ -10,11 +10,13 @@ const service: ServiceParams<Waybill> = { nameSingular: 'Накладная', tableFields: [ { key: 'status', label: 'Статус', transform: transformStatus }, + { key: 'date', label: 'Дата' }, { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'total', label: 'Сумма' }, { key: 'contractor.name', label: 'Контрагент' }, ], filters: [ + { key: 'date', label: 'Дата', date: true }, { key: 'status', label: 'Статус', transform: transformStatus }, { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'contractorId', label: 'Контрагент', as: 'contractor.name' }, |