Отключить реакцию на фильтрацию списка Методов расчета CalcType и отображать всегда все 3 значения списка (Irr? Сумма, Маржа)
This commit is contained in:
parent
cc1f07d9e4
commit
6c3b93c914
@ -4,6 +4,7 @@ import * as CRMTypes from '@/graphql/crm.types';
|
||||
import { SEASON_TYPES } from '@/process/payments/lib/seasons-constants';
|
||||
import type { ProcessContext } from '@/process/types';
|
||||
import { normalizeOptions } from '@/utils/entity';
|
||||
import { disposableReaction } from '@/utils/mobx';
|
||||
import dayjs from 'dayjs';
|
||||
import utc from 'dayjs/plugin/utc';
|
||||
import { reaction } from 'mobx';
|
||||
@ -305,7 +306,8 @@ export default function reactions({ store, apolloClient, user }: ProcessContext)
|
||||
* radioCalcType фильтровать значения согласно списку
|
||||
* в поле "Доступные Методы расчета в калькуляторе" evo_calculation_method в selectProduct
|
||||
*/
|
||||
reaction(
|
||||
disposableReaction(
|
||||
() => $process.has('Unlimited'),
|
||||
() => $calculation.element('selectProduct').getValue(),
|
||||
async (productId) => {
|
||||
const IRRCalcTypeOptions = radioCalcType.filter((x) => x.value === 100_000_000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user