реакция на изменение selectDealerBroker:
если selectDealerBroker пустое, то поле selectDealerBrokerRewardCondition сбрасывает значение, список и закрывается для редактирования иначе: обнуляем и закрываем поля selectDealerRewardCondition (каскадом должно обнулиться и закрыться tbxDealerRewardSumm) тест08.11 - не закрывается, а если указать Условие ЮЛ поставщика, а потом его убрать, то поле Брокер поставщика остается без списка см. Салон ООО Арктик-Сити
This commit is contained in:
parent
5e977ec649
commit
0a413f4eb7
@ -180,10 +180,10 @@ export function commonReactions({ store, apolloClient }: ReactionsContext) {
|
||||
);
|
||||
|
||||
reaction(
|
||||
() => $calculation.element('selectDealerBrokerRewardCondition').getValue(),
|
||||
(dealerBrokerRewardConditionId) => {
|
||||
if (dealerBrokerRewardConditionId) {
|
||||
$calculation.element('selectDealerPerson').resetValue();
|
||||
() => $calculation.element('selectDealerBroker').getValue(),
|
||||
(dealerBroker) => {
|
||||
if (dealerBroker) {
|
||||
$calculation.element('selectDealerRewardCondition').resetValue();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user