เพิ่มรายละเอียด ฟิลด์ที่อ่าน/อัปเดตข้อมูลจากกรมการปกครองผ่านทาง Linkage Center

This commit is contained in:
setthawutttty 2024-10-09 17:47:22 +07:00
parent 84c7415d7b
commit cbfc9dbc21
2 changed files with 90 additions and 7 deletions

View file

@ -22,6 +22,7 @@ const { dialogConfirm, showLoader, hideLoader, messageError, success } =
/**
* props
*/
const modalInfo = ref<boolean>(false);
const modal = defineModel<boolean>("modal", { required: true });
const props = defineProps({
fetchData: { type: Function, requied: true },
@ -167,6 +168,12 @@ function fetchProfile() {
hideLoader();
});
}
/** popup รายละเอียดของ ขออัปเดตข้อมูลจากกรมการปกครอง */
function onInfo() {
modalInfo.value = true;
}
watch(
() => modal.value,
() => {
@ -202,6 +209,18 @@ watch(
doneFn:Function) => filterOption(inputValue, doneFn
) "
>
<template v-slot:option="scope">
<q-item v-bind="scope.itemProps">
<q-item-section v-if="scope.index == 0">
<q-item-label @click="onInfo">{{
scope.opt
}}</q-item-label>
</q-item-section>
<q-item-section v-else>
<q-item-label>{{ scope.opt }}</q-item-label>
</q-item-section>
</q-item>
</template>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
@ -248,6 +267,67 @@ watch(
</q-form>
</q-card>
</q-dialog>
<!-- popup รายละเอยดของ ขออปเดตขอมลจากกรมการปกครอง -->
<q-dialog v-model="modalInfo">
<q-card style="width: 700px; max-width: 80vw">
<DialogHeader
tittle="ฟิลด์ที่อ่าน/อัปเดตข้อมูลจากกรมการปกครองผ่านทาง Linkage Center"
:close="() => (modalInfo = false)"
/>
<q-separator />
<q-card-section class="q-pa-none">
<ul class="list-main">
<li>เลขประจำ วประชาชน (ไมสามารถแกไขได)</li>
<li>คำนำหน</li>
<li></li>
<li>นามสก</li>
<li> เดอน เก</li>
<li>เพศ</li>
<li>สถานภาพ (งจากขอมลประวการจดทะเบยนสมรส, อมลประวการจดทะเบยนหย)</li>
<li>ญชาต</li>
<li>อยตามทะเบยนบาน
<ul>
<li>อย (านเลขท หม ตรอก ซอย ถนน ใสในฟลด)</li>
<li>แขวง/ตำ บล</li>
<li>เขต/อำ เภอ</li>
<li>งหว</li>
<li>รหสไปรษณ</li>
</ul>
</li>
<li>ดา
<ul>
<li>เลขประจำตวประชาชน</li>
<li>คำนำหน</li>
<li></li>
<li>นามสก</li>
</ul>
</li>
<li>มารดา
<ul>
<li>เลขประจำตวประชาชน</li>
<li>คำนำหน</li>
<li></li>
<li>นามสก</li>
</ul>
</li>
</ul>
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn label="ตกลง" color="secondary" type="submit"
><q-tooltip>ตกลง</q-tooltip></q-btn
>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<style scoped></style>
<style scoped lang="scss">
.list-main li::marker{
color: $primary;
}
</style>

View file

@ -4,14 +4,17 @@ import type { DataOption } from "@/modules/10_registry/interface/index/Main";
export const useRequestEditStore = defineStore("requestEditStore", () => {
const optionTopic = ref<string[]>([
"ขอแก้ไขคำนำหน้านาม ชื่อ นามสกุล",
"ขออัปเดตข้อมูลจากกรมการปกครอง",
"ขอแก้ไขรูปภาพประจำตัว",
"ขอแก้ไขชื่อ - นามสกุล คู่สมรส",
"ขอแก้ไขชื่อ - นามสกุล บิดา",
"ขอแก้ไขชื่อ - นามสกุล มารดา",
"ขอแก้ไขข้อมูลการได้รับพระราชทานเครื่องราชอิสริยาภรณ์/เหรียญจักรพรรดิมาลา",
"ขอแก้ไขประกาศเกียรติคุณ",
"ขอแก้ไขอาชีพ คู่สมรส",
"ขอแก้ไขอาชีพ บิดา",
"ขอแก้ไขอาชีพ มารดา",
"ขอแก้ไขข้อมูลเครื่องราชฯ เหรียญจักพรรดิมาลา",
"ขอแก้ไขข้อมูลประวัติการศึกษา",
"ขอแก้ไขข้อมูลประวัติการฝึกอบรม",
"ขอแก้ไขที่อยู่ปัจจุบัน",
"ขอแก้ไขเบอร์โทร",
"ขอแก้ไขข้อมูลบุตร",
]);
const optionStatus = ref<DataOption[]>([
{ id: "", name: "ทั้งหมด" },