Merge branch 'PR-3' of https://gitea.verdnatura.es/hyervoni/salix-front-mindshore into feature/SuppliersCorrections
This commit is contained in:
commit
73f5c1c636
|
@ -18,18 +18,28 @@ const route = useRoute();
|
||||||
|
|
||||||
const payMethods = ref([]);
|
const payMethods = ref([]);
|
||||||
const bankEntitiesOptions = ref([]);
|
const bankEntitiesOptions = ref([]);
|
||||||
|
const bankEntitiesRef = ref(null);
|
||||||
|
|
||||||
onMounted(() => getBankEntities());
|
const filter = {
|
||||||
|
fields: ['id', 'bic', 'name'],
|
||||||
|
order: 'bic ASC',
|
||||||
|
limit: 30,
|
||||||
|
};
|
||||||
|
|
||||||
const getBankEntities = async () => {
|
const getBankEntities = () => {
|
||||||
const filter = { fields: ['id', 'bic', 'name'], order: 'bic ASC', limit: 30 };
|
bankEntitiesRef.value.fetch();
|
||||||
const { data } = await axios.get('BankEntities', { filter });
|
|
||||||
bankEntitiesOptions.value = data;
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<fetch-data @on-fetch="(data) => (payMethods = data)" auto-load url="PayMethods" />
|
<fetch-data @on-fetch="(data) => (payMethods = data)" auto-load url="PayMethods" />
|
||||||
|
<fetch-data
|
||||||
|
ref="bankEntitiesRef"
|
||||||
|
@on-fetch="(data) => (bankEntitiesOptions = data)"
|
||||||
|
:filter="filter"
|
||||||
|
auto-load
|
||||||
|
url="BankEntities"
|
||||||
|
/>
|
||||||
|
|
||||||
<FormModel
|
<FormModel
|
||||||
:url-update="`Clients/${route.params.id}`"
|
:url-update="`Clients/${route.params.id}`"
|
||||||
|
|
Loading…
Reference in New Issue