diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue
index c45f7d073..e921d8e1f 100644
--- a/src/components/common/VnInput.vue
+++ b/src/components/common/VnInput.vue
@@ -49,15 +49,11 @@ const $props = defineProps({
});
const vnInputRef = ref(null);
-const showPassword = ref(false);
const value = computed({
get() {
return $props.modelValue;
},
set(value) {
- if ($props.uppercase && typeof value === 'string') {
- value = value.toUpperCase();
- }
if ($props.emptyToNull && value === '') value = null;
emit('update:modelValue', value);
},
@@ -124,6 +120,10 @@ const handleInsertMode = (e) => {
input.setSelectionRange(cursorPos + 1, cursorPos + 1);
});
};
+
+const handleUppercase = () => {
+ value.value = value.value?.toUpperCase() || '';
+};
@@ -166,7 +166,16 @@ const handleInsertMode = (e) => {
emit('remove');
}
"
+ >
+
+
+
@@ -177,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 037940ffa..51788a842 100644
--- a/src/pages/Customer/CustomerList.vue
+++ b/src/pages/Customer/CustomerList.vue
@@ -53,6 +53,11 @@ const columns = computed(() => [
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) {
[
uppercase: true,
},
columnFilter: {
- name: 'search',attrs: {
- uppercase: false,
- },
+ name: 'search',
+ attrs: {
+ uppercase: false,
+ },
},
isTitle: true,
},