0
0
Fork 0

Merge branch 'master' into 7129-hotfix

This commit is contained in:
Alex Moreno 2024-08-06 10:15:38 +00:00
commit c3fb30e72b
4 changed files with 12 additions and 3 deletions

View File

@ -23,6 +23,7 @@ const props = defineProps({
searchCustomRouteRedirect: { type: String, default: undefined },
searchRedirect: { type: Boolean, default: true },
searchMakeFetch: { type: Boolean, default: true },
searchUrlQuery: { type: String, default: undefined },
});
const stateStore = useStateStore();
@ -70,6 +71,7 @@ if (props.baseUrl) {
:url="props.searchUrl"
:label="props.searchbarLabel"
:info="props.searchbarInfo"
:search-url="props.searchUrlQuery"
:custom-route-redirect-name="searchCustomRouteRedirect"
:redirect="searchRedirect"
/>

View File

@ -67,6 +67,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
searchUrl: {
type: String,
default: 'params',
},
});
const searchText = ref('');

View File

@ -12,5 +12,6 @@ import SupplierListFilter from '../SupplierListFilter.vue';
search-data-key="SupplierList"
search-url="Suppliers/filter"
searchbar-label="Search suppliers"
search-url-query="table"
/>
</template>

View File

@ -19,9 +19,6 @@ const columns = computed(() => [
label: t('supplier.list.tableVisibleColumns.name'),
name: 'socialName',
create: true,
columnCreate: {
component: 'input',
},
columnFilter: {
name: 'search',
},
@ -93,6 +90,11 @@ const columns = computed(() => [
title: t('Create Supplier'),
onDataSaved: ({ id }) => tableRef.redirect(id),
formInitialData: {},
mapper: (data) => {
data.name = data.socialName;
delete data.socialName;
return data;
},
}"
order="id ASC"
:columns="columns"