Merge branch 'develop' of https://github.com/Frappet/bma-ehr-frontend into develop
This commit is contained in:
commit
3a5d855ec8
3 changed files with 209 additions and 68 deletions
|
|
@ -22,11 +22,15 @@
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 150px">
|
<q-list style="min-width: 150px">
|
||||||
<q-item clickable v-close-popup>
|
<q-item clickable v-close-popup>
|
||||||
<q-item-section avatar><q-icon color="red" name="mdi-file-pdf" /></q-item-section>
|
<q-item-section avatar
|
||||||
|
><q-icon color="red" name="mdi-file-pdf"
|
||||||
|
/></q-item-section>
|
||||||
<q-item-section>ไฟล์ .PDF</q-item-section>
|
<q-item-section>ไฟล์ .PDF</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup>
|
<q-item clickable v-close-popup>
|
||||||
<q-item-section avatar><q-icon color="blue" name="mdi-file-word" /></q-item-section>
|
<q-item-section avatar
|
||||||
|
><q-icon color="blue" name="mdi-file-word"
|
||||||
|
/></q-item-section>
|
||||||
<q-item-section>ไฟล์ .docx</q-item-section>
|
<q-item-section>ไฟล์ .docx</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
|
|
@ -47,82 +51,84 @@
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 150px">
|
<q-list style="min-width: 150px">
|
||||||
<q-item clickable v-close-popup>
|
<q-item clickable v-close-popup>
|
||||||
<q-item-section avatar><q-icon color="red" name="mdi-file-pdf" /></q-item-section>
|
<q-item-section avatar
|
||||||
|
><q-icon color="red" name="mdi-file-pdf"
|
||||||
|
/></q-item-section>
|
||||||
<q-item-section>ไฟล์ .PDF</q-item-section>
|
<q-item-section>ไฟล์ .PDF</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup>
|
<q-item clickable v-close-popup>
|
||||||
<q-item-section avatar><q-icon color="green-7" name="mdi-file-excel" /></q-item-section>
|
<q-item-section avatar
|
||||||
|
><q-icon color="green-7" name="mdi-file-excel"
|
||||||
|
/></q-item-section>
|
||||||
<q-item-section>ไฟล์ .xls</q-item-section>
|
<q-item-section>ไฟล์ .xls</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
<q-space />
|
||||||
|
<q-btn
|
||||||
|
class="text-dark"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
icon="mdi-fullscreen"
|
||||||
|
color="add"
|
||||||
|
@click="dialog = true"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<q-separator style="margin-top: -1px; z-index: 1;" />
|
<q-separator style="margin-top: -1px; z-index: 1" />
|
||||||
<q-card bordered class="card-pdf q-ma-md q-pa-md">
|
<q-card bordered class="card-pdf q-ma-md q-pa-md">
|
||||||
<div
|
<div class="justify-between items-center align-center q-pb-sm row">
|
||||||
class="justify-between items-center align-center q-pb-sm row"
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page > 1 ? page - 1 : page"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-icon name="mdi-chevron-left" />
|
||||||
class="text-dark bg-grey-4"
|
</q-btn>
|
||||||
flat
|
|
||||||
dense
|
|
||||||
@click="page = page > 1 ? page - 1 : page"
|
|
||||||
>
|
|
||||||
<q-icon name="mdi-chevron-left" />
|
|
||||||
</q-btn>
|
|
||||||
|
|
||||||
<span class="body-2 grey--text">
|
<span class="body-2 grey--text">
|
||||||
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
class="text-dark bg-grey-4"
|
class="text-dark bg-grey-4"
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
@click="page = page < numOfPages ? page + 1 : page"
|
@click="page = page < numOfPages ? page + 1 : page"
|
||||||
>
|
|
||||||
<q-icon name="mdi-chevron-right" />
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
<div class="pdfWidth">
|
|
||||||
<VuePDF ref="vuePDFRef" :pdf="pdfSrc" :page="page" fit-parent />
|
|
||||||
<!-- <VuePdf :key="page" :src="pdfSrc" :page="page" /> -->
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="justify-between items-center align-center q-pt-sm row"
|
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-icon name="mdi-chevron-right" />
|
||||||
class="text-dark bg-grey-4"
|
</q-btn>
|
||||||
flat
|
</div>
|
||||||
dense
|
<div class="pdfWidth">
|
||||||
@click="page = page > 1 ? page - 1 : page"
|
<VuePDF ref="vuePDFRef" :pdf="pdfSrc" :page="page" fit-parent />
|
||||||
>
|
<!-- <VuePdf :key="page" :src="pdfSrc" :page="page" /> -->
|
||||||
<q-icon name="mdi-chevron-left" />
|
</div>
|
||||||
</q-btn>
|
<div class="justify-between items-center align-center q-pt-sm row">
|
||||||
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page > 1 ? page - 1 : page"
|
||||||
|
>
|
||||||
|
<q-icon name="mdi-chevron-left" />
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
<span class="body-2 grey--text">
|
<span class="body-2 grey--text">
|
||||||
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
class="text-dark bg-grey-4"
|
class="text-dark bg-grey-4"
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
@click="page = page < numOfPages ? page + 1 : page"
|
@click="page = page < numOfPages ? page + 1 : page"
|
||||||
>
|
>
|
||||||
<q-icon name="mdi-chevron-right" />
|
<q-icon name="mdi-chevron-right" />
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
<!-- <div class="card-pdf q-ma-md q-pa-md" v-if="tab == 'main'">
|
|
||||||
<pdf-viewer v-model:PDFV="vuePDFRef" />
|
|
||||||
</div> -->
|
|
||||||
<!-- <div class="card-pdf q-ma-md q-pa-md" v-else>
|
|
||||||
<pdf-viewer v-model:PDFV="vuePDFRef" />
|
|
||||||
</div> -->
|
|
||||||
<!-- <pdf-viewer /> -->
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:separator>
|
<template v-slot:separator>
|
||||||
|
|
@ -275,6 +281,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<div class="flex justify-around">
|
||||||
|
<q-btn
|
||||||
|
unelevated
|
||||||
|
label="ออกคำสั่ง"
|
||||||
|
:color="validateForm() ? 'public' : 'grey'"
|
||||||
|
:disable="!validateForm()"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
class="text-dark"
|
||||||
|
unelevated
|
||||||
|
label="ส่งไปลงนาม"
|
||||||
|
color="grey"
|
||||||
|
disable
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-form>
|
</q-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -302,9 +323,97 @@
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
||||||
<!-- <q-btn flat round color="primary" icon="chevron_right" @click="next">
|
<!-- <q-btn flat round color="primary" icon="chevron_right" @click="next">
|
||||||
<q-tooltip>ต่อไป</q-tooltip>
|
<q-tooltip>ต่อไป</q-tooltip>
|
||||||
</q-btn> -->
|
</q-btn> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<q-dialog
|
||||||
|
v-model="dialog"
|
||||||
|
persistent
|
||||||
|
:maximized="true"
|
||||||
|
transition-show="slide-up"
|
||||||
|
transition-hide="slide-down"
|
||||||
|
>
|
||||||
|
<q-card class="bg-white text-white">
|
||||||
|
<!-- <q-bar>
|
||||||
|
<q-space />
|
||||||
|
|
||||||
|
<q-btn dense flat icon="close" v-close-popup>
|
||||||
|
<q-tooltip>ปิดหน้าต่าง</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
</q-bar> -->
|
||||||
|
|
||||||
|
<div class="flex justify-end items-center align-center q-mr-md q-mt-sm">
|
||||||
|
<q-btn
|
||||||
|
icon="close"
|
||||||
|
unelevated
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
style="color: #ff8080; background-color: #ffdede"
|
||||||
|
size="12px"
|
||||||
|
v-close-popup
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<q-card-section bordered class="card-pdf q-ma-md q-pa-md">
|
||||||
|
<div class="justify-between items-center align-center q-pb-sm row">
|
||||||
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page > 1 ? page - 1 : page"
|
||||||
|
>
|
||||||
|
<q-icon name="mdi-chevron-left" />
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
|
<span class="body-2 grey--text text-black">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page < numOfPages ? page + 1 : page"
|
||||||
|
>
|
||||||
|
<q-icon name="mdi-chevron-right" />
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
<div class="pdfWidth">
|
||||||
|
<VuePDF
|
||||||
|
ref="vuePDFRef"
|
||||||
|
:pdf="pdfSrc"
|
||||||
|
:page="page"
|
||||||
|
fit-parent
|
||||||
|
:scale="0.1"
|
||||||
|
/>
|
||||||
|
<!-- <VuePdf :key="page" :src="pdfSrc" :page="page" /> -->
|
||||||
|
</div>
|
||||||
|
<div class="justify-between items-center align-center q-pt-sm row">
|
||||||
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page > 1 ? page - 1 : page"
|
||||||
|
>
|
||||||
|
<q-icon name="mdi-chevron-left" />
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
|
<span class="body-2 grey--text text-black">
|
||||||
|
หน้าที่ {{ page }} จาก {{ numOfPages }}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
class="text-dark bg-grey-4"
|
||||||
|
flat
|
||||||
|
dense
|
||||||
|
@click="page = page < numOfPages ? page + 1 : page"
|
||||||
|
>
|
||||||
|
<q-icon name="mdi-chevron-right" />
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</q-card-section>
|
||||||
|
</q-card>
|
||||||
|
</q-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
@ -317,6 +426,8 @@ import { useCounterMixin } from "@/stores/mixin";
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { date2Thai } = mixin;
|
const { date2Thai } = mixin;
|
||||||
|
|
||||||
|
const dialog = ref<boolean>(false);
|
||||||
|
|
||||||
// onUnmounted(() => {
|
// onUnmounted(() => {
|
||||||
// window.removeEventListener("resize", (e: any) => {
|
// window.removeEventListener("resize", (e: any) => {
|
||||||
// myEventHandler(e);
|
// myEventHandler(e);
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,15 @@ import type { RequestItemsHistoryObject } from "@/modules//05_placement/interfac
|
||||||
import type { ResponseObject } from "@/modules//05_placement/interface/response/Address";
|
import type { ResponseObject } from "@/modules//05_placement/interface/response/Address";
|
||||||
import HistoryTable from "@/components/TableHistory.vue";
|
import HistoryTable from "@/components/TableHistory.vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import type { AddressOps } from "@/modules//05_placement/interface/index/Main";
|
|
||||||
|
import { AddressDataDefualt } from "@/modules//05_placement/interface/index/Main";
|
||||||
|
|
||||||
|
import type {
|
||||||
|
AddressOps,
|
||||||
|
Address as AddressType,
|
||||||
|
} from "@/modules//05_placement/interface/index/Main";
|
||||||
import type { QTableProps } from "quasar";
|
import type { QTableProps } from "quasar";
|
||||||
|
import type { PropType } from "vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
statusEdit: {
|
statusEdit: {
|
||||||
|
|
@ -33,6 +40,10 @@ const props = defineProps({
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
},
|
},
|
||||||
|
data: {
|
||||||
|
type: Object as PropType<AddressType>,
|
||||||
|
default: AddressDataDefualt,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
const emit = defineEmits(["update:statusEdit"]);
|
const emit = defineEmits(["update:statusEdit"]);
|
||||||
|
|
||||||
|
|
@ -835,4 +846,4 @@ const getClass = (val: boolean) => {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
</HistoryTable>
|
</HistoryTable>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import type { zipCodeOption } from "../../components/PersonalDetail/profileType";
|
import type { zipCodeOption } from "../../components/PersonalDetail/profileType";
|
||||||
interface DataOption {
|
interface DataOption {
|
||||||
id: number|null;
|
id: number | null;
|
||||||
name:string|null;
|
name: string | null;
|
||||||
disable?: boolean;
|
disable?: boolean;
|
||||||
}
|
}
|
||||||
interface DataOption1 {
|
interface DataOption1 {
|
||||||
id: string|null;
|
id: string | null;
|
||||||
name:string|null;
|
name: string | null;
|
||||||
disable?: boolean;
|
disable?: boolean;
|
||||||
}
|
}
|
||||||
interface DataOptionInsignia {
|
interface DataOptionInsignia {
|
||||||
|
|
@ -133,6 +133,24 @@ interface Address {
|
||||||
registSame: boolean;
|
registSame: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const AddressDataDefualt: Address = {
|
||||||
|
registSubDistrict: "",
|
||||||
|
registSubDistrictId: "",
|
||||||
|
registZipCode: "",
|
||||||
|
registDistrict: "",
|
||||||
|
registDistrictId: "",
|
||||||
|
registProvince: "",
|
||||||
|
registProvinceId: "",
|
||||||
|
currentSubDistrict: "",
|
||||||
|
currentSubDistrictId: "",
|
||||||
|
currentZipCode: "",
|
||||||
|
currentDistrict: "",
|
||||||
|
currentDistrictId: "",
|
||||||
|
currentProvince: "",
|
||||||
|
currentProvinceId: "",
|
||||||
|
registSame: false,
|
||||||
|
};
|
||||||
|
|
||||||
export type {
|
export type {
|
||||||
DataOption,
|
DataOption,
|
||||||
DataOptionInsignia,
|
DataOptionInsignia,
|
||||||
|
|
@ -149,4 +167,5 @@ export type {
|
||||||
Education,
|
Education,
|
||||||
Family,
|
Family,
|
||||||
Address,
|
Address,
|
||||||
|
AddressDataDefualt,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue