เพิ่ม followSpouseForm

This commit is contained in:
AnandaTon 2023-11-08 15:14:36 +07:00
parent d177859908
commit 89810f47ba
4 changed files with 362 additions and 27 deletions

View file

@ -4,7 +4,7 @@ import { reactive, ref, watch } from "vue"
import SickForm from "@/modules/05_leave/componenst/Forms/01_SickForm.vue"
import HelpWifeBirthForm from "@/modules/05_leave/componenst/Forms/04_HelpWifeBirthForm.vue"
import VacationForm from "@/modules/05_leave/componenst/Forms/05_VacationForm.vue"
import FollowSpouseForm from "@/modules/05_leave/componenst/Forms/12_FollowSpouseForm.vue"
const type = ref<number>(0)
const typeOption = reactive([
{ id: 0, name: "" },
@ -13,6 +13,7 @@ const typeOption = reactive([
{ id: 3, name: "ลาคลอด" },
{ id: 4, name: "ลาไปช่วยเหลือภริยาที่คลอดบุตร" },
{ id: 5, name: "ลาพักผ่อน" },
{ id: 6, name: "ลาติดตามคู่สมรส" },
])
async function onSubmit() {
@ -45,6 +46,7 @@ watch(
<SickForm v-if="type == 1 || type == 2 || type == 3" />
<HelpWifeBirthForm v-if="type == 4" />
<VacationForm v-if="type == 5" />
<FollowSpouseForm v-if="type == 6" />
</div>
</div>