diff --git a/src/pages/Customer/components/CustomerFileManagementCreate.vue b/src/pages/Customer/components/CustomerFileManagementCreate.vue
index c2db63b30..27fb7baa2 100644
--- a/src/pages/Customer/components/CustomerFileManagementCreate.vue
+++ b/src/pages/Customer/components/CustomerFileManagementCreate.vue
@@ -6,6 +6,7 @@ import { useRoute, useRouter } from 'vue-router';
import axios from 'axios';
import { useState } from 'src/composables/useState';
+import { useValidator } from 'src/composables/useValidator';
import useNotify from 'src/composables/useNotify';
import FetchData from 'components/FetchData.vue';
@@ -15,6 +16,7 @@ import VnInput from 'src/components/common/VnInput.vue';
const { notify } = useNotify();
const { t } = useI18n();
+const { validate } = useValidator();
const route = useRoute();
const router = useRouter();
const state = useState();
@@ -125,6 +127,7 @@ const inputFileRef = ref();
{
:url-create="urlCreate"
@on-data-saved="onDataSaved()"
>
-
+
@@ -153,6 +153,7 @@ const onDataSaved = async () => {
:label="t('Company')"
:options="companyOptions"
:required="true"
+ :rules="validate('entry.companyFk')"
hide-selected
option-label="code"
option-value="id"
diff --git a/src/pages/Customer/components/CustomerSamplesCreate.vue b/src/pages/Customer/components/CustomerSamplesCreate.vue
index 1a6eecf40..309326105 100644
--- a/src/pages/Customer/components/CustomerSamplesCreate.vue
+++ b/src/pages/Customer/components/CustomerSamplesCreate.vue
@@ -123,7 +123,7 @@ const onDataSaved = async ({
model="client"
url-create="ClientSamples"
>
-
+