forked from verdnatura/salix-front
Merge branch 'master' into 7129-hotfix
This commit is contained in:
commit
c3fb30e72b
|
@ -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"
|
||||
/>
|
||||
|
|
|
@ -67,6 +67,10 @@ const props = defineProps({
|
|||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
searchUrl: {
|
||||
type: String,
|
||||
default: 'params',
|
||||
},
|
||||
});
|
||||
|
||||
const searchText = ref('');
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue