форматирование

This commit is contained in:
Grog 2026-10-26 14:14:50 +03:00
parent daec128fc3
commit 630a616bf1
8 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
import { type PayloadAction, createSlice } from '@reduxjs/toolkit'; import { type PayloadAction, createSlice } from '@reduxjs/toolkit';
import type { RelatedGroupOut } from '../../../types/api'; import type { RelatedGroupOut } from '../../../types/api';
import type { ICompanyGroup } from '../../../types/companyGroups/companyGroups';
import { getCatalogueJurThunk } from './thunks'; import { getCatalogueJurThunk } from './thunks';
import type { CatalogueJurSliceType } from './types'; import type { CatalogueJurSliceType } from './types';
import { ICompanyGroup } from '../../../types/companyGroups/companyGroups';
const initialState: CatalogueJurSliceType = { const initialState: CatalogueJurSliceType = {
raw_rows: [], raw_rows: [],
@ -26,7 +26,7 @@ const catalogueJurSlice = createSlice({
}, },
setActiveCompanyGroup(state, action: PayloadAction<ICompanyGroup | null>) { setActiveCompanyGroup(state, action: PayloadAction<ICompanyGroup | null>) {
state.activeCompanyGroup = action.payload; state.activeCompanyGroup = action.payload;
state.relatedGroupFilter = null state.relatedGroupFilter = null;
}, },
}, },
extraReducers: (builder) => { extraReducers: (builder) => {

View File

@ -1,6 +1,6 @@
import type { RelatedGroupOut } from '../../../types/api'; import type { RelatedGroupOut } from '../../../types/api';
import type { ICatalogueJur } from '../../../types/catalogueJur/catalogueJur'; import type { ICatalogueJur } from '../../../types/catalogueJur/catalogueJur';
import { ICompanyGroup } from '../../../types/companyGroups/companyGroups'; import type { ICompanyGroup } from '../../../types/companyGroups/companyGroups';
export interface CatalogueJurSliceType { export interface CatalogueJurSliceType {
total_groups: number; total_groups: number;

View File

@ -375,7 +375,7 @@ export interface ConsolidationCreate {
export interface RelatedGroupOut { export interface RelatedGroupOut {
id: string; id: string;
code: string; code: string;
crm_id:string, crm_id: string;
company_group_id: string; company_group_id: string;
kind: 'gsk' | 'gsz'; kind: 'gsk' | 'gsz';
name: string; name: string;

View File

@ -2,9 +2,9 @@ import { FolderOpenOutlined, SearchOutlined } from '@ant-design/icons';
import { Empty, Input, List, Spin, Tag, Typography } from 'antd'; import { Empty, Input, List, Spin, Tag, Typography } from 'antd';
import { useEffect, useMemo, useState } from 'react'; import { useEffect, useMemo, useState } from 'react';
import { useVirtualList } from '../../hooks/useVirtualList'; import { useVirtualList } from '../../hooks/useVirtualList';
import { setActiveCompanyGroup } from '../../store/slices/catalogueJurSlice/catalogueJurSlice';
import { getCompanyGroupsThunk } from '../../store/slices/companyGroupsSlice/thunks'; import { getCompanyGroupsThunk } from '../../store/slices/companyGroupsSlice/thunks';
import { useAppDispatch, useAppSelector } from '../../store/store'; import { useAppDispatch, useAppSelector } from '../../store/store';
import { setActiveCompanyGroup } from '../../store/slices/catalogueJurSlice/catalogueJurSlice';
const { Text } = Typography; const { Text } = Typography;