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

View file

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

View file

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