fixed bug แจ้งเตือนขยายเวลาวินัย สืสวน สอบสวน

This commit is contained in:
Warunee Tamkoo 2024-01-22 09:58:14 +07:00
parent 6b07c9694c
commit 42253e05df
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ const formData = reactive<FormData>({
const rows = ref([]);
const dateEndInputStyle = computed(() => {
if(formData.investigationDateStart){
const currentDate = new Date(formData.investigationDateStart as Date);
const currentDate = new Date();
const investigationDateEnd = new Date(formData.investigationDateEnd as Date);
const isInNext7Days =

View file

@ -180,9 +180,9 @@ const emit = defineEmits(["submit:disciplinary"]);
const dateEndInputStyle = computed(() => {
if (formData.disciplinaryDateStart) {
const currentDate = new Date(formData.disciplinaryDateStart as Date);
const currentDate = new Date();
const investigationDateEnd = new Date(formData.disciplinaryDateEnd as Date);
const isInNext7Days =
investigationDateEnd >= currentDate &&
investigationDateEnd <=