diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue
index 4c7445aab..e921d8e1f 100644
--- a/src/components/common/VnInput.vue
+++ b/src/components/common/VnInput.vue
@@ -42,10 +42,13 @@ const $props = defineProps({
type: Number,
default: null,
},
+ uppercase: {
+ type: Boolean,
+ default: false,
+ },
});
const vnInputRef = ref(null);
-const showPassword = ref(false);
const value = computed({
get() {
return $props.modelValue;
@@ -117,6 +120,10 @@ const handleInsertMode = (e) => {
input.setSelectionRange(cursorPos + 1, cursorPos + 1);
});
};
+
+const handleUppercase = () => {
+ value.value = value.value?.toUpperCase() || '';
+};
@@ -159,7 +166,16 @@ const handleInsertMode = (e) => {
emit('remove');
}
"
+ >
+
+
+
@@ -170,3 +186,14 @@ const handleInsertMode = (e) => {
+
+
+ en:
+ inputMin: Must be more than {value}
+ maxLength: The value exceeds {value} characters
+ inputMax: Must be less than {value}
+ es:
+ inputMin: Debe ser mayor a {value}
+ maxLength: El valor excede los {value} carácteres
+ inputMax: Debe ser menor a {value}
+
\ No newline at end of file
diff --git a/src/pages/Customer/Card/CustomerFiscalData.vue b/src/pages/Customer/Card/CustomerFiscalData.vue
index aff7deda4..8f2c4efb0 100644
--- a/src/pages/Customer/Card/CustomerFiscalData.vue
+++ b/src/pages/Customer/Card/CustomerFiscalData.vue
@@ -44,6 +44,7 @@ function handleLocation(data, location) {
:required="true"
:rules="validate('client.socialName')"
clearable
+ uppercase="true"
v-model="data.socialName"
>
diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue
index fdfd7ff9c..51788a842 100644
--- a/src/pages/Customer/CustomerList.vue
+++ b/src/pages/Customer/CustomerList.vue
@@ -50,6 +50,14 @@ const columns = computed(() => [
isTitle: true,
create: true,
columnClass: 'expand',
+ attrs: {
+ uppercase: true,
+ },
+ columnFilter: {
+ attrs: {
+ uppercase: false,
+ },
+ },
},
{
align: 'left',
diff --git a/src/pages/Supplier/Card/SupplierFiscalData.vue b/src/pages/Supplier/Card/SupplierFiscalData.vue
index 44235717f..cd80583a7 100644
--- a/src/pages/Supplier/Card/SupplierFiscalData.vue
+++ b/src/pages/Supplier/Card/SupplierFiscalData.vue
@@ -92,6 +92,7 @@ function handleLocation(data, location) {
[
align: 'left',
label: t('globals.name'),
name: 'socialName',
- create: true,
+ attrs: {
+ uppercase: true,
+ },
columnFilter: {
name: 'search',
+ attrs: {
+ uppercase: false,
+ },
},
isTitle: true,
},
@@ -118,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"
- />
+ >
+
+
+
+
diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue
index 48393a8c7..0b784b993 100644
--- a/src/pages/Worker/WorkerList.vue
+++ b/src/pages/Worker/WorkerList.vue
@@ -138,7 +138,11 @@ function uppercaseStreetModel(data) {
return {
get: () => (data.street ? data.street.toUpperCase() : ''),
set: (value) => {
- data.street = value.toUpperCase();
+ if (value) {
+ data.street = value.toUpperCase();
+ } else {
+ data.street = null;
+ }
},
};
}