move getDate to tools

This commit is contained in:
Chika 2020-11-15 14:09:35 +03:00
parent 80909b3b81
commit f0ebe75840
5 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import { gql } from '@apollo/client';
import { currentDate } from 'client/common/constants';
import { currentDate } from 'client/tools/date';
import CalculationService from 'client/services/CalculationService';
import CalculationStore from 'client/stores/CalculationStore';
import { getUser } from 'client/tools/user';

View File

@ -1,13 +1,14 @@
// @ts-nocheck
import { gql } from '@apollo/client';
import { message } from 'antd';
import { openNotification } from 'client/Elements/Notification';
import CalculationService from 'client/services/CalculationService';
import { prepareCalculationData } from 'client/services/prepareData';
import CalculationStore from 'client/stores/CalculationStore';
import { getUser } from 'client/tools/user';
import { TAction } from 'core/types/Calculation/Store/effect';
import { ITableCell } from 'core/types/Calculation/Store/tables';
import { TableProps } from './../../../../core/types/Calculation/Store/tables';
import { getUser } from 'client/tools/user';
const actions: TAction = {
createLead: () => {
@ -240,7 +241,7 @@ const actions: TAction = {
title: 'Ошибка во время расчета графика',
description: 'Укажите стоимость КАСКО',
})();
return;
// return;
}
if (
@ -261,7 +262,7 @@ const actions: TAction = {
title: 'Ошибка во время расчета графика',
description: 'Укажите стоимость КАСКО, включаемую в график',
})();
return;
// return;
}
CalculationStore.setTableRow(
'tableInsurance',

View File

@ -7,7 +7,7 @@ import { ITableCell, TableProps } from 'core/types/Calculation/Store/tables';
import { toJS } from 'mobx';
import { calcPrice, calculatePerc, calculateRub } from './lib/tools';
import { gql } from '@apollo/client';
import { currentDate } from 'client/common/constants';
import { currentDate } from 'client/tools/date';
const reactionEffects: IReactionEffect[] = [
calculationStore => ({

View File

@ -1,5 +1,5 @@
import { TEntityQuery } from 'core/types/Entities/query';
import { currentDate } from 'client/common/constants';
import { currentDate } from 'client/tools/date';
const initialOptions: TEntityQuery[] = [
{