new params to selectRegistration filter
This commit is contained in:
parent
66b638b7e8
commit
699096ebee
@ -277,6 +277,9 @@ const query = gql`
|
||||
evo_fias_id
|
||||
evo_businessunit_evolution
|
||||
evo_oktmo
|
||||
accounts {
|
||||
accountid
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@ -332,12 +332,18 @@ const gibddReactions: IReactionEffect[] = [
|
||||
|
||||
calculationStore => ({
|
||||
expression: () => {
|
||||
return calculationStore.getValues([
|
||||
'objectRegistration',
|
||||
'objectRegionRegistration',
|
||||
'regionRegistration',
|
||||
'typePTS',
|
||||
]);
|
||||
const objectRegionRegistration = calculationStore.getOption(
|
||||
'selectObjectRegionRegistration',
|
||||
);
|
||||
|
||||
return {
|
||||
objectRegionRegistration,
|
||||
...calculationStore.getValues([
|
||||
'objectRegistration',
|
||||
'regionRegistration',
|
||||
'typePTS',
|
||||
]),
|
||||
};
|
||||
},
|
||||
effect: ({
|
||||
objectRegistration,
|
||||
@ -352,7 +358,10 @@ const gibddReactions: IReactionEffect[] = [
|
||||
x.evo_pts_type &&
|
||||
x.evo_pts_type.includes(typePTS) &&
|
||||
x.evo_gibdd_region ===
|
||||
(objectRegionRegistration === regionRegistration),
|
||||
(objectRegionRegistration.evo_regionid === regionRegistration) &&
|
||||
objectRegionRegistration.accounts
|
||||
.map(x => x.accountid)
|
||||
.includes(x.evo_accountid),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@ -207,6 +207,7 @@ export interface IEvoRegion {
|
||||
statecode?: number;
|
||||
evo_businessunit_evolution?: boolean;
|
||||
evo_oktmo?: string;
|
||||
accounts?: IAccount[];
|
||||
}
|
||||
export interface IEvoTown {
|
||||
evo_name?: string;
|
||||
|
||||
Reference in New Issue
Block a user