Merge branch 'develop' into devTee
This commit is contained in:
commit
3f87e84259
4 changed files with 21 additions and 20 deletions
|
|
@ -408,7 +408,7 @@ const menuList = readonly<any[]>([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 9.6,
|
key: 9.6,
|
||||||
label: "รายงานสถิติ",
|
label: "รายงานสถิติการลา",
|
||||||
path: "/leave-report",
|
path: "/leave-report",
|
||||||
role: "leave",
|
role: "leave",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -173,15 +173,15 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<q-dialog v-model="props.modal">
|
<q-dialog v-model="props.modal">
|
||||||
<q-card style="width: 800px; max-width: 80vw">
|
<q-card style="width: 700px; max-width: 100vw">
|
||||||
<Header :close="props.close" :tittle="'รายงานสถิติการลา'" />
|
<Header :close="props.close" :tittle="'รายงานสถิติการลา'" />
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section class="q-pt-none" style="padding: 0px">
|
||||||
<div class="q-pa-sm q-gutter-y-sm">
|
<div class="q-pa-sm q-gutter-y-sm">
|
||||||
<q-toolbar class="q-pa-sm bg-grey-2" style="border-radius: 5px">
|
<q-toolbar class="q-pa-sm bg-grey-2" style="border-radius: 5px">
|
||||||
<div class="q-pr-xs">
|
<div class="q-pr-xs col-4">
|
||||||
<q-select
|
<q-select
|
||||||
class="bg-white"
|
class="bg-white"
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -193,7 +193,6 @@ watch(
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
use-input
|
use-input
|
||||||
style="width: 230px"
|
|
||||||
@update:model-value="updateFilterType"
|
@update:model-value="updateFilterType"
|
||||||
@filter="(inputValue: any,
|
@filter="(inputValue: any,
|
||||||
doneFn: Function) => filterFnOptions(inputValue, doneFn,)"
|
doneFn: Function) => filterFnOptions(inputValue, doneFn,)"
|
||||||
|
|
@ -206,7 +205,7 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
</q-select>
|
</q-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="q-pr-xs" v-if="filterType === 'daily'">
|
<div class="q-pr-xs col-4" v-if="filterType === 'daily'">
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="date"
|
v-model="date"
|
||||||
|
|
@ -242,7 +241,7 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
</div>
|
||||||
<div class="q-pr-xs" v-if="filterType === 'monthly'">
|
<div class="q-pr-xs col-4" v-if="filterType === 'monthly'">
|
||||||
<datepicker
|
<datepicker
|
||||||
v-model="dateMonth"
|
v-model="dateMonth"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
|
|
@ -276,17 +275,19 @@ watch(
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<div class="q-pr-xs col-4">
|
||||||
<q-btn
|
<q-btn
|
||||||
:loading="loadingBtn"
|
:loading="loadingBtn"
|
||||||
:disable="loadingBtn"
|
:disable="loadingBtn"
|
||||||
color="primary"
|
color="primary"
|
||||||
icon="download"
|
icon="download"
|
||||||
label="ดาวน์โหลดรายงาน"
|
label="ดาวน์โหลดรายงาน"
|
||||||
@click="genReportXLSX(detailReport)"
|
@click="genReportXLSX(detailReport)"
|
||||||
>
|
style="width: 100%"
|
||||||
<q-tooltip>ดาวน์โหลดรายงาน</q-tooltip>
|
>
|
||||||
</q-btn>
|
<q-tooltip>ดาวน์โหลดรายงาน</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
||||||
const filter = reactive<DateFilter>({
|
const filter = reactive<DateFilter>({
|
||||||
year: new Date().getFullYear(), //*ปีในการยื่นขอใบลา(ใช้เป็น คศ.)
|
year: new Date().getFullYear(), //*ปีในการยื่นขอใบลา(ใช้เป็น คศ.)
|
||||||
type: "00000000-0000-0000-0000-000000000000", //*Id ประเภทการลา
|
type: "00000000-0000-0000-0000-000000000000", //*Id ประเภทการลา
|
||||||
status: "ALL", //*สถานะการของลา
|
status: "NEW", //*สถานะการของลา
|
||||||
keyword: "", //keyword ค้นหา
|
keyword: "", //keyword ค้นหา
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ function onClickOpenDialog() {
|
||||||
<q-btn
|
<q-btn
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
class="text-primary"
|
class="text-secondary"
|
||||||
label="รายงานสถิติการลา"
|
label="รายงานสถิติการลา"
|
||||||
@click="onClickOpenDialog"
|
@click="onClickOpenDialog"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue