แก้ bug อนุมัติการลงเวลาพิเศษ

This commit is contained in:
Warunee Tamkoo 2024-01-10 12:36:22 +07:00
parent 0ae36dcccb
commit 914db6dd3b

View file

@ -29,8 +29,8 @@ const props = defineProps({
date: { type: String, default: "" },
dateFix: { type: String, default: "" },
id: { type: String, default: "" },
checkInStatus: { type: String, default: "NORMAL" },
checkOutStatus: { type: String, default: "NORMAL" },
checkInStatus: { type: String, default: "" },
checkOutStatus: { type: String, default: "" },
closeDialog: { type: Function, default: () => {} },
detailData: Object,
});
@ -125,7 +125,6 @@ function close() {
watch(
() => props.modal,
() => {
console.log("props===>", props);
if (props.editCheck === "APPROVE") {
formData.checkIn = "";
formData.checkOut = "";
@ -145,7 +144,7 @@ watch(
!props.detailData.checkInEdit &&
props.detailData.checkOutEdit
) {
formData.checkIn = props.detailData.startAfternoon;
formData.checkIn = props.detailData.startTimeAfternoon;
formData.checkOut = props.detailData.endTimeAfternoon;
}
formData.note = props.detailData.note;