From 382591fb11dc7ce5c566f8eb500f15e6a0dca942 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 5 Jun 2024 17:13:52 +0200 Subject: [PATCH] fix: refs #6273 set paymethodFk to 0 if it is external --- src/pages/Worker/WorkerCreate.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/Worker/WorkerCreate.vue b/src/pages/Worker/WorkerCreate.vue index 28ed9ee1c..6a52bc64d 100644 --- a/src/pages/Worker/WorkerCreate.vue +++ b/src/pages/Worker/WorkerCreate.vue @@ -13,10 +13,8 @@ import FetchData from 'components/FetchData.vue'; import FormModel from 'components/FormModel.vue'; import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue'; import VnRadio from 'src/components/common/VnRadio.vue'; -import { useStateStore } from 'src/stores/useStateStore'; const { t } = useI18n(); -const state = useStateStore(); const companiesOptions = ref([]); const workersOptions = ref([]); @@ -72,13 +70,12 @@ onBeforeMount(async () => { v-model="formData.isFreelance" :val="false" :label="`${t('Internal')}`" - @update:model-value="state.set('worker', formData)" /> @@ -150,7 +147,6 @@ onBeforeMount(async () => { v-model="data.fi" :label="t('worker.create.fi')" :rules="validate('Worker.fi')" - :disable="formData.isFreelance" />