diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue
index bfd0dea40..9684dcc32 100644
--- a/src/components/common/VnInput.vue
+++ b/src/components/common/VnInput.vue
@@ -12,14 +12,6 @@ const $props = defineProps({
type: Boolean,
default: false,
},
- label: {
- type: String,
- default: '',
- },
- required: {
- type: Boolean,
- default: false,
- },
});
const value = computed({
@@ -47,8 +39,8 @@ const styleAttrs = computed(() => {
ref="vnInputRef"
v-model="value"
v-bind="{ ...$attrs, ...styleAttrs }"
- :label="required ? label + ' *' : label"
type="text"
+ :class="{ required: $attrs.required }"
>
@@ -58,3 +50,10 @@ const styleAttrs = computed(() => {
+
+
diff --git a/src/components/common/VnSelectCreate.vue b/src/components/common/VnSelectCreate.vue
index cdfb0bfbd..bdc3f5cc8 100644
--- a/src/components/common/VnSelectCreate.vue
+++ b/src/components/common/VnSelectCreate.vue
@@ -20,14 +20,6 @@ const $props = defineProps({
type: Array,
default: () => ['developer'],
},
- label: {
- type: String,
- default: '',
- },
- required: {
- type: Boolean,
- default: false,
- },
});
const role = useRole();
@@ -52,13 +44,7 @@ const toggleForm = () => {
-
+
+
+
diff --git a/src/pages/Entry/EntryCreate.vue b/src/pages/Entry/EntryCreate.vue
index fc725447c..37cfea1ad 100644
--- a/src/pages/Entry/EntryCreate.vue
+++ b/src/pages/Entry/EntryCreate.vue
@@ -67,7 +67,7 @@ const companiesOptions = ref([]);
option-value="id"
option-label="nickname"
hide-selected
- required
+ :required="true"
:rules="validate('entry.supplierFk')"
>
@@ -92,7 +92,7 @@ const companiesOptions = ref([]);
option-label="warehouseInName"
map-options
hide-selected
- required
+ :required="true"
:rules="validate('entry.travelFk')"
>
@@ -121,6 +121,7 @@ const companiesOptions = ref([]);
option-label="code"
map-options
hide-selected
+ :required="true"
:rules="validate('entry.companyFk')"
/>
@@ -134,4 +135,4 @@ const companiesOptions = ref([]);
Supplier: Proveedor
Travel: EnvĂo
Company: Empresa
-
+