diff --git a/src/components/03_customer-management/BasicInformation.vue b/src/components/03_customer-management/BasicInformation.vue index 37fb8d9f..3986f1c3 100644 --- a/src/components/03_customer-management/BasicInformation.vue +++ b/src/components/03_customer-management/BasicInformation.vue @@ -46,6 +46,12 @@ defineEmits<{ (e: 'filterOwnerBranch', val: string, update: void): void; }>(); +const branchOptions = ref[]>([]); +let branchFilter: ( + value: string, + update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void, +) => void; + watch( () => optionsBranch.value, () => { @@ -57,11 +63,9 @@ watch( }, ); -const branchOptions = ref[]>([]); -let branchFilter: ( - value: string, - update: (callbackFn: () => void, afterFn?: (ref: QSelect) => void) => void, -) => void; +onMounted(() => { + branchFilter = selectFilterOptionRefMod(optionsBranch, branchOptions, 'name'); +});