แก้ไขตาม task

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-06 13:32:54 +07:00
parent bf8fb777cf
commit 90a47d43ad
26 changed files with 2652 additions and 228 deletions

View file

@ -67,15 +67,26 @@ const props = defineProps({
</div> -->
<div class="col q-pl-xl">
<q-card class="q-pt-xs">
<div class="header-text-right q-px-xs">ผลการสอบ</div>
<div class="sub-text-right q-px-xs q-pb-sm">{{ props.data.pass }}</div>
<div class="header-text-right q-px-xs">ลำดบทสอบได</div>
<div class="sub-text-right q-px-xs q-pb-sm">
{{ props.data.examNumber }}
</div>
<div class="header-text-right q-px-xs">จำนวนครงทสมครสอบ</div>
<div class="sub-text-right q-px-xs q-pb-sm">
{{ props.data.examRound }}
<div class="row">
<div class="col">
<div class="header-text-right q-px-xs">ผลการสอบ</div>
<div class="sub-text-right q-px-xs q-pb-sm">
{{ props.data.pass ? props.data.pass : "-" }}
</div>
</div>
<div class="col">
<div class="header-text-right q-px-xs">ลำดบทสอบได</div>
<div class="sub-text-right q-px-xs q-pb-sm">
{{ props.data.examNumber ? props.data.examNumber : "-" }}
</div>
</div>
<div class="col">
<div class="header-text-right q-px-xs">จำนวนครงทสมครสอบ</div>
<div class="sub-text-right q-px-xs q-pb-sm">
{{ props.data.examRound ? props.data.examRound : "-" }}
</div>
</div>
</div>
</q-card>
</div>

View file

@ -0,0 +1,276 @@
<template>
<q-card flat bordered class="col-12 row q-px-lg q-py-md">
<HeaderTop
v-model:edit="edit"
header="เอกสารหลักฐาน"
icon="mdi-file-document"
:history="false"
:changeBtn="changeBtn"
:disable="statusEdit"
:save="uploadData"
/>
<div class="row col-12 q-pt-sm">
<q-card bordered flat class="full-width">
<q-list separator>
<q-item v-for="file in files" :key="file.key" class="q-my-xs">
<q-item-section>
<q-item-label class="full-width ellipsis">
{{ file.fileName }}
</q-item-label>
<q-item-label caption> </q-item-label>
</q-item-section>
<q-item-section top side>
<div class="row col-12">
<q-btn
class="gt-xs"
size="12px"
flat
dense
round
color="blue"
icon="mdi-download-outline"
@click="downloadData(file.file)"
>
<q-tooltip>ดาวนโหลดเอกสารหลกฐาน</q-tooltip>
</q-btn>
<q-btn
class="gt-xs"
size="12px"
flat
dense
round
color="red"
icon="mdi-delete-outline"
v-show="edit"
@click="deleteData(file.id)"
>
<q-tooltip>ลบเอกสารหลกฐาน</q-tooltip>
</q-btn>
</div>
</q-item-section>
</q-item>
</q-list>
</q-card>
<q-input
v-if="edit"
class="q-mt-sm col-12 q-pb-xs"
outlined
dense
lazy-rules
v-model="name"
hide-bottom-space
:rules="[(val) => !!val || `${'กรุณากรอกชื่อเอกสาร'}`]"
:label="`${'ชื่อเอกสาร'}`"
/>
<q-uploader
v-if="edit"
color="gray"
type="file"
flat
@factory="uploadData"
ref="uploader"
class="full-width"
text-color="white"
:max-size="10000000"
accept=".jpg,.png,.pdf,.csv,.docx,.doc"
bordered
@added="fileAdd"
>
<template v-slot:header="scope">
<div class="row no-wrap items-center q-pa-sm q-gutter-xs">
<q-btn
v-if="scope.queuedFiles.length > 0"
icon="clear_all"
@click="scope.removeQueuedFiles"
round
dense
flat
>
<q-tooltip>ลบทงหมด</q-tooltip>
</q-btn>
<q-btn
v-if="scope.uploadedFiles.length > 0"
icon="done_all"
@click="scope.removeUploadedFiles"
round
dense
flat
>
<q-tooltip>ลบไฟลปโหลด</q-tooltip>
</q-btn>
<q-spinner v-if="scope.isUploading" class="q-uploader__spinner" />
<div class="col">
<div class="q-uploader__title">
{{ "[ไฟล์ jpg,png,pdf,csv,docx ขนาดไม่เกิน 10MB]" }}
</div>
<div class="q-uploader__subtitle">
{{ scope.uploadSizeLabel }} / {{ scope.uploadProgressLabel }}
</div>
</div>
<q-btn
v-if="scope.canAddFiles"
type="a"
icon="add_box"
@click="scope.pickFiles"
round
dense
flat
>
<q-uploader-add-trigger />
<q-tooltip>เลอกไฟล</q-tooltip>
</q-btn>
<q-btn
v-if="scope.isUploading"
icon="clear"
@click="scope.abort"
round
dense
flat
>
<q-tooltip>ยกเลกการอปโหลด</q-tooltip>
</q-btn>
</div>
</template>
</q-uploader>
</div>
</q-card>
</template>
<script setup lang="ts">
import { onMounted, computed, ref, watch } from "vue";
import { useQuasar, QForm } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import { useRoute } from "vue-router";
import HeaderTop from "@/modules/04_registry/components/Information/top.vue";
import http from "@/plugins/http";
import config from "@/app.config";
const props = defineProps({
statusEdit: {
type: Boolean,
required: true,
},
notiNoEdit: {
type: Function,
default: () => console.log("not function"),
},
fetch: {
type: Function,
default: () => console.log("not function"),
},
});
const emit = defineEmits(["update:statusEdit"]);
const $q = useQuasar(); // show dialog
const mixin = useCounterMixin();
const route = useRoute();
const { success, messageError, showLoader, hideLoader } = mixin;
const profileId = ref<string>(
route.params.id ? route.params.id.toString() : ""
);
const edit = ref<boolean>(false);
const uploader = ref<any>();
const files = ref<any>([]);
const file = ref<any>([]);
const name = ref<string>("");
onMounted(async () => {
await getData();
// props.fetch()
});
const getData = async () => {
if (profileId.value) {
showLoader();
await http
.get(config.API.profilePaperId(profileId.value))
.then((res) => {
const data = res.data.result;
files.value = data;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
};
const deleteData = async (id: string) => {
showLoader();
await http
.delete(config.API.profilePaperId(id))
.then((res) => {
const data = res.data.result;
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
await getData();
});
};
const uploadData = async () => {
if (profileId.value) {
if (file.value.length > 0) {
const blob = file.value.slice(0, file.value[0].size);
const newFile = new File(blob, name.value, {
type: file.value[0].type,
});
const formData = new FormData();
formData.append("avatar", newFile);
formData.append("moss", "newFile");
showLoader();
await http
.post(config.API.profilePaperId(profileId.value), formData)
.then((res) => {
const data = res.data.result;
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
uploader.value.reset();
name.value = "";
edit.value = false;
emit("update:statusEdit", false);
await getData();
});
} else {
// modalError(
// $q,
// "",
// ""
// );
getData();
}
}
};
const fileAdd = async (val: any) => {
name.value = val[0].name;
file.value = val;
};
const downloadData = async (path: string) => {
window.open(path);
};
const changeBtn = async () => {
name.value = "";
if (edit.value == true) {
if (props.statusEdit === true) {
edit.value = false;
props.notiNoEdit();
} else {
emit("update:statusEdit", true);
}
} else {
emit("update:statusEdit", false);
}
};
</script>

View file

@ -342,8 +342,9 @@ onMounted(async () => {
<span class="text-primary q-pr-sm">{{
"ครั้งที่ " + round
}}</span>
ระหวางวนท
<span class="text-black q-px-sm">
</div>
<div class="col-12 text-top0 row items-center">
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="start_date"
@ -367,8 +368,8 @@ onMounted(async () => {
:model-value="
start_date != null ? date2Thai(start_date) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ระหว่างวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -381,9 +382,8 @@ onMounted(async () => {
</q-input>
</template>
</datepicker>
</span>
งวนท
<span class="text-black q-px-sm">
</div>
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="date_finish"
@ -407,8 +407,8 @@ onMounted(async () => {
:model-value="
date_finish != null ? date2Thai(date_finish) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ถึงวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -421,7 +421,7 @@ onMounted(async () => {
</q-input>
</template>
</datepicker>
</span>
</div>
</div>
<div class="col-12 q-pt-md">
<q-separator size="3px" color="grey-2" />

View file

@ -453,8 +453,9 @@ watch(lengthdiscipline_level, (newLength) => {
<span class="text-primary q-pr-sm">{{
`ครั้งที่ ${evaluate_no}`
}}</span>
ระหวางวนท
<span class="text-black q-px-sm">
</div>
<div class="col-12 text-top0 row items-center">
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="start_date"
@ -478,8 +479,8 @@ watch(lengthdiscipline_level, (newLength) => {
:model-value="
start_date != null ? date2Thai(start_date) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ระหว่างวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -492,9 +493,8 @@ watch(lengthdiscipline_level, (newLength) => {
</q-input>
</template>
</datepicker>
</span>
งวนท
<span class="text-black q-px-sm">
</div>
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="date_finish"
@ -518,8 +518,8 @@ watch(lengthdiscipline_level, (newLength) => {
:model-value="
date_finish != null ? date2Thai(date_finish) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ถึงวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -532,7 +532,7 @@ watch(lengthdiscipline_level, (newLength) => {
</q-input>
</template>
</datepicker>
</span>
</div>
</div>
<div class="col-12 q-pt-md">
<q-separator size="3px" color="grey-2" />

View file

@ -398,8 +398,9 @@ const getBordered = (i: boolean) => {
นทกผล<span class="text-primary q-pr-sm">{{
"ครั้งที่ " + round
}}</span>
ระหวางวนท
<span class="text-black q-px-sm">
</div>
<div class="col-12 text-top0 row items-center">
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="start_date"
@ -423,8 +424,8 @@ const getBordered = (i: boolean) => {
:model-value="
start_date != null ? date2Thai(start_date) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ระหว่างวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -437,9 +438,8 @@ const getBordered = (i: boolean) => {
</q-input>
</template>
</datepicker>
</span>
งวนท
<span class="text-black q-px-sm">
</div>
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="date_finish"
@ -463,8 +463,8 @@ const getBordered = (i: boolean) => {
:model-value="
date_finish != null ? date2Thai(date_finish) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ถึงวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -477,7 +477,7 @@ const getBordered = (i: boolean) => {
</q-input>
</template>
</datepicker>
</span>
</div>
</div>
<div class="col-12 q-pt-md">
<q-separator size="3px" color="grey-2" />

View file

@ -406,8 +406,9 @@ onMounted(async () => {
นทกผล<span class="text-primary q-pr-sm">{{
"ครั้งที่ " + round
}}</span>
ระหวางวนท
<span class="text-black q-px-sm">
</div>
<div class="col-12 text-top0 row items-center">
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="start_date"
@ -431,8 +432,8 @@ onMounted(async () => {
:model-value="
start_date != null ? date2Thai(start_date) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ระหว่างวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -445,9 +446,8 @@ onMounted(async () => {
</q-input>
</template>
</datepicker>
</span>
งวนท
<span class="text-black q-px-sm">
</div>
<div class="col-6 q-px-sm">
<datepicker
menu-class-name="modalfix"
v-model="date_finish"
@ -471,8 +471,8 @@ onMounted(async () => {
:model-value="
date_finish != null ? date2Thai(date_finish) : null
"
:label="`${'งวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
:label="`${'ถึงวันที่'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
>
<template v-slot:prepend>
<q-icon
@ -485,7 +485,7 @@ onMounted(async () => {
</q-input>
</template>
</datepicker>
</span>
</div>
</div>
<div class="col-12 q-pt-md">
<q-separator size="3px" color="grey-2" />

View file

@ -2,7 +2,7 @@
import { ref, onMounted, computed, watch } from "vue";
import AddList from "../ListRetirement/AddList.vue";
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar } from "quasar";
import { useQuasar, QForm } from "quasar";
import { useRoute } from "vue-router";
import { useRouter } from "vue-router";
import http from "@/plugins/http";
@ -21,7 +21,9 @@ const {
success,
dialogConfirm,
dialogRemove,
date2Thai,
} = mixin;
const myForm = ref<QForm | null>(null);
const retireld_params = route.params.retirementId;
const modalNote = ref<boolean>(false);
@ -33,9 +35,9 @@ const filter = ref<string>("");
const statusUpload = ref<boolean>();
const modalEdit = ref<boolean>(false);
const textReport = ref<string>("");
const employeeType = ref<string>("OFFICER")
const employeeType = ref<string>("OFFICER");
const columns = ref<any["columns"]>([])
const columns = ref<any["columns"]>([]);
const rows = ref<any>([]);
const visibleColumns = ref<string[]>([
"order",
@ -62,6 +64,7 @@ onMounted(() => {
const closeDialog = () => {
modalNote.value = false;
modalUpload.value = false;
};
const round = ref<number>();
const typeReport = ref<string>("");
@ -87,10 +90,22 @@ const fecthlistprofile = async (id: string) => {
order: e.order,
name: e.fullName,
organizationOrganization: e.organizationOrganization,
positionEmployeePosition: res.data.result.type == 'OFFICER' ? e.positionType : e.positionEmployeePosition,
positionEmployeeLevel: res.data.result.type == 'OFFICER' ? (e.positionExecutive != null ? e.positionExecutive : "-") : e.positionEmployeeLevel,
positionNumber: res.data.result.type == 'OFFICER' ? e.posNo : e.posNoEmployee,
positionEmployeeGroup: res.data.result.type == 'OFFICER' ? e.position : e.positionEmployeeGroup,
positionEmployeePosition:
res.data.result.type == "OFFICER"
? e.positionType
: e.positionEmployeePosition,
positionEmployeeLevel:
res.data.result.type == "OFFICER"
? e.positionExecutive != null
? e.positionExecutive
: "-"
: e.positionEmployeeLevel,
positionNumber:
res.data.result.type == "OFFICER" ? e.posNo : e.posNoEmployee,
positionEmployeeGroup:
res.data.result.type == "OFFICER"
? e.position
: e.positionEmployeeGroup,
organizationAgency: e.organizationAgency,
organizationGovernmentAgency: e.organizationGovernmentAgency,
bureau: e.oc,
@ -136,7 +151,10 @@ const fecthlistprofile = async (id: string) => {
{
name: "positionEmployeeGroup",
align: "left",
label: employeeType.value == "OFFICER" ? "ตำแหน่ง (ในสายงาน/ระดับ)" : "กลุ่มงาน",
label:
employeeType.value == "OFFICER"
? "ตำแหน่ง (ในสายงาน/ระดับ)"
: "กลุ่มงาน",
title: employeeType.value == "OFFICER" ? "ตำแหน่ง" : "กลุ่มงาน",
subtitle: employeeType.value == "OFFICER" ? "ในสายงาน/ระดับ" : "",
field: "positionEmployeeGroup",
@ -146,7 +164,8 @@ const fecthlistprofile = async (id: string) => {
{
name: "positionEmployeePosition",
align: "left",
label: employeeType.value == "OFFICER" ? "ตำแหน่ง (ประเภท)" : "ตำแหน่ง",
label:
employeeType.value == "OFFICER" ? "ตำแหน่ง (ประเภท)" : "ตำแหน่ง",
title: employeeType.value == "OFFICER" ? "ตำแหน่ง" : "ตำแหน่ง",
subtitle: employeeType.value == "OFFICER" ? "ประเภท" : "",
field: "positionEmployeePosition",
@ -156,7 +175,10 @@ const fecthlistprofile = async (id: string) => {
{
name: "positionEmployeeLevel",
align: "left",
label: employeeType.value == "OFFICER" ? "ตำแหน่ง (ทางการบริหาร)" : "ระดับชั้น",
label:
employeeType.value == "OFFICER"
? "ตำแหน่ง (ทางการบริหาร)"
: "ระดับชั้น",
title: employeeType.value == "OFFICER" ? "ตำแหน่ง" : "ระดับชั้น",
subtitle: employeeType.value == "OFFICER" ? "ทางการบริหาร" : "",
field: "positionEmployeeLevel",
@ -287,25 +309,46 @@ const visibleNote = computed(() => {
}
});
//
const uploadFile = async (event: any) => {
showLoader();
const selectedFile = event;
const formdata = new FormData();
formdata.append("file", selectedFile);
await http
.put(config.API.fileRetirement(retireld.value.toString()), formdata)
.then(() => {
success($q, "เพิ่มไฟล์สำเร็จ");
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
fileUpload.value = null;
fecthlistprofile(retireld.value);
fecthCheck(retireld.value);
hideLoader();
const modalUpload = ref<boolean>(false);
const signDate = ref<Date | null>(null);
const uploadFile = async (event: any, signDate: any) => {
if (myForm.value !== null) {
myForm.value.validate().then((successmyForm) => {
if (successmyForm) {
dialogConfirm(
$q,
async () => {
showLoader();
const selectedFile = event;
const formdata = new FormData();
formdata.append("file", selectedFile);
formdata.append("signDate", signDate);
await http
.put(
config.API.fileRetirement(retireld.value.toString()),
formdata
)
.then(() => {
success($q, "เพิ่มไฟล์สำเร็จ");
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
fileUpload.value = null;
signDate.value = null;
modalUpload.value = false;
fecthlistprofile(retireld.value);
fecthCheck(retireld.value);
hideLoader();
});
},
"ยืนยันการอัปโหลดเอกสาร",
"ต้องการยืนยันการอัปโหลดเอกสารนี้หรือไม่ ?"
);
}
});
}
};
// downloadAttachment
const downloadAttachment = async (type: string, id: string) => {
@ -382,69 +425,159 @@ const paginationLabel = (start: number, end: number, total: number) => {
<template>
<div class="toptitle text-dark col-12 row items-center">
<q-btn icon="mdi-arrow-left" unelevated round dense flat color="primary" class="q-mr-sm" @click="backHistory" />
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="backHistory"
/>
รายชอผเกษยณอายราชการ
</div>
<div>
<q-card class="col-12 q-pa-md">
<div class="row col-12 q-pb-sm">
<div class="row">
<AddList :dataProfile="dataProfile" :retireld="retireld" :profile-id="profileId" :UpdateListId="UpdateListId"
v-if="statusReport === false &&
<AddList
:dataProfile="dataProfile"
:retireld="retireld"
:profile-id="profileId"
:UpdateListId="UpdateListId"
v-if="
statusReport === false &&
(typeReport == 'ADD' || typeReport == '' || typeReport == null) &&
statusUpload !== true
" />
"
/>
<q-btn color="primary" flat round icon="mdi-dots-vertical">
<q-menu>
<q-list style="min-width: 100px">
<q-item clickable v-close-popup type="a" @click="openmodalEditReport()" target="_blank">
<q-item-section avatar><q-icon color="primary" name="mdi-pencil" /></q-item-section>
<q-item
clickable
v-close-popup
type="a"
@click="modalUpload = true,signDate = null,fileUpload = null"
target="_blank"
v-if="statusUpload !== true"
>
<q-item-section avatar
><q-icon color="blue" name="attach_file"
/></q-item-section>
<q-item-section>ปโหลดไฟล </q-item-section>
</q-item>
<q-item
clickable
v-close-popup
type="a"
@click="openmodalEditReport()"
target="_blank"
>
<q-item-section avatar
><q-icon color="primary" name="mdi-pencil"
/></q-item-section>
<q-item-section>แกไข มต ... </q-item-section>
</q-item>
<q-separator />
<q-item clickable v-close-popup type="a" @click="downloadAttachment('pdf', retireld)" target="_blank">
<q-item-section avatar><q-icon color="red" name="mdi-file-pdf" /></q-item-section>
<q-item
clickable
v-close-popup
type="a"
@click="downloadAttachment('pdf', retireld)"
target="_blank"
>
<q-item-section avatar
><q-icon color="red" name="mdi-file-pdf"
/></q-item-section>
<q-item-section>ไฟล .PDF</q-item-section>
</q-item>
<q-item clickable v-close-popup type="a" @click="downloadAttachment('docx', retireld)" target="_blank">
<q-item-section avatar><q-icon color="blue" name="mdi-file-word" /></q-item-section>
<q-item
clickable
v-close-popup
type="a"
@click="downloadAttachment('docx', retireld)"
target="_blank"
>
<q-item-section avatar
><q-icon color="blue" name="mdi-file-word"
/></q-item-section>
<q-item-section>ไฟล .docx</q-item-section>
</q-item>
</q-list>
</q-menu>
<q-tooltip>ดาวนโหลดไฟล</q-tooltip>
</q-btn>
<q-file bg-color="white" clearable outlined dense v-model="fileUpload" accept=".pdf"
:style="fileUpload === null ? 'width: 150px' : 'width: auto'" label="อัปโหลดไฟล์"
v-if="statusUpload !== true">
<!-- <q-file
bg-color="white"
clearable
outlined
dense
v-model="fileUpload"
accept=".pdf"
:style="fileUpload === null ? 'width: 150px' : 'width: auto'"
label="อัปโหลดไฟล์"
v-if="statusUpload !== true"
>
<template v-slot:prepend>
<q-icon color="light-blue" name="attach_file" />
<q-tooltip>ปโหลดไฟล</q-tooltip>
</template>
</q-file>
<q-btn flat round color="light-blue" icon="upload" @click="uploadFile(fileUpload)" v-if="fileUpload !== null" />
</q-file> -->
</div>
<q-space />
<div class="row">
<q-tabs shrink>
<q-input borderless outlined dense debounce="300" v-model="filter" placeholder="ค้นหา"
style="max-width: 200px" class="q-ml-sm">
<q-input
borderless
outlined
dense
debounce="300"
v-model="filter"
placeholder="ค้นหา"
style="max-width: 200px"
class="q-ml-sm"
>
<template v-slot:append>
<q-icon name="search" />
</template>
</q-input>
<q-select v-model="visibleColumns" multiple outlined dense options-dense
:display-value="$q.lang.table.columns" emit-value map-options :options="columns" option-value="name"
options-cover style="min-width: 150px" class="gt-xs q-ml-sm">
<q-select
v-model="visibleColumns"
multiple
outlined
dense
options-dense
:display-value="$q.lang.table.columns"
emit-value
map-options
:options="columns"
option-value="name"
options-cover
style="min-width: 150px"
class="gt-xs q-ml-sm"
>
</q-select>
</q-tabs>
</div>
</div>
<div>
<q-table flat dense bordered :rows="rows" :columns="columns" row-key="order" class="custom-header-table"
:filter="filter" :visible-columns="visibleColumns" no-data-label="ไม่มีข้อมูล"
:pagination-label="paginationLabel" v-model:pagination="pagination">
<q-table
flat
dense
bordered
:rows="rows"
:columns="columns"
row-key="order"
class="custom-header-table"
:filter="filter"
:visible-columns="visibleColumns"
no-data-label="ไม่มีข้อมูล"
:pagination-label="paginationLabel"
v-model:pagination="pagination"
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th v-for="col in props.cols" :key="col.name" :props="props">
@ -456,29 +589,45 @@ const paginationLabel = (start: number, end: number, total: number) => {
</div>
</q-th>
<q-th auto-width />
<q-th auto-width v-if="(typeReport === 'EDIT' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
" />
<q-th
auto-width
v-if="
(typeReport === 'EDIT' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
"
/>
<q-th auto-width v-else></q-th>
<q-th auto-width v-if="(typeReport === 'REMOVE' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
" />
<q-th
auto-width
v-if="
(typeReport === 'REMOVE' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
"
/>
<q-th auto-width v-else></q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer" :style="props.row.profileId === profileId && 'color: #26a69a;'"
@click.stop="router.push(`/registry/${props.row.profileId}`)">
<q-tr
:props="props"
class="cursor-pointer"
:style="props.row.profileId === profileId && 'color: #26a69a;'"
@click.stop="router.push(`/registry/${props.row.profileId}`)"
>
<q-td key="order" :props="props">{{ props.row.order }} </q-td>
<q-td key="name" :props="props">{{ props.row.name }}</q-td>
<q-td class="table_ellipsis" key="organizationOrganization" :props="props">{{
props.row.organizationOrganization }}</q-td>
<q-td
class="table_ellipsis"
key="organizationOrganization"
:props="props"
>{{ props.row.organizationOrganization }}</q-td
>
<q-td key="positionEmployeeGroup" :props="props">{{
props.row.positionEmployeeGroup
}}</q-td>
@ -502,41 +651,71 @@ const paginationLabel = (start: number, end: number, total: number) => {
props.row.bureau
}}</q-td>
<q-td auto-width></q-td>
<q-td auto-width v-if="(typeReport === 'EDIT' ||
<q-td
auto-width
v-if="
(typeReport === 'EDIT' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
">
<q-btn flat round color="primary" icon="mdi-pencil" dense @click.stop="
(modalNote = true),
(note = props.row.reason),
(action = 'edit'),
(retireProfileId = props.row.id)
">
"
>
<q-btn
flat
round
color="primary"
icon="mdi-pencil"
dense
@click.stop="
(modalNote = true),
(note = props.row.reason),
(action = 'edit'),
(retireProfileId = props.row.id)
"
>
<q-tooltip>กรอกเหตผล</q-tooltip>
</q-btn>
</q-td>
<q-td auto-width v-else></q-td>
<q-td auto-width v-if="(typeReport === 'REMOVE' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
">
<q-btn flat round class="text-red-14" icon="mdi-delete" dense @click.stop="
(modalNote = true),
(action = 'delete'),
(note = props.row.reason),
(retireProfileId = props.row.id)
"><q-tooltip>ลบขอม</q-tooltip></q-btn>
<q-td
auto-width
v-if="
(typeReport === 'REMOVE' ||
typeReport === null ||
typeReport === '') &&
statusReport === false &&
statusUpload !== true
"
>
<q-btn
flat
round
class="text-red-14"
icon="mdi-delete"
dense
@click.stop="
(modalNote = true),
(action = 'delete'),
(note = props.row.reason),
(retireProfileId = props.row.id)
"
><q-tooltip>ลบขอม</q-tooltip></q-btn
>
</q-td>
<q-td auto-width v-else></q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">
<q-pagination v-model="pagination.page" color="primary" :max="scope.pagesNumber" :max-pages="5" size="sm"
boundary-links direction-links></q-pagination>
<q-pagination
v-model="pagination.page"
color="primary"
:max="scope.pagesNumber"
:max-pages="5"
size="sm"
boundary-links
direction-links
></q-pagination>
</template>
</q-table>
</div>
@ -551,21 +730,123 @@ const paginationLabel = (start: number, end: number, total: number) => {
<q-card-section class="q-pt-none bg-grey-1">
<div class="row q-col-gutter-sm">
<div class="col-12">
<q-input outlined dense lazy-rules v-model="note" :rules="[(val) => !!val || 'กรุณากรอกเหตุผล']"
:label="`${'กรอกเหตุผล'}`" type="textarea" />
<q-input
outlined
dense
lazy-rules
v-model="note"
:rules="[(val) => !!val || 'กรุณากรอกเหตุผล']"
:label="`${'กรอกเหตุผล'}`"
type="textarea"
/>
</div>
</div>
</q-card-section>
<q-card-actions align="right">
<q-btn v-if="action === 'delete'" label="บันทึก" color="secondary" :disable="visibleNote" @click="clickDelete" />
<q-btn v-else label="บักทึก" color="secondary" @click="saveNote" :disable="visibleNote" />
<q-btn
v-if="action === 'delete'"
label="บันทึก"
color="secondary"
:disable="visibleNote"
@click="clickDelete"
/>
<q-btn
v-else
label="บักทึก"
color="secondary"
@click="saveNote"
:disable="visibleNote"
/>
</q-card-actions>
</q-card>
</q-dialog>
<DialogPopupReason :modal="modalEdit" title="แก้ไขมติ อ.ก.ก." label="มติ อ.ก.ก." :click-close="closemodalEditReport"
:savaForm="saveEdiitReport" :textReport="textReport" />
<!-- ปโหลดไฟล -->
<q-dialog v-model="modalUpload">
<q-card style="width: 50vw">
<DialogHeader tittle="อัปโหลดเอกสาร" :close="closeDialog" />
<q-separator />
<q-card-section>
<q-form ref="myForm">
<div class="row q-pa-md q-gutter-md">
<div class="col-12">
<q-file
bg-color="white"
clearable
outlined
dense
v-model="fileUpload"
accept=".pdf"
label="อัปโหลดเอกสาร"
:rules="[(val) => !!val || `${'กรุณาเลือกเอกสารอัปโหลด'}`]"
lazy-rules
>
<template v-slot:prepend>
<q-icon color="light-blue" name="attach_file" />
<q-tooltip>ปโหลดไฟล</q-tooltip>
</template>
</q-file>
</div>
<div class="col-12">
<datepicker
menu-class-name="modalfix"
v-model="signDate"
:locale="'th'"
autoApply
:enableTimePicker="false"
week-start="0"
>
<template #year="{ year }">{{ year + 543 }}</template>
<template #year-overlay-value="{ value }">{{
parseInt(value + 543)
}}</template>
<template #trigger>
<q-input
dense
outlined
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
lazy-rules
:model-value="
signDate !== null ? date2Thai(signDate) : null
"
hide-bottom-space
:label="`${'ประกาศ ณ วันที่'}`"
>
<template v-slot:prepend>
<q-icon name="event" class="cursor-pointer text-primary">
</q-icon>
</template>
</q-input>
</template>
</datepicker>
</div>
</div>
</q-form>
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn
flat
round
color="public"
icon="mdi-content-save-outline"
@click="uploadFile(fileUpload, signDate)"
>
<q-tooltip>นท</q-tooltip>
</q-btn>
</q-card-actions>
</q-card>
</q-dialog>
<DialogPopupReason
:modal="modalEdit"
title="แก้ไขมติ อ.ก.ก."
label="มติ อ.ก.ก."
:click-close="closemodalEditReport"
:savaForm="saveEdiitReport"
:textReport="textReport"
/>
</template>
<style lang="scss" scope>

View file

@ -53,7 +53,12 @@ const clickAdd = () => {
action.value = "";
radio.value = "";
if (props.actionOptio) {
actionOption.value = props.actionOptio;
props.actionOptio;
let list = props.actionOptio.map((e: any) => ({
id: e.id,
round: `รอบ ${e.round} (ฉบับวันที่ ${e.signDate})`,
}));
actionOption.value = list;
}
}
}

View file

@ -69,6 +69,7 @@ const dateLeave = ref<Date | null>(null);
const reason = ref<string>("");
const location = ref<string>("");
const status = ref<string>("");
const remarkHorizontal = ref<string>("");
const modal = ref<boolean>(false);
const actionPass = ref<boolean>(false);
@ -144,6 +145,8 @@ const fetchData = async (id: string) => {
.get(config.API.resingByid(id))
.then((res: any) => {
const data = res.data.result;
console.log(data);
let list: TypeFile[] = [];
if (data.docs.length > 0) {
data.docs.map((doc: TypeFile) => {
@ -165,6 +168,7 @@ const fetchData = async (id: string) => {
reason.value = data.reason ?? "";
location.value = data.location ?? "";
status.value = data.status ?? "";
remarkHorizontal.value = data.remarkHorizontal ?? "-";
})
.catch((e) => {
messageError($q, e);
@ -296,11 +300,11 @@ const saveData = async () => {
formData.append("PositionLevelOld", positionLevelOld.value);
formData.append("PositionNumberOld", posNo.value);
formData.append("AmountOld", salary.value.toString());
salary;
formData.append("remarkHorizontal", remarkHorizontal.value);
showLoader();
await http
.put(config.API.resingByid(id.value), formData)
.then((res: any) => {
.then(() => {
success($q, "แก้ไขข้อมูลเพื่อลงบัญชีแนบท้ายสำเร็จ");
edit.value = false;
})
@ -885,7 +889,22 @@ const statusOrder = (val: boolean) => {
(val) => !!val || `${'กรุณากรอกเหตุผลที่ลาออกจากราชการ '}`,
]"
hide-bottom-space
:label="`${'เหตุผลที่ลาออกจากราชการ '}`"
:label="`${'เหตุผลที่ลาออกจากราชการ (เหตุผลแนวตั้ง)'}`"
type="textarea"
/>
</div>
<div class="col-12">
<q-input
:class="getClass(edit)"
:outlined="edit"
dense
lazy-rules
:readonly="!edit"
:borderless="!edit"
v-model="remarkHorizontal"
:rules="[(val) => !!val || `${'กรุณากรอกเหตุผลแนวนอน '}`]"
hide-bottom-space
:label="`${'เหตุผลแนวนอน '}`"
type="textarea"
/>
</div>

View file

@ -28,10 +28,11 @@ const actionOption = ref<resMain[]>([]);
const visibleColumns = ref<string[]>([
"no",
"signDate",
"Date",
"retireNumber",
"typeReport",
]); //
]);
//
const columns = ref<QTableProps["columns"]>([
@ -43,6 +44,14 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "signDate",
align: "left",
label: "ประกาศ ณ วันที่",
field: "signDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "Date",
align: "left",
@ -96,6 +105,7 @@ const fetchRetirement = async (type: string, year: any) => {
let data = res.data.result;
rows.value = data.map((items: any) => ({
id: items.id,
signDate: date2Thai(items.signDate) ?? "-",
Date: date2Thai(items.createdAt),
year: items.year + 543,
retireNumber: items.round,
@ -133,6 +143,7 @@ const fetchRetirement = async (type: string, year: any) => {
fiscalyear.value = year;
}
actionOption.value = rows.value;
rows.value.sort((a, b) => a.round - b.round); //
checkststus(rows.value);
})
@ -352,6 +363,9 @@ const typeReportChangeName = (val: string) => {
<q-td key="no" :props="props">
{{ props.rowIndex + 1 }}
</q-td>
<q-td key="signDate" :props="props">
{{ props.row.signDate }}
</q-td>
<q-td key="Date" :props="props">
{{ props.row.Date }}
</q-td>

View file

@ -0,0 +1,192 @@
<script setup lang="ts">
import { ref, watch } from "vue";
const props = defineProps({
modal: {
type: Boolean,
},
detail: {
type: Object,
},
colse: {
type: Function,
},
});
//
const titlename = ref<string>("");
const timeIn = ref<string>("");
const timeOut = ref<string>("");
const coordinatesIn = ref<string>("");
const coordinatesOut = ref<string>("");
const status = ref<string>("");
watch(props, () => {
if (props.modal) {
if (props.detail) {
console.log(props.detail);
let data = props.detail;
titlename.value = data.fullName;
timeIn.value = data.timeIn;
timeOut.value = data.timeOut;
coordinatesIn.value = data.coordinatesIn;
coordinatesOut.value = data.coordinatesOut;
status.value = data.status;
}
}
});
function colsePopup() {
props.colse ? props.colse() : false;
}
</script>
<template>
<q-dialog v-model="props.modal">
<q-card style="width: 950px; max-width: 80vw">
<q-card-section>
<q-toolbar>
<q-toolbar-title>
รายละเอยดการลงเวลาของ
<span class="text-primary">{{ titlename }}</span>
</q-toolbar-title>
<q-btn
icon="close"
unelevated
round
dense
style="color: #ff8080; background-color: #ffdede"
@click="colsePopup"
/>
</q-toolbar>
</q-card-section>
<q-separator />
<q-card-section class="q-pt-none">
<div class="q-pa-md">
<q-banner
inline-actions
rounded
class="bg-grey-2"
style="border: 2px solid rgb(215, 212, 212)"
>
<div class="q-pa-md">
<div class="row">
<div class="col-4">
<q-list>
<q-item>
<q-item-section>
<q-item-label overline>-นามสก</q-item-label>
<q-item-label>{{ titlename }}</q-item-label>
</q-item-section>
</q-item>
</q-list>
</div>
<div class="col-4">
<q-item>
<q-item-section>
<q-item-label overline>นทเขางาน</q-item-label>
<q-item-label>05 .. 56</q-item-label>
</q-item-section>
</q-item>
</div>
<div class="col-3">
<q-item>
<q-item-section>
<q-item-label overline>สถานะ</q-item-label>
<q-item-label>{{ status }}</q-item-label>
</q-item-section>
</q-item>
</div>
<div class="col">
<q-item>
<q-item-section>
<q-item-label
><q-btn
dense
flat
round
color="primary"
icon="mdi-pencil"
>
<q-tooltip>แกไข</q-tooltip>
</q-btn></q-item-label
>
</q-item-section>
</q-item>
</div>
</div>
</div>
</q-banner>
<div class="row q-gutter-md q-mt-md">
<div class="col">
<q-card flat bordered>
<q-card-section>
<q-list>
<q-item>
<q-item-section class="text-grey-5"
>เวลาเขางาน</q-item-section
>
<q-item-section> {{ timeIn }} </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"></q-item-section>
<q-item-section> {{ coordinatesIn }} </q-item-section>
</q-item>
<q-item>
<q-item-section top class="text-grey-5"
>ปภาพ</q-item-section
>
<q-item-section>
<q-img src="https://picsum.photos/500/300" />
</q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>หมายเหต</q-item-section
>
<q-item-section> - </q-item-section>
</q-item>
</q-list>
</q-card-section>
</q-card>
</div>
<div class="col">
<q-card flat bordered>
<q-card-section>
<q-list>
<q-item>
<q-item-section class="text-grey-5"
>เวลาออกงาน</q-item-section
>
<q-item-section> {{ timeOut }} </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"></q-item-section>
<q-item-section> {{ coordinatesOut }} </q-item-section>
</q-item>
<q-item>
<q-item-section top class="text-grey-5"
>ปภาพ</q-item-section
>
<q-item-section>
<q-img src="https://picsum.photos/500/300" />
</q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>หมายเหต</q-item-section
>
<q-item-section> - </q-item-section>
</q-item>
</q-list>
</q-card-section>
</q-card>
</div>
</div>
</div>
</q-card-section>
<q-card-actions align="right" class="bg-white text-teal">
<!-- <q-btn flat label="OK" v-close-popup /> -->
</q-card-actions>
</q-card>
</q-dialog>
</template>
<style scoped></style>

View file

@ -0,0 +1,320 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
import type { QTableProps } from "quasar";
//import Stores
import { useCounterMixin } from "@/stores/mixin";
import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore";
//importComponents
import DialogDetail from "./DialogDetail.vue";
const mixin = useCounterMixin();
const workStore = useWorklistDataStore();
const { date2Thai } = mixin;
const { optionStatus, searchDataFn } = workStore;
onMounted(() => {
optionStatusfn.value = optionStatus;
});
// Table
const columns = ref<QTableProps["columns"]>([
{
name: "no",
align: "left",
label: "ลำดับ",
sortable: false,
field: "no",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "fullName",
align: "left",
label: "ชื่อ-นามสกุล",
sortable: true,
field: "fullName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "timeIn",
align: "left",
label: "เวลาเข้างาน",
sortable: true,
field: "timeIn",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "coordinatesIn",
align: "left",
label: "พิกัด",
sortable: true,
field: "coordinatesIn",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "timeOut",
align: "left",
label: "เวลาออกงาน",
sortable: true,
field: "timeOut",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "coordinatesOut",
align: "left",
label: "พิกัด",
sortable: true,
field: "coordinatesOut",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "status",
align: "left",
label: "สถานะ",
sortable: true,
field: "status",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
]);
const visibleColumns = ref<string[]>([
"no",
"fullName",
"timeIn",
"coordinatesIn",
"timeOut",
"coordinatesOut",
"status",
]);
//DialogDetail
const modal = ref<boolean>(false);
const dataDetail = ref<any>([]);
function clickDetail(data: any) {
modal.value = true;
dataDetail.value = data;
}
function colseDeyail() {
modal.value = false;
}
//filter Option
const optionStatusfn = ref<any>([]);
function filterFn(val: string, update: any) {
if (val == "") {
update(() => {
optionStatusfn.value = optionStatus;
});
} else {
update(() => {
optionStatusfn.value = optionStatus.filter(
(e: any) => e.name.search(val) !== -1
);
});
}
}
//pagination
const pagination = ref({
descending: true,
page: 1,
rowsPerPage: 10,
});
const paging = ref<boolean>(true);
const paginationLabel = (start: string, end: string, total: string) => {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
};
</script>
<template>
<q-toolbar style="padding: 0" class="q-gutter-sm q-mb-md">
<div class="col-2">
<datepicker
menu-class-name="modalfix"
v-model="workStore.selectDate"
:locale="'th'"
autoApply
:enableTimePicker="false"
week-start="0"
@update:model-value="
searchDataFn(workStore.selectDate, workStore.selectStatus)
"
>
<template #year="{ year }">{{ year + 543 }}</template>
<template #year-overlay-value="{ value }">{{
parseInt(value + 543)
}}</template>
<template #trigger>
<q-input
dense
outlined
lazy-rules
:model-value="
workStore.selectDate !== null
? date2Thai(workStore.selectDate)
: null
"
hide-bottom-space
:label="`${'วันที่'}`"
>
<template v-slot:prepend>
<q-icon name="event" class="cursor-pointer text-primary">
</q-icon>
</template>
</q-input>
</template>
</datepicker>
</div>
<div class="col-3">
<q-select
emit-value
map-options
outlined
dense
v-model="workStore.selectStatus"
:options="optionStatusfn"
option-value="id"
option-label="name"
label="สถานะ"
@update:model-value="
searchDataFn(workStore.selectDate, workStore.selectStatus)
"
use-input
@filter="filterFn"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey"> ไมอม </q-item-section>
</q-item>
</template></q-select
>
</div>
<q-space />
<div class="col-2">
<q-input dense outlined v-model="workStore.filterTable" label="ค้นหา" />
</div>
<div class="col-2">
<q-select
v-model="visibleColumns"
multiple
outlined
dense
options-dense
:display-value="$q.lang.table.columns"
emit-value
map-options
:options="columns"
option-value="name"
options-cover
/>
</div>
</q-toolbar>
<d-table
ref="table"
:columns="columns"
:rows="workStore.rows"
:filter="workStore.filterTable"
row-key="id"
flat
bordered
:paging="true"
dense
class="custom-header-table"
:visible-columns="visibleColumns"
:pagination-label="paginationLabel"
v-model:pagination="pagination"
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td key="no" :props="props" @click.prevent="clickDetail(props.row)">
{{ props.rowIndex + 1 }}
</q-td>
<q-td
key="fullName"
:props="props"
@click.prevent="clickDetail(props.row)"
>
{{ props.row.fullName }}
</q-td>
<q-td
key="timeIn"
:props="props"
@click.prevent="clickDetail(props.row)"
>
{{ props.row.timeIn }}
</q-td>
<q-td
key="coordinatesIn"
:props="props"
@click.prevent="clickDetail(props.row)"
>
<q-item style="padding: 0">
<q-item-section>
<q-item-label> {{ props.row.coordinatesIn }}</q-item-label>
<q-item-label caption lines="2">{{
props.row.latIn + " " + props.row.longIn
}}</q-item-label>
</q-item-section>
</q-item>
</q-td>
<q-td
key="timeOut"
:props="props"
@click.prevent="clickDetail(props.row)"
>
{{ props.row.timeOut }}
</q-td>
<q-td
key="coordinatesOut"
:props="props"
@click.prevent="clickDetail(props.row)"
>
<q-item style="padding: 0">
<q-item-section>
<q-item-label> {{ props.row.coordinatesOut }}</q-item-label>
<q-item-label caption lines="2">{{
props.row.latOut + " " + props.row.longOut
}}</q-item-label>
</q-item-section>
</q-item>
</q-td>
<q-td
key="status"
:props="props"
@click.prevent="clickDetail(props.row)"
>
{{ props.row.status }}
</q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">
<q-pagination
v-model="pagination.page"
active-color="primary"
color="dark"
:max="scope.pagesNumber"
:max-pages="5"
size="sm"
boundary-links
direction-links
></q-pagination>
</template>
</d-table>
<DialogDetail :modal="modal" :detail="dataDetail" :colse="colseDeyail" />
</template>
<style scoped></style>

View file

@ -0,0 +1,194 @@
<script setup lang="ts">
import { useRoute, useRouter } from "vue-router";
const router = useRouter();
const route = useRoute();
const paramsId = route.params.id;
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">
<div class="q-mr-xl">
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/leave-list`)"
/>
รายละเอยดการลาของ {{ paramsId }}
</div>
<div class="q-ml-xl">
<q-btn
icon="mdi-download"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
><q-tooltip>ดาวนโหลดไฟล</q-tooltip></q-btn
>
<q-btn
icon="mdi-upload"
unelevated
round
dense
flat
color="blue-10"
class="q-mr-sm"
><q-tooltip>ปโหลดไฟล</q-tooltip></q-btn
>
</div>
</div>
<q-card flat bordered class="col-12 q-mt-sm">
<div class="q-pa-md">
<q-banner inline-actions rounded class="bg-grey-2">
<div class="row q-gutter-md">
<div class="col">
<q-list>
<q-item>
<q-item-section avatar class="text-grey-6"
>ประเภทการลา</q-item-section
>
<q-item-section class="text-primary"> ลาปวย </q-item-section>
</q-item>
<q-item>
<q-item-section avatar class="text-grey-6">
- นามสก</q-item-section
>
<q-item-section> {{ paramsId }} </q-item-section>
</q-item>
</q-list>
</div>
<div class="col">
<div class="row q-gutter-md">
<div class="col">
<q-card>
<q-card-section>
<div class="text-h6 text-weight-bold text-blue-10">10</div>
<div class="text-subtitle2">โควตาลาปวย</div>
</q-card-section>
</q-card>
</div>
<div class="col">
<q-card>
<q-card-section>
<div class="text-h6 text-weight-bold text-light-blue-6">
8
</div>
<div class="text-subtitle2">ลาปวยไปแล</div>
</q-card-section>
</q-card>
</div>
<div class="col">
<q-card>
<q-card-section>
<div class="text-h6 text-weight-bold text-indigo-7">2</div>
<div class="text-subtitle2">คงเหลอโควตาลาปวย</div>
</q-card-section>
</q-card>
</div>
</div>
</div>
</div>
</q-banner>
<div class="row q-gutter-md q-mt-md">
<div class="col">
<q-card flat bordered>
<q-card-section>
<q-list>
<q-item>
<q-item-section class="text-grey-5">เขยนท</q-item-section>
<q-item-section> าน </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>บเงนเดอน</q-item-section
>
<q-item-section> บเงนเดอน </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5">เขยนท</q-item-section>
<q-item-section> าน </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>บเงนเดอน</q-item-section
>
<q-item-section> บเงนเดอน </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5">
เดอน เรมต</q-item-section
>
<q-item-section> 14 .. 2556 </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5">
เดอน เรมสนส</q-item-section
>
<q-item-section> 15 .. 2556 </q-item-section>
</q-item>
</q-list>
</q-card-section>
</q-card>
</div>
<div class="col">
<q-card flat bordered>
<q-card-section>
<q-list>
<q-item>
<q-item-section class="text-grey-5"
>จำนวนวนทลา</q-item-section
>
<q-item-section> 1 </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>สถานทดตอขณะลา</q-item-section
>
<q-item-section> สถานทดตอขณะลา </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>หมายเลขทดตอขณะลา</q-item-section
>
<q-item-section> หมายเลขทดตอขณะลา </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5"
>สถานะการพจารณา</q-item-section
>
<q-item-section> ขอยกเล </q-item-section>
</q-item>
<q-item>
<q-item-section class="text-h5"> เอกสารแบบ</q-item-section>
</q-item>
<q-item>
<q-item-section class="text-grey-5">
ไมพบเอกสาร</q-item-section
>
</q-item>
</q-list>
</q-card-section>
</q-card>
</div>
</div>
</div>
<q-separator />
<div class="row q-pa-md q-gutter-md justify-end">
<q-btn color="orange-5" label="ไม่อนุมัติ"
><q-tooltip>ไมอน</q-tooltip>
</q-btn>
<q-btn color="primary" label="อนุมัติ"
><q-tooltip>อน</q-tooltip>
</q-btn>
</div>
</q-card>
</template>
<style lang="sass" scoped></style>

View file

@ -0,0 +1,235 @@
q
<script setup lang="ts">
import { ref } from "vue";
import type { QTableProps } from "quasar";
import { useRouter } from "vue-router";
//import Stores
import { useCounterMixin } from "@/stores/mixin";
import { useLeavelistDataStore } from "@/modules/09_leave/stores/LeaveStore";
const mixin = useCounterMixin();
const leaveStore = useLeavelistDataStore();
const router = useRouter();
const { date2Thai } = mixin;
const { optionYear, searchDataFn, filterOption } = leaveStore;
const columns = ref<QTableProps["columns"]>([
{
name: "no",
align: "left",
label: "ลำดับ",
sortable: false,
field: "no",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "leaveType",
align: "left",
label: "ประเภทการลา",
sortable: true,
field: "leaveType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "name",
align: "left",
label: "ผู้ยื่นใบลา",
sortable: true,
field: "name",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "Date",
align: "left",
label: "วันที่ยืนใบลา",
sortable: true,
field: "Date",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "status",
align: "left",
label: "สถานะ",
sortable: true,
field: "status",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
]);
const visibleColumns = ref<string[]>([
"no",
"leaveType",
"name",
"Date",
"status",
]);
const pagination = ref({
descending: true,
page: 1,
rowsPerPage: 10,
});
const paging = ref<boolean>(true);
const paginationLabel = (start: string, end: string, total: string) => {
if (paging.value == true) return " " + start + "-" + end + " ใน " + total;
else return start + "-" + end + " ใน " + total;
};
</script>
<template>
<q-toolbar style="padding: 0" class="q-gutter-sm q-mb-md">
<div class="col-2">
<q-select
emit-value
map-options
outlined
dense
v-model="leaveStore.selectYear"
:options="optionYear"
option-value="id"
option-label="name"
label="ปีงบประมาณ"
/>
</div>
<div class="col-3">
<q-select
emit-value
map-options
outlined
dense
v-model="leaveStore.selectType"
:options="leaveStore.optionType"
option-value="id"
option-label="name"
label="ประเภทการลา"
@update:model-value="
searchDataFn(leaveStore.selectType, leaveStore.selectStatus)
"
use-input
@filter="
(inputValue:any, doneFn:Function) =>
filterOption(inputValue, doneFn, 'type')
"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey"> ไมอม </q-item-section>
</q-item>
</template></q-select
>
</div>
<div class="col-2">
<q-select
v-if="leaveStore.tab == '2'"
emit-value
map-options
outlined
dense
v-model="leaveStore.selectStatus"
:options="leaveStore.optionStatus"
option-value="id"
option-label="name"
label="สถานะ"
@update:model-value="
searchDataFn(leaveStore.selectType, leaveStore.selectStatus)
"
use-input
@filter="
(inputValue:any, doneFn:Function) =>
filterOption(inputValue, doneFn, 'status')
"
/>
</div>
<q-space />
<div class="col-2">
<q-input dense outlined v-model="leaveStore.filterTable" label="ค้นหา" />
</div>
<div class="col-2">
<q-select
v-model="visibleColumns"
multiple
outlined
dense
options-dense
:display-value="$q.lang.table.columns"
emit-value
map-options
:options="columns"
option-value="name"
options-cover
/>
</div>
</q-toolbar>
<d-table
ref="table"
:columns="columns"
:rows="leaveStore.rows"
:filter="leaveStore.filterTable"
row-key="id"
flat
bordered
:paging="true"
dense
class="custom-header-table"
:visible-columns="visibleColumns"
:pagination-label="paginationLabel"
v-model:pagination="pagination"
:loading="leaveStore.loadTable"
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr
:props="props"
class="cursor-pointer"
@click.prevent="router.push(`/leave/detail/${props.row.name}`)"
>
<q-td key="no" :props="props"> {{ props.rowIndex + 1 }} </q-td>
<q-td key="leaveType" :props="props">
{{ props.row.leaveType }}
</q-td>
<q-td key="name" :props="props">
{{ props.row.name }}
</q-td>
<q-td key="Date" :props="props">
{{ props.row.Date }}
</q-td>
<q-td key="timeOut" :props="props">
{{ props.row.timeOut }}
</q-td>
<q-td key="status" :props="props">
{{ props.row.status }}
</q-td>
</q-tr>
</template>
<template v-slot:pagination="scope">
<q-pagination
v-model="pagination.page"
active-color="primary"
color="dark"
:max="scope.pagesNumber"
:max-pages="5"
size="sm"
boundary-links
direction-links
></q-pagination>
</template>
<template v-slot:loading>
<q-inner-loading showing color="primary" />
</template>
</d-table>
</template>
<style scoped></style>

View file

@ -0,0 +1,7 @@
interface DataOption {
id: string;
name: string;
}
export type {
DataOption
};

View file

@ -0,0 +1,49 @@
const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue")
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue")
const leaveDetail = () => import("@/modules//09_leave/components/2_Leave/DetailLeave.vue")
export default [
{
path: "/work-list",
name: "/work-list",
component: workMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave-list",
name: "/leave-list",
component: leaveMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave/detail/:id",
name: "/leave/detail",
component: leaveDetail,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/statistics-report",
name: "/statistics-report",
component: reportMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
]

View file

@ -0,0 +1,180 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { useCounterMixin } from "@/stores/mixin";
import type { DataOption } from "@/modules/09_leave/interface/index/Main"
const mixin = useCounterMixin();
const { date2Thai, showLoader, hideLoader } = mixin;
export const useLeavelistDataStore = defineStore("leave", () => {
//TABMENU
const tab = ref<string>("1");
const amounttab1 = ref<string>("")
const amounttab2 = ref<string>("")
//ข้อมูลในตาราง
const mainData = ref<any>([])
const rows = ref<any>([])
const loadTable = ref<boolean>(false)
async function fecthList(data: any) {
let datalist = data.map((e: any) => ({
leaveType: e.leaveType,
name: e.name,
Date: e.Date,
status: convertSatatus(e.status)
}))
tab.value !== "1" ? mainData.value = datalist : mainData.value = datalist.filter((e: any) => e.status === "อยู่ระหว่างกำเนินการ")
const filteramounttab1 = datalist.filter((e: any) => e.status === "อยู่ระหว่างกำเนินการ")
amounttab1.value = filteramounttab1.length
amounttab2.value = datalist.length
await fetchOption()
await searchDataFn(selectType.value, selectStatus.value)
}
//filter table
const selectYear = ref<string>('all')
const selectType = ref<string>('all')
const selectStatus = ref<string>('all')
const optionYear = ref<DataOption[]>([{ id: "all", name: 'ทั้งหมด' }])
const optionType = ref<DataOption[]>([])
const optionStatus = ref<DataOption[]>([])
const optionTypeMain = ref<DataOption[]>([])
const optionStatusMain = ref<DataOption[]>([])
const filterTable = ref<string>('')
function searchDataFn(type: string, status: string) {
// selectYear.value = selectYear.value || "all"
type = type || "all"
status = status || "all"
// showLoader()
loadTable.value = true
if (selectYear.value == "all" && type == "all" && status == "all") {
rows.value = mainData.value
} else if (selectYear.value !== "all" && type == "all" && status == "all") {
console.log("ค้นหาจากปี");
} else if (selectYear.value == "all" && type !== "all" && status == "all") {
console.log("ค้นหาจากประเภท");
rows.value = mainData.value.filter((e: any) => e.leaveType === type)
} else if (selectYear.value == "all" && type == "all" && status !== "all") {
console.log("ค้นหาจากสถานะ");
rows.value = mainData.value.filter((e: any) => e.status === status)
} else if (selectYear.value !== "all" && type !== "all" && status == "all") {
console.log("ค้นหาจากปีและประเภท");
} else if (selectYear.value !== "all" && type == "all" && status !== "all") {
console.log("ค้นหาจากปีและสถานะ");
} else if (selectYear.value == "all" && type !== "all" && status !== "all") {
console.log("ค้นหาจากประเภทและสถานะ");
rows.value = mainData.value.filter((e: any) => e.leaveType === type && e.status === status)
} else (console.log("ค้นหาจากทั้งหมด"))
setTimeout(function () {
loadTable.value = false
}, 500);
}
function clearFilter() {
selectYear.value = "all"
selectType.value = "all"
selectStatus.value = "all"
filterTable.value = ''
}
function fetchOption() {
let data = []
data = mainData.value
const double_leaveType = [
...new Set(data.map((item: any) => item.leaveType)),
];
// หา optionType
optionTypeMain.value = [{ id: "all", name: "ทั้งหมด" }];
for (let i = 1; i <= double_leaveType.length; i++) {
const type = double_leaveType[i - 1];
if (typeof type === 'string') {
const listtype: DataOption = {
id: type,
name: type,
};
optionTypeMain.value.push(listtype)
optionType.value = optionTypeMain.value
}
}
// หา optionStatus
const double_status = [
...new Set(data.map((item: any) => item.status)),
];
optionStatusMain.value = [{ id: "all", name: "ทั้งหมด" }];
for (let i = 1; i <= double_status.length; i++) {
const status = double_status[i - 1];
if (typeof status === 'string') {
const liststatus: DataOption = {
id: status,
name: status,
};
optionStatusMain.value.push(liststatus);
optionStatus.value = optionStatusMain.value
}
}
}
// filter option
function filterOption(val: string, update: any, type: string) {
let data: DataOption[] = []
let filter: DataOption[] = []
if (type == "type") {
data = optionTypeMain.value
} else if (type == "status") {
data = optionStatusMain.value
}
if (val == "") {
update(() => {
filter = data;
});
} else {
update(() => {
filter = data.filter(
(e) => e.name.search(val) !== -1
);
});
}
if (filter) {
if (type == "type") {
optionType.value = filter
} else if (type == "status") {
optionStatus.value = filter
}
}
}
// convertSatatus
function convertSatatus(val: string) {
switch (val) {
case "1":
return "ใหม่"
case "2":
return "อยู่ระหว่างกำเนินการ"
case "3":
return "อนุมัติ"
}
}
return {
tab,
amounttab1,
amounttab2,
//ข้อมูลในตาราง
rows,
fecthList,
loadTable,
//filter table
filterTable,
selectYear,
selectType,
selectStatus,
optionYear,
optionType,
optionStatus,
clearFilter,
searchDataFn,
filterOption,
};
})

View file

@ -0,0 +1,64 @@
import { defineStore } from "pinia";
import { ref } from "vue";
import { useCounterMixin } from "@/stores/mixin";
const mixin = useCounterMixin();
const { date2Thai } = mixin;
export const useWorklistDataStore = defineStore("work", () => {
// ข้อมูลในตาราง
const rows = ref<any>([])
const dataMain = ref<any>([])
function fecthList(data: any) {
let datalist = data.map((e: any) => ({
fullName: e.fullName,
timeIn: e.timeIn,
coordinatesIn: e.coordinatesIn,
latIn: e.latIn,
longIn: e.longIn,
timeOut: e.timeOut,
coordinatesOut: e.coordinatesOut,
latOut: e.latOut,
longOut: e.longOut,
status: convertSatatus(e.status)
}))
dataMain.value = datalist
searchDataFn(selectDate.value, selectStatus.value)
}
//ค้นหาข้อมูล
const filterTable = ref<string>('')
const selectDate = ref<Date | null>(null);
const selectStatus = ref<String>('all')
const optionStatus = ref<any[]>([{ id: "all", name: 'ทั้งหมด' }, { id: "1", name: 'ลงเวลาเรียบร้อย' }, { id: "2", name: 'สายทำงานครบ' }])
function searchDataFn(searchDate: any, srarchStatus: any) {
srarchStatus = srarchStatus || "all";
if (searchDate == null && srarchStatus == "all") {
rows.value = dataMain.value
} else if (searchDate == null && srarchStatus !== "all") {
rows.value = dataMain.value.filter((e: any) => e.status === convertSatatus(srarchStatus))
}
}
// convertSatatus
function convertSatatus(val: string) {
switch (val) {
case "1":
return "ลงเวลาเรียบร้อย"
case "2":
return "สายทำงานครบ"
default:
return "ยังไม่ได้ลงเวลา"
}
}
return {
//ข้อมูลในตาราง
rows,
fecthList,
//ค้นหาข้อมูล
filterTable,
selectDate,
selectStatus,
optionStatus,
searchDataFn,
convertSatatus
};
})

View file

@ -0,0 +1,120 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
// importStroe
import { useLeavelistDataStore } from "../stores/LeaveStore";
// importComponets
import TableList from "../components/2_Leave/TableList.vue";
const leaveStore = useLeavelistDataStore();
const { fecthList, clearFilter } = leaveStore;
onMounted(() => {
fecthLeaveList();
});
function fecthLeaveList() {
const data = [
{
leaveType: "ลาป่วย",
name: "นายกัณฐิมา กาฬสินธ์ุ",
Date: "",
status: "1",
},
{
leaveType: "ลากิจส่วนตัว",
name: "นายนครชัย วันดี",
Date: "",
status: "3",
},
{
leaveType: "ลากิจส่วนตัว",
name: "นายกัณฐิมา กาฬสินธ์ุ",
Date: "",
status: "2",
},
{
leaveType: "ลาป่วย",
name: "นายปิยรมย์ ศิริธาราฟ",
Date: "",
status: "2",
},
];
fecthList(data);
}
// Tab
function changTab() {
clearFilter();
fecthLeaveList();
}
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">รายการลา</div>
<div>
<!-- <q-card flat bordered class="col-12 q-mt-sm"> -->
<div class="q-pa-md">
<q-tabs
v-model="leaveStore.tab"
dense
align="left"
inline-label
class="bg-grey-4 rounded-borders"
indicator-color="white"
>
<q-tab
@click="changTab"
name="1"
label="รายการลาที่อยู่ระหว่างดำเนิดการ"
:class="
leaveStore.tab == '1' ? 'bg-white text-primary rounded-borders ' : ''
"
>
<q-badge
color="grey-4"
:class="
leaveStore.tab == '1'
? 'q-px-sm text-weight-medium text-primary q-ml-xl'
: 'q-px-sm text-weight-medium text-black q-ml-xl'
"
:label="leaveStore.amounttab1"
rounded
/>
</q-tab>
<q-tab
@click="changTab"
name="2"
label="รายการลาทั้งหมด"
:class="
leaveStore.tab == '2'
? 'bg-white text-primary rounded rounded-borders '
: ''
"
>
<q-badge
color="grey-4"
:class="
leaveStore.tab == '2'
? 'q-px-sm text-weight-medium text-primary q-ml-xl'
: 'q-px-sm text-weight-medium text-black q-ml-xl'
"
:label="leaveStore.amounttab2"
rounded
/>
</q-tab>
</q-tabs>
<q-tab-panels v-model="leaveStore.tab" animated>
<q-tab-panel name="1">
<!-- <TableList1 /> -->
<TableList />
</q-tab-panel>
<q-tab-panel name="2">
<!-- <TabList2Vue /> -->
<TableList />
</q-tab-panel>
</q-tab-panels>
</div>
<!-- </q-card> -->
</div>
</template>
<style scoped></style>

View file

@ -0,0 +1,9 @@
<script setup lang="ts"></script>
<template>
<div class="toptitle text-dark col-12 row items-center">รายงานสถ</div>
<div>
<q-card flat bordered class="col-12 q-mt-sm"> </q-card>
</div>
</template>
<style scoped></style>

View file

@ -0,0 +1,84 @@
<script setup lang="ts">
import { ref, onMounted } from "vue";
//import Stores
import { useCounterMixin } from "@/stores/mixin";
import { useWorklistDataStore } from "../stores/WorkStore";
//import Components
import TableList from "../components/1_Work/TableList.vue";
// use Store
const mixin = useCounterMixin();
const workStore = useWorklistDataStore();
const { date2Thai } = mixin;
const { fecthList } = workStore;
onMounted(() => {
fecthWorkList();
});
//
function fecthWorkList() {
const listData = [
{
fullName: "นายกัณฐิมา กาฬสินธ์ุ",
timeIn: "8:04",
coordinatesIn: "สำนักงาน",
latIn: "18.7903",
longIn: "99.0029",
timeOut: "18:04",
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
status: "1",
},
{
fullName: "นายนครชัย วันดี",
timeIn: "8:04",
coordinatesIn: "สำนักงาน",
latIn: "18.7903",
longIn: "99.0029",
timeOut: "18:04",
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
status: "2",
},
{
fullName: "นายปิยรมย์ ศิริธาราฟ",
timeIn: "8:04",
coordinatesIn: "สำนักงาน",
latIn: "18.7903",
longIn: "99.0029",
timeOut: "18:04",
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
status: "3",
},
{
fullName: "นางสาวปลาทอง ใจกล้า",
timeIn: "8:04",
coordinatesIn: "สำนักงาน",
latIn: "18.7903",
longIn: "99.0029",
timeOut: "18:04",
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
status: "1",
},
];
fecthList(listData);
}
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">
รายการลงเวลาปฏงาน
</div>
<div>
<q-card flat bordered class="col-12 q-mt-sm">
<div class="q-pa-md">
<TableList /></div
></q-card>
</div>
</template>
<style scoped></style>

View file

@ -665,17 +665,22 @@ const pagination = ref({
</div>
<div class="col-xs-6 col-sm-6 col-md-12" v-if="checkNote">
<q-input
dense
outlined
v-model="modalData.remarkVertical"
label="หมายเหตุแนวตั้ง"
type="textarea"
rows="2"
/>
</div>
<div class="col-xs-6 col-sm-6 col-md-12" v-if="checkNote">
<div class="col-xs-6 col-sm-6 col-md-12" v-if="checkNote">
<q-input
dense
outlined
v-model="modalData.remarkHorizontal"
type="textarea"
label="หมายเหตุแนวนอน"
rows="2"
/>
</div>
</div>