8144-devToTest_2444 #852
|
@ -93,6 +93,11 @@ onBeforeMount(async () => {
|
|||
).data?.payMethodFk;
|
||||
});
|
||||
|
||||
const handleNewBankEntity = (response, formData) => {
|
||||
bankEntitiesOptions.value = [...bankEntitiesOptions.value, response];
|
||||
formData.bankEntityFk = response.id;
|
||||
};
|
||||
|
||||
function handleLocation(data, location) {
|
||||
const { town, code, provinceFk, countryFk } = location ?? {};
|
||||
data.postcode = code;
|
||||
|
@ -319,7 +324,10 @@ async function autofillBic(worker) {
|
|||
>
|
||||
<template #form>
|
||||
<CreateBankEntityForm
|
||||
@on-data-saved="(data) => bankEntitiesOptions.push(data)"
|
||||
@on-data-saved="
|
||||
(_, requestResponse) =>
|
||||
handleNewBankEntity(requestResponse, data)
|
||||
"
|
||||
/>
|
||||
</template>
|
||||
<template #option="scope">
|
||||
|
|
Loading…
Reference in New Issue