refs #6898 filters #572

Merged
carlossa merged 3 commits from hotfix-supplierMigration3 into master 2024-07-26 10:14:33 +00:00
2 changed files with 1 additions and 10 deletions
Showing only changes of commit 1ad15869e8 - Show all commits

View File

@ -2,8 +2,6 @@
import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue';
import FormModel from 'components/FormModel.vue';
import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue';
@ -15,12 +13,6 @@ const { t } = useI18n();
const workersOptions = ref([]);
</script>
<template>
<FetchData
carlossa marked this conversation as resolved Outdated
Outdated
Review

No descargarse toda la tabla entera
Si se usa en un VnSelect pasale la prop URL y todo lo demas

No descargarse toda la tabla entera Si se usa en un VnSelect pasale la prop URL y todo lo demas
url="Workers/search"
:filter="{ fields: ['id', 'nickname'], order: 'nickname ASC' }"
@on-fetch="(data) => (workersOptions = data)"
auto-load
/>
<FormModel
:url="`Suppliers/${route.params.id}`"
:url-update="`Suppliers/${route.params.id}`"
@ -44,6 +36,7 @@ const workersOptions = ref([]);
option-label="name"
hide-selected
map-options
url="Workers/search"
carlossa marked this conversation as resolved
Review

sortby="nickname ASC"

sortby="nickname ASC"
:rules="validate('supplier.workerFk')"
>
<template #append>

View File

@ -3,8 +3,6 @@ import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import VnTable from 'components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import RightMenu from 'components/common/RightMenu.vue';
import SupplierListFilter from './SupplierListFilter.vue';
carlossa marked this conversation as resolved Outdated
Outdated
Review

No pero dic el fitxer sanser si ja no el gasta ningu

No pero dic el fitxer sanser si ja no el gasta ningu
const { t } = useI18n();
const tableRef = ref();