feat: refs #8258 added uppercase validation on supplier create
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
PAU ROVIRA ROSALENY 2025-01-17 13:19:12 +01:00
parent 11e05433b8
commit 32909a96bd
1 changed files with 7 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import VnTable from 'components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import RightMenu from 'src/components/common/RightMenu.vue';
import SupplierListFilter from './SupplierListFilter.vue';
import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n();
const tableRef = ref();
@ -23,7 +24,6 @@ const columns = computed(() => [
align: 'left',
label: t('globals.name'),
name: 'socialName',
create: true,
attrs: {
uppercase: true,
},
@ -124,14 +124,18 @@ const columns = computed(() => [
formInitialData: {},
mapper: (data) => {
data.name = data.socialName;
delete data.socialName;
return data;
},
}"
:right-search="false"
order="id ASC"
:columns="columns"
/>
>
<template #more-create-dialog="{ data }">
<VnInput :label="t('globals.name')" v-model="data.socialName" :uppercase="true" />
</template>
</VnTable>
</template>
<i18n>