fixed#322

This commit is contained in:
Warunee Tamkoo 2023-12-08 17:44:53 +07:00
parent fb6f6ee6bf
commit 24ec62633a
4 changed files with 8 additions and 8 deletions

View file

@ -106,7 +106,7 @@ const formData = reactive<FremDetail>({
ordainDayOrdination: new Date(), // ()
ordainDayBuddhistLentName: "", // ()
ordainDayBuddhistLentAddress: "", // ()
hajjDayStatus: "", /// () ()
hajjDayStatus: "", /// () ()
absentDaySummon: "", // ()
absentDayLocation: "", // ()
absentDayRegistorDate: new Date(), // ()
@ -201,7 +201,7 @@ async function fetchDataDetail(id: string) {
formData.ordainDayBuddhistLentAddress = data.ordainDayBuddhistLentAddress;
formData.hajjDayStatus = data.hajjDayStatus
? "เคย"
: "ไม่เคยไปประกอบพิธีฮัจ์";
: "ไม่เคยไปประกอบพิธีฮัจ์";
formData.absentDaySummon = data.absentDaySummon;
formData.absentDayLocation = data.absentDayLocation;
formData.absentDayRegistorDate =
@ -256,7 +256,7 @@ function checkLeaveType(leaveTypeId: string, leaveTypeName: string) {
checkForm.value = "FormHoliday";
} else if (type === "LV-006") {
checkForm.value = "FormUpasom";
} else if (type === "LV-006" && leaveTypeName === "พิธีฮัจ์ฯ") {
} else if (type === "LV-006" && leaveTypeName === "พิธีฮัจ์ฯ") {
checkForm.value = "FormHajj";
} else if (type === "LV-007") {
checkForm.value = "FormCheckSelect";
@ -399,7 +399,7 @@ watch(
<!-- ลาอปสมบท -->
<FormUpasom v-else-if="checkForm === 'FormUpasom'" :data="formData" />
<!-- ลาประกอบพ -->
<!-- ลาประกอบพ -->
<FormHajj v-else-if="checkForm === 'FormHajj'" :data="formData" />
<!-- ลาเขารบการตรวจเลอกหรอเขารบการเตรยมพล -->

View file

@ -39,7 +39,7 @@ const props = defineProps({
<div class="col">{{ props.data.leavegovernmentDate }}</div>
</div>
<div class="row">
<div class="col text-grey-8">เคย/ไมเคยไปประกอบพ</div>
<div class="col text-grey-8">เคย/ไมเคยไปประกอบพ</div>
<div class="col">{{ props.data.hajjDayStatus ? "เคย" : "ไม่เคย" }}</div>
</div>
<div class="row">

View file

@ -53,7 +53,7 @@ interface FremDetail {
ordainDayOrdination: Date; //สถานที่บวช วันอุปสมบท(ลาอุปสมบท)
ordainDayBuddhistLentName: string; //สถานที่จำพรรษา ชื่อวัด(ลาอุปสมบท)
ordainDayBuddhistLentAddress: string; //สถานที่จำพรรษา ที่อยู่(ลาอุปสมบท)
hajjDayStatus: string; //เคย/ไม่เคยไปประกอบพิธีฮัจย์ (ให้เลือก) (ลาประกอบพิธีฮัจย์)
hajjDayStatus: string; //เคย/ไม่เคยไปประกอบพิธีฮัจญ์ (ให้เลือก) (ลาประกอบพิธีฮัจญ์)
absentDaySummon: string; //ได้รับหมายเรียกของ (ลาเข้ารับการตรวจเลือกหรือเข้ารับการเตรียมพล)
absentDayLocation: string; //ที่ (ลาเข้ารับการตรวจเลือกหรือเข้ารับการเตรียมพล)
absentDayRegistorDate: Date; //ลงวันที่ (ลาเข้ารับการตรวจเลือกหรือเข้ารับการเตรียมพล)

View file

@ -188,7 +188,7 @@ export const useLeaveStore = defineStore("Leave", () => {
}
/**
* /
* /
* @param val string
* @returns
*/
@ -197,7 +197,7 @@ export const useLeaveStore = defineStore("Leave", () => {
}
/**
* /
* /
* @param val string
* @returns
*/