#6273 create freelance form option #347

Merged
jorgep merged 21 commits from 6273-createFreelanceFormOpt into dev 2024-06-10 13:35:00 +00:00
1 changed files with 1 additions and 5 deletions
Showing only changes of commit 382591fb11 - Show all commits

View File

@ -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)"
/>
<VnRadio
v-model="formData.isFreelance"
:val="true"
:label="`${t('External')}`"
@update:model-value="state.set('worker', formData)"
@update:model-value="formData.payMethodFk = 0"
/>
</template>
</VnSubToolbar>
jorgep marked this conversation as resolved Outdated

eliminar valor 0, no se envia esa propiedad si no tiene valor

eliminar valor 0, no se envia esa propiedad si no tiene valor
@ -150,7 +147,6 @@ onBeforeMount(async () => {
v-model="data.fi"
:label="t('worker.create.fi')"
:rules="validate('Worker.fi')"
:disable="formData.isFreelance"
/>
<VnInputDate
v-model="data.birth"