на выбор ЮЛ поставщика selectDealerPerson

если dealerPerson.evo_broker_accountid содержит данные, то в поле selectDealerBroker формируем список из контрагента из поля evo_broker_accountid и его же тут указываем, иначе selectDealerBroker пустое тест08.11 - 1) если обнуляю вручную dealerPerson, то selectDealerBroker не сбратывается, а вот если меняю dealer и обновляется dealerPerson, то selectDealerBroker перезаписывается или сбрасывается как надо
This commit is contained in:
vchikalkin 2023-01-11 15:41:13 +03:00
parent 0d3aecbcd4
commit 5e977ec649

View File

@ -38,7 +38,6 @@ export function commonReactions({ store, apolloClient }: ReactionsContext) {
async (dealerId) => {
if (!dealerId) {
$calculation.element('selectDealerPerson').reset();
$calculation.element('selectDealerBroker').reset();
return;
}
@ -107,6 +106,8 @@ export function commonReactions({ store, apolloClient }: ReactionsContext) {
() => $calculation.element('selectDealerPerson').getValue(),
async (dealerPersonId) => {
if (!dealerPersonId) {
$calculation.element('selectDealerBroker').reset();
return;
}