fix: selectDealerPerson evo_inn/evo_kpp
This commit is contained in:
parent
56b6510933
commit
159fb85e63
@ -8,7 +8,7 @@ import { disposableReaction } from '@/utils/mobx';
|
||||
import dayjs from 'dayjs';
|
||||
import utc from 'dayjs/plugin/utc';
|
||||
import { reaction } from 'mobx';
|
||||
import { diff } from 'radash';
|
||||
import { diff, sift } from 'radash';
|
||||
|
||||
dayjs.extend(utc);
|
||||
|
||||
@ -216,7 +216,14 @@ export default function reactions({ store, apolloClient, user }: ProcessContext)
|
||||
|
||||
$calculation.element('selectLeaseObjectType').setOptions(normalizeOptions(leaseObjectTypes));
|
||||
$calculation.element('selectDealer').setOptions(normalizeOptions(dealers));
|
||||
$calculation.element('selectDealerPerson').setOptions(normalizeOptions(dealerPersons));
|
||||
$calculation.element('selectDealerPerson').setOptions(
|
||||
normalizeOptions(
|
||||
dealerPersons?.map((dp) => ({
|
||||
...dp,
|
||||
label: `${dp?.label} ${sift([dp?.evo_inn, dp?.evo_kpp]).join(' | ')}`,
|
||||
}))
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user