diff --git a/src/components/common/VnRadio.vue b/src/components/common/VnRadio.vue
new file mode 100644
index 000000000..4eeb9dbe9
--- /dev/null
+++ b/src/components/common/VnRadio.vue
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/src/pages/Worker/WorkerCreate.vue b/src/pages/Worker/WorkerCreate.vue
index 4147201e1..28ed9ee1c 100644
--- a/src/pages/Worker/WorkerCreate.vue
+++ b/src/pages/Worker/WorkerCreate.vue
@@ -1,5 +1,5 @@
onFetchWorkerConfig(data)"
+ @on-fetch="(data) => (formData.payMethodFk = data.payMethodFk)"
:filter="{ field: ['payMethodFk'] }"
auto-load
/>
@@ -93,15 +68,21 @@ onMounted(async () => {
-
-
+
+
-
+
{
v-model="data.fi"
:label="t('worker.create.fi')"
:rules="validate('Worker.fi')"
- :disable="isFreelancer"
+ :disable="formData.isFreelance"
/>
@@ -191,7 +172,7 @@ onMounted(async () => {
:options="postcodesOptions"
v-model="data.location"
@update:model-value="(location) => handleLocation(data, location)"
- :disable="isFreelancer"
+ :disable="formData.isFreelance"
>
@@ -200,7 +181,7 @@ onMounted(async () => {
:label="t('worker.create.street')"
v-model="data.street"
:rules="validate('Worker.street')"
- :disable="isFreelancer"
+ :disable="formData.isFreelance"
/>
@@ -213,13 +194,13 @@ onMounted(async () => {
map-options
hide-selected
:rules="validate('Worker.payMethodFk')"
- :disable="isFreelancer"
+ :disable="formData.isFreelance"
/>
@@ -236,11 +217,11 @@ onMounted(async () => {
hide-selected
:roles-allowed-to-create="['salesAssistant', 'hr']"
:rules="validate('Worker.bankEntity')"
- :disable="isFreelancer"
+ :disable="formData.isFreelance"
>
bankEntitiesOptions.push(data)"
/>