diff --git a/src/components/Dialogs/DialogOrgSelect.vue b/src/components/Dialogs/DialogOrgSelect.vue index 360819b57..f340554db 100644 --- a/src/components/Dialogs/DialogOrgSelect.vue +++ b/src/components/Dialogs/DialogOrgSelect.vue @@ -147,7 +147,6 @@ const columns = ref([ style: "font-size: 14px", }, ]); - const columnsPostition = ref([ { name: "no", @@ -222,7 +221,6 @@ const columnsPostition = ref([ style: "font-size: 14px", }, ]); - const visibleColumns = ref([ "isPosition", "no", @@ -505,7 +503,7 @@ function onSubmit() { posmasterId: dataPosMaster.id, typeCommand: type.value, }; - props.onSubmit?.(body); + await props.onSubmit?.(body); close(); }); } diff --git a/src/modules/02_organization/components/StructureMain.vue b/src/modules/02_organization/components/StructureMain.vue index c6da85fa5..626fc5c24 100644 --- a/src/modules/02_organization/components/StructureMain.vue +++ b/src/modules/02_organization/components/StructureMain.vue @@ -8,7 +8,9 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import { useOrganizational } from "@/modules/02_organization/store/organizational"; +import { useStructStore } from "@/modules/02_organization/store/chart"; +const storeOrg = useStructStore(); const $q = useQuasar(); const mixin = useCounterMixin(); const store = useOrganizational(); diff --git a/src/modules/02_organization/components/StructureOrgMain.vue b/src/modules/02_organization/components/StructureOrgMain.vue index 817b36c4e..4eaf3a801 100644 --- a/src/modules/02_organization/components/StructureOrgMain.vue +++ b/src/modules/02_organization/components/StructureOrgMain.vue @@ -1,5 +1,5 @@ @@ -158,6 +165,7 @@ onMounted(async () => {
{ + const dataSource = ref(); + return { + dataSource, + }; +}); diff --git a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue index 5281e2bde..d63855eba 100644 --- a/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue +++ b/src/modules/04_registryPerson/components/Dialog/DialogUpdate.vue @@ -111,6 +111,43 @@ async function closeDialog() { modal.value = false; count.value = 0; childData.value = []; + + formInformations.bloodGroup = null; + formInformations.relationship = null; + formInformations.gender = null; + formInformations.religion = null; + formInformations.citizenId = ""; + formInformations.nationality = null; + formInformations.ethnicity = null; + formInformations.birthDate = null; + formInformations.phone = null; + formInformations.lastName = ""; + formInformations.firstName = ""; + formInformations.prefix = ""; + formInformations.rank = null; + + fatherData.isLive = 1; + fatherData.citizenId = ""; + fatherData.prefix = ""; + fatherData.firstName = ""; + fatherData.lastName = ""; + fatherData.job = ""; + + motherData.isLive = 1; + motherData.citizenId = ""; + motherData.prefix = ""; + motherData.firstName = ""; + motherData.lastName = ""; + motherData.job = ""; + + coupleData.isLive = 1; + coupleData.citizenId = ""; + coupleData.prefix = ""; + coupleData.firstName = ""; + coupleData.lastName = ""; + coupleData.job = ""; + coupleData.lastNameOld = ""; + coupleData.statusMarital = ""; } /** อัพเดตข้อมูลส่วนตัว */ @@ -161,9 +198,13 @@ async function upDateAddress() { async function upDateFamily() { await saveFather(); await saveMother(); - await saveCouple(); - for (const child of childData.value) { - await saveChildren(child); + if (coupleData.citizenId !== "") { + await saveCouple(); + } + if (childData.value.length !== 0) { + for (const child of childData.value) { + await saveChildren(child); + } } count.value + 1; } diff --git a/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue b/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue index 006088263..e14af72f0 100644 --- a/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue +++ b/src/modules/04_registryPerson/components/requestEdit/01_TabInformation.vue @@ -378,7 +378,7 @@ onMounted(() => { color="primary" @click.pervent="onDownloadFile(props.row.id)" > - หลักฐานอ้างอิง + ดาวน์โหลดเอกสารหลักฐาน
diff --git a/src/modules/04_registryPerson/components/requestEdit/02_TabIDP.vue b/src/modules/04_registryPerson/components/requestEdit/02_TabIDP.vue index b5e6946f5..76cc47a86 100644 --- a/src/modules/04_registryPerson/components/requestEdit/02_TabIDP.vue +++ b/src/modules/04_registryPerson/components/requestEdit/02_TabIDP.vue @@ -276,7 +276,6 @@ watch( } ); - /** HooK lifecycle ทำงานเมื่อมีการเรียกใช้งาน Componenets*/ onMounted(() => { fetchData(); @@ -402,7 +401,7 @@ onMounted(() => { color="primary" @click.pervent="onDownloadFile(props.row.id)" > - หลักฐานอ้างอิง + ดาวน์โหลดเอกสารหลักฐาน
diff --git a/src/modules/04_registryPerson/components/requestEdit/Dialog02_EditIDP.vue b/src/modules/04_registryPerson/components/requestEdit/Dialog02_EditIDP.vue index cca2245ed..a84e7643c 100644 --- a/src/modules/04_registryPerson/components/requestEdit/Dialog02_EditIDP.vue +++ b/src/modules/04_registryPerson/components/requestEdit/Dialog02_EditIDP.vue @@ -252,18 +252,18 @@ watch(modal, (val) => { diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 0ff124053..802fb1f6e 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -812,6 +812,7 @@ onMounted(async () => { : formDetail.prefix ?? "" }${formDetail.firstName} ${formDetail.lastName}` }} + {{ leaveReason }}
diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index a3363d966..a7b9e4927 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -744,7 +744,8 @@ function onSubmitDate() { function openModalOrder(val: boolean) { // ยังไม่ได้ดัก ส่ง ไป ทั้ง object #e.draft == "รอส่งตัว" && rowsOrder.value = rows.value.filter( - (e: any) => e.nodeName !== null && e.reportingDate !== null + (e: any) => + e.nodeName !== null && e.reportingDate !== null && e.statusId !== "REPORT" ); modalOrder.value = val; } @@ -808,6 +809,7 @@ onMounted(async () => { { await fecthlistRecevice(); diff --git a/src/modules/08_registryEmployee/components/DialogAddEmployee.vue b/src/modules/08_registryEmployee/components/DialogAddEmployee.vue index 92293ff14..c3b3b0a01 100644 --- a/src/modules/08_registryEmployee/components/DialogAddEmployee.vue +++ b/src/modules/08_registryEmployee/components/DialogAddEmployee.vue @@ -414,7 +414,7 @@ watch( " label="วัน/เดือน/ปี เกิด" :rules="[ - (val) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`, + (val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`, ]" >