131 lines
4.4 KiB
Vue
131 lines
4.4 KiB
Vue
<script setup lang="ts">
|
|
import { ref, reactive, watch } from "vue";
|
|
import { useQuasar } from "quasar";
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
import type { HistoryType } from "@/modules/02_organizationalNew/interface/index/Main";
|
|
|
|
import DialogHeader from "@/components/DialogHeader.vue";
|
|
|
|
import http from "@/plugins/http";
|
|
import config from "@/app.config";
|
|
|
|
const modal = defineModel<boolean>("structureDetail", { required: true });
|
|
|
|
const $q = useQuasar();
|
|
const mixin = useCounterMixin();
|
|
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
|
|
|
|
const formData = reactive<any>({
|
|
orgName: "สำนักงาน ก.ก.",
|
|
agencyName: "กลุ่มงานสารสนเทศฯศูนย์สารสนเทศ", //*ส่วนราชการ
|
|
orgType: "ส่วนราชการ", //*ประเภท
|
|
orgLevel: "กลุ่มงาน", //*ระดับ
|
|
status: "ปกติ", //*สถานะ
|
|
orgPhoneEx: "0111111111", //หมายเลขโทรศัพท์ที่ติดต่อจากภายนอก
|
|
orgPhoneIn: "0333333333", //หมายเลขโทรศัพท์ที่ติดต่อจากภายใน
|
|
orgFax: "023123456", //หมายเลขโทรสาร
|
|
});
|
|
|
|
function close() {
|
|
modal.value = false;
|
|
}
|
|
|
|
watch(
|
|
() => modal.value,
|
|
() => {
|
|
if (modal.value == true) {
|
|
}
|
|
}
|
|
);
|
|
</script>
|
|
<template>
|
|
<template>
|
|
<q-dialog v-model="modal" persistent>
|
|
<q-card :style="$q.screen.gt.md ? 'min-width: 40vw' : 'min-width: 70vw'">
|
|
<DialogHeader :tittle="`รายละเอียดโครงสร้าง`" :close="close" />
|
|
<q-separator />
|
|
<q-card-section>
|
|
<div class="q-px-md">
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>หน่วยงาน</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.orgName }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>ส่วนราชการ</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.agencyName }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>ประเภท</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.orgType }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>ระดับ</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.orgLevel }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>สถานะ</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.status }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p class="q-ma-none">เบอร์โทร</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p class="q-ma-none">ภายนอก {{ formData.orgPhoneEx }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row q-col-gutter-sm">
|
|
<div class="offset-4 col-8 text-grey-8">
|
|
<p>ภายใน {{ formData.orgPhoneIn }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row q-col-gutter-sm q-mb-xs">
|
|
<div class="col-4 text-bold">
|
|
<div>
|
|
<p>Fax</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 text-grey-8">
|
|
<p>{{ formData.orgFax }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</q-card-section>
|
|
</q-card>
|
|
</q-dialog>
|
|
</template>
|
|
</template>
|