ปรับวินัย

This commit is contained in:
Warunee Tamkoo 2024-01-19 10:51:17 +07:00
parent 58c2bfc467
commit 015d2d9857
9 changed files with 35 additions and 50 deletions

View file

@ -137,10 +137,6 @@ const formData = reactive<FormData>({
});
const rows = ref([]);
const rowsChack = ref([]);
const statusStep = computed(() => {
return route.name === "/discipline-disciplinaryEdit" ? true : false;
});
const dateEndInputStyle = computed(() => {
const currentDate = new Date();
const investigationDateEnd = new Date(formData.investigationDateEnd as Date);
@ -150,7 +146,6 @@ const dateEndInputStyle = computed(() => {
investigationDateEnd <=
new Date(currentDate.getTime() + 7 * 24 * 60 * 60 * 1000);
console.log(isInNext7Days);
return isInNext7Days ? "input-alert" : "";
});
@ -173,7 +168,6 @@ function validateForm() {
* หากยกเลกจะกลบไปหนาฟอร
*/
function onSubmit() {
console.log(formData);
dialogConfirm(
$q,
async () => {
@ -199,9 +193,7 @@ function onSubmit() {
props.onSubmit(formData);
isSave.value = false;
investigationExtendStatus.value = false;
},
"ยืนยันการบันทึกข้อมูล",
"ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"
}
);
}
@ -621,10 +613,10 @@ watch(
);
function calculateMinDate() {
const startDate = new Date(formData.investigationDateStart as Date);
startDate.setDate(startDate.getDate() + 1);
return startDate;
}
const startDate = new Date(formData.investigationDateStart as Date);
startDate.setDate(startDate.getDate() + 1);
return startDate;
}
onMounted(async () => {
mainStore.rowsAdd = [];
@ -1020,7 +1012,12 @@ onMounted(async () => {
</q-icon>
</template>
<template
v-if="formData.investigationDateStart && isReadonly === false && formData.investigationExtendHistory.length === 0"
v-if="
formData.investigationDateStart &&
isReadonly === false &&
formData.investigationExtendHistory
.length === 0
"
v-slot:append
>
<q-icon
@ -1093,7 +1090,12 @@ onMounted(async () => {
</q-icon>
</template>
<template
v-if="formData.investigationDateEnd && isReadonly === false && formData.investigationExtendHistory.length === 0"
v-if="
formData.investigationDateEnd &&
isReadonly === false &&
formData.investigationExtendHistory
.length === 0
"
v-slot:append
>
<q-icon
@ -1277,7 +1279,6 @@ onMounted(async () => {
:options="mainStore.statusResultOptions"
label="ผลการสืบสวน"
emit-value
map-options
option-label="name"
option-value="id"