hrms-mgt/src/modules/05_placement/views/03_receiveMain.vue

748 lines
25 KiB
Vue
Raw Normal View History

2023-07-28 08:34:52 +07:00
<script setup lang="ts">
import { ref, onMounted } from "vue";
2023-07-28 08:34:52 +07:00
import { useQuasar } from "quasar";
import { useRouter } from "vue-router";
import {
checkPermission,
checkPermissionList,
checkPermissionCreate,
} from "@/utils/permissions";
import { useCounterMixin } from "@/stores/mixin";
import { useTransferDataStore } from "@/modules/05_placement/store";
import http from "@/plugins/http";
import config from "@/app.config";
import type { QTableProps } from "quasar";
2024-12-20 10:29:07 +07:00
import type { FormDataAppoint } from "@/modules/05_placement/interface/request/Main";
import type {
ResponseData,
ResponseRow,
} from "@/modules/05_placement/interface/response/Receive";
2024-09-19 15:02:44 +07:00
import Dialogbody from "@/modules/05_placement/components/Receive/DialogOrders.vue";
import DialogHeader from "@/components/DialogHeader.vue";
2024-05-02 16:16:25 +07:00
import DialogOrgSelect from "@/components/Dialogs/DialogOrgSelect.vue";
const $q = useQuasar();
const router = useRouter();
const mixin = useCounterMixin();
const store = useTransferDataStore();
const { statusText, filterOption } = useTransferDataStore();
const {
showLoader,
hideLoader,
success,
messageError,
date2Thai,
dialogRemove,
2024-12-20 10:29:07 +07:00
onSearchDataTable,
} = mixin;
const status = ref<string>("");
const dataRecevice = ref<ResponseData[]>([]); //ข้อมูลรายการรับโอน
2024-09-19 15:02:44 +07:00
const filters = ref<ResponseRow[]>([]); //ข้อมูลรายการรับโอน
const dataRows = ref<ResponseRow>(); //ข้อมูลที่ต้องการเลือกหน่วยงานที่รับโอน
const modal = ref<boolean>(false); //แสดง popup ส่งไปออกคำสั่งรับโอน
const modalupload = ref<boolean>(false); //แสดง popup อัปโหลดเอกสาร
const modalTree = ref<boolean>(false); //แสดง popup เลือกหน่วยงานที่รับโอน
2024-09-19 15:02:44 +07:00
const personal = ref<ResponseData[]>([]); //ข้อมูลบุคคล
const personalId = ref<string>(""); //บุคคล
const files = ref<any>(); //ไฟล์
const posType = ref<string>(""); //ตำแหน่งประเภท
2024-09-19 15:02:44 +07:00
const posLevel = ref<string>(""); //ระดับตำแหน่ง
const position = ref<string>(""); //ตำแหน่ง
2024-05-02 16:16:25 +07:00
const type = ref<string | null>(null);
//Table
2024-09-19 15:02:44 +07:00
const rows = ref<ResponseRow[]>([]); //รายการรับโอน
const rowsData = ref<ResponseRow[]>([]); //รายการรับโอน
2024-09-19 15:02:44 +07:00
const rows2 = ref<ResponseRow[]>([]); //รายการออกคำสั่ง
const rows2Data = ref<ResponseRow[]>([]); //รายการออกคำสั่ง
2024-09-19 15:02:44 +07:00
const filterKeyword = ref<string>(""); //คำค้นหารายการรับโอน
const filterKeyword2 = ref<string>(""); //คำค้นหารายการออกคำสั่ง
2023-07-28 08:34:52 +07:00
const visibleColumns = ref<string[]>([
"no",
"citizenId",
2023-07-28 08:34:52 +07:00
"fullname",
"posTypeOld",
"positionNumberOld",
"organizationNameOld",
"organizationName",
2024-05-02 16:16:25 +07:00
"dateOfBirth",
"createdAt",
"status",
2023-07-28 08:34:52 +07:00
]);
const columns = ref<QTableProps["columns"]>([
{
name: "no",
align: "left",
label: "ลำดับ",
sortable: false,
2023-07-28 08:34:52 +07:00
field: "no",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "citizenId",
2023-07-28 08:34:52 +07:00
align: "left",
label: "เลขประจำตัวประชาชน",
2023-07-28 08:34:52 +07:00
sortable: true,
2024-05-02 16:16:25 +07:00
field: "citizenId",
2023-07-28 08:34:52 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
2023-07-28 08:34:52 +07:00
},
{
name: "fullname",
2023-07-28 08:34:52 +07:00
align: "left",
label: "ชื่อ-นามสกุล",
2023-07-28 08:34:52 +07:00
sortable: true,
field: "fullname",
2023-07-28 08:34:52 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
format(val, row) {
return `${row.prefix ?? ""}${row.firstName ?? ""} ${row.lastName ?? ""}`;
},
2023-07-28 08:34:52 +07:00
},
{
name: "positionNumberOld",
align: "left",
label: "เลขที่ตำแหน่งเดิม",
sortable: true,
field: "positionNumberOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "posTypeOld",
align: "left",
label: "ตำแหน่งประเภทเดิม",
sortable: true,
field: "posTypeOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return row.positionTypeOld
? `${row.positionTypeOld}${
row.positionLevelOld ? `(${row.positionLevelOld})` : ""
}`
: "";
},
},
{
name: "organizationNameOld",
align: "left",
label: "ตำแหน่ง/สังกัดเดิม",
sortable: true,
field: "organizationNameOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (val, row) => {
return row.organizationPositionOld
? `${row.organizationPositionOld.replace(/(.*)\s(.*)$/, "$1\n$2")} `
: "-";
},
},
2023-07-28 08:34:52 +07:00
{
name: "organizationName",
2023-07-28 08:34:52 +07:00
align: "left",
label: "หน่วยงานที่รับโอน",
sortable: true,
field: "organizationName",
2023-07-28 08:34:52 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
2024-12-23 16:22:36 +07:00
format: (val, row) => {
return `${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName}${row.posMasterNo})`;
},
2023-07-28 08:34:52 +07:00
},
{
2024-05-02 16:16:25 +07:00
name: "dateOfBirth",
2023-07-28 08:34:52 +07:00
align: "left",
label: "วัน/เดือน/ปี เกิด",
2023-07-28 08:34:52 +07:00
sortable: true,
2024-05-02 16:16:25 +07:00
field: "dateOfBirth",
2023-07-28 08:34:52 +07:00
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
2024-12-23 16:22:36 +07:00
format(val, row) {
return date2Thai(row.dateOfBirth);
},
},
{
2024-05-02 16:16:25 +07:00
name: "createdAt",
align: "left",
label: "วันที่ดำเนินการ",
sortable: true,
2024-05-02 16:16:25 +07:00
field: "createdAt",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
sortOrder: "da",
2024-12-23 16:22:36 +07:00
format(val, row) {
return date2Thai(row.createdAt);
},
},
{
2024-05-02 16:16:25 +07:00
name: "status",
align: "left",
label: "สถานะ",
sortable: true,
2024-05-02 16:16:25 +07:00
field: "status",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
2024-12-23 16:22:36 +07:00
format(val, row) {
return statusText(row.status);
},
2023-07-28 08:34:52 +07:00
},
]);
2024-12-20 10:29:07 +07:00
/** ฟังก์ชันดึงข้อมูลรายการรับโอน*/
async function fecthlistRecevice() {
showLoader();
await http
.get(config.API.receiveData() + `?status=${status.value}`)
.then(async (res) => {
const data = await res.data.result;
dataRecevice.value = data;
rows.value = data;
rowsData.value = data;
filters.value = data;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
2024-12-20 10:29:07 +07:00
/** ไปหน้าเพิ่มข้อมูลรายการรับโอน*/
function onAddReceive() {
router.push(`/placement/receive/add`);
}
2024-12-20 10:29:07 +07:00
/** ฟังก์ชันบันทึกการอัปโหลดเอกสาร*/
function onSubmitDoc() {
const formData = new FormData();
formData.append("File", files.value);
showLoader();
http
.put(config.API.receiveFile(personalId.value), formData)
.then(async () => {
await success($q, "บันทึกข้อมูลสำเร็จ");
clickCloseUpload();
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
2024-12-20 10:29:07 +07:00
/** ฟังก์ชันปิด popup ออกคำสั่ง*/
2024-09-19 15:02:44 +07:00
function clickClose() {
modal.value = false;
filterKeyword2.value = "";
2024-09-19 15:02:44 +07:00
}
2024-12-20 10:29:07 +07:00
/** ฟังก์ชันปิด popup อัปเดตไฟล์*/
2024-09-19 15:02:44 +07:00
function clickCloseUpload() {
modalupload.value = false;
files.value = null;
2024-09-19 15:02:44 +07:00
}
/**
* งกนเป popup เลอกหนวยงานทบโอน
2024-12-20 10:29:07 +07:00
* @param id id รายการรบโอนทเลอกหนวยงานทบโอน
* @param data อมลรายการรบโอน
2024-09-19 15:02:44 +07:00
*/
2024-12-20 10:29:07 +07:00
function openModalTree(id: string, data: ResponseRow) {
personalId.value = id;
personal.value = dataRecevice.value.filter((e: ResponseData) => e.id === id);
2024-05-02 16:16:25 +07:00
dataRows.value = data;
modalTree.value = true;
2024-05-02 16:16:25 +07:00
type.value = null;
posType.value = data.posTypeOldId;
posLevel.value = data.posLevelOldId;
position.value = data.positionOld;
2024-09-19 15:02:44 +07:00
}
/**
* งกนเป popup ปเดตไฟล
* @param id รายการทองการอปเดตไฟล
*/
function openUpload(id: string) {
personalId.value = id;
modalupload.value = true;
2024-09-19 15:02:44 +07:00
}
/**
* งกนยนยนการลบขอม
* @param id รายการทองการลบ
*/
function openDelete(id: string) {
dialogRemove($q, async () => {
showLoader();
await http
.delete(config.API.receiveDataId(id))
.then(async () => {
await fecthlistRecevice();
await success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
2024-12-20 10:29:07 +07:00
})
.finally(() => {
hideLoader();
});
});
2024-09-19 15:02:44 +07:00
}
2024-09-19 15:02:44 +07:00
/**
* งกนไปหนารายละเอยด
* @param id รายการทองการดรายละเอยก
*/
function nextPage(id: string) {
router.push({
2024-08-01 14:29:33 +07:00
path: `/placement/receive/${id}`,
});
2024-09-19 15:02:44 +07:00
}
2024-09-19 15:02:44 +07:00
/**
* งกนสงไปออกคำส
* นหารายชอออกคำสงตามสถานะ อน (APPROVE)
*/
function openModalOrder() {
const row = filters.value.filter(
2024-12-20 10:29:07 +07:00
(r: ResponseRow) =>
(r.status == "WAITTING" ||
r.status == "PENDING" ||
r.status == "APPROVE") &&
r.posMasterNo != null &&
r.educationOld &&
r.organizationPositionOld &&
r.positionTypeOld &&
r.positionLevelOld &&
r.positionNumberOld
);
rows2.value = row;
rows2Data.value = row;
modal.value = true;
2024-09-19 15:02:44 +07:00
}
2024-12-20 10:29:07 +07:00
/**
* งกนบนทกการเลอกหนวยงานทบโอน
* @param data อมลหนวยงานทบโอน
*/
async function onSave(data: FormDataAppoint) {
2024-05-02 16:16:25 +07:00
const dataAppoint = {
2024-09-03 11:28:01 +07:00
node: data.node,
2024-05-02 18:08:50 +07:00
nodeId: data.nodeId,
orgRevisionId: data.orgRevisionId,
positionId: data.positionId,
posMasterNo: data.posMasterNo,
positionName: data.positionName,
posTypeId: data.posTypeId,
posTypeName: data.posTypeName,
posLevelId: data.posLevelId,
posLevelName: data.posLevelName,
2025-03-24 17:13:41 +07:00
posExecutiveName: data.posExecutiveName,
2024-05-02 18:08:50 +07:00
reportingDate: data.reportingDate,
posmasterId: data.posmasterId,
typeCommand: data.typeCommand,
positionExecutiveField: data.positionExecutiveField,
positionArea: data.positionArea,
2024-05-02 18:08:50 +07:00
};
2024-05-02 16:16:25 +07:00
2024-05-02 18:08:50 +07:00
showLoader();
2024-10-10 15:03:24 +07:00
await http
2024-05-02 18:08:50 +07:00
.put(config.API.receivePosition(personalId.value), dataAppoint)
.then(async () => {
await fecthlistRecevice();
await success($q, "บันทึกข้อมูลสำเร็จ");
2024-05-02 18:08:50 +07:00
modalTree.value = false;
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
2024-05-02 18:08:50 +07:00
hideLoader();
});
2024-05-02 16:16:25 +07:00
}
function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
rowsData.value,
columns.value ? columns.value : []
);
}
2024-12-20 10:29:07 +07:00
/** ทำงานเมื่อมีการเรียกใช้ Components*/
onMounted(async () => {
await fecthlistRecevice();
});
2023-07-28 08:34:52 +07:00
</script>
<template>
<div class="toptitle text-dark col-12 row items-center">รายการรบโอน</div>
<q-card flat bordered class="col-12 q-mt-sm">
<div class="row q-pa-md">
2024-12-20 10:29:07 +07:00
<div class="col-12 q-gutter-sm">
<div class="row">
<div class="col-2">
<q-select
:model-value="status ? status : 'ทั้งหมด'"
outlined
dense
label="สถานะ"
:options="store.statusOp"
emit-value
map-options
option-label="name"
option-value="id"
fill-input
use-input
hide-selected
bg-color="white"
@filter="(inputValue:any,doneFn:Function) => filterOption(inputValue, doneFn) "
@update:model-value="(value:string)=>{(status = value),fecthlistRecevice()}"
>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
ไมอม
</q-item-section>
</q-item>
</template>
<template v-if="status" v-slot:append>
<q-icon
name="cancel"
@click.stop.prevent="(status = ''), fecthlistRecevice()"
class="cursor-pointer"
style="opacity: 0.6"
/>
</template>
</q-select>
</div>
<q-btn
v-if="checkPermission($route)?.attrIsCreate"
flat
round
color="primary"
@click="onAddReceive"
icon="mdi-plus"
>
<q-tooltip>เพมขอม</q-tooltip>
</q-btn>
<q-btn
v-if="
checkPermission($route)?.attrIsUpdate &&
checkPermissionList(['COMMAND']) &&
checkPermissionCreate('COMMAND')
"
size="14px"
flat
round
2024-12-04 16:13:12 +07:00
color="primary"
icon="mdi-account-arrow-right"
2024-09-19 15:02:44 +07:00
@click="openModalOrder()"
>
2023-07-28 08:34:52 +07:00
<q-tooltip>งไปออกคำสงรบโอน</q-tooltip>
</q-btn>
<q-space />
<q-input
standout
dense
v-model="filterKeyword"
ref="filterRef"
outlined
placeholder="ค้นหา"
2025-05-23 11:47:17 +07:00
@keydown.enter.prevent="onSearch"
>
2023-07-28 08:34:52 +07:00
<template v-slot:append>
<q-icon name="search" />
2023-07-28 08:34:52 +07:00
</template>
</q-input>
<q-select
2024-12-20 10:29:07 +07:00
class="q-ml-sm"
v-model="visibleColumns"
multiple
outlined
dense
options-dense
:display-value="$q.lang.table.columns"
emit-value
map-options
:options="columns"
option-value="name"
2024-11-05 16:33:46 +07:00
style="min-width: 140px"
/>
2023-07-28 08:34:52 +07:00
</div>
2024-12-20 10:29:07 +07:00
<div class="col-12">
<d-table
:columns="columns"
:rows="rows"
2024-09-12 11:37:34 +07:00
row-key="id"
:visible-columns="visibleColumns"
>
2023-07-28 08:34:52 +07:00
<template v-slot:header="props">
<q-tr :props="props">
2024-07-24 16:37:04 +07:00
<q-th auto-width />
2023-07-28 08:34:52 +07:00
<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">
<q-td auto-width>
2024-05-02 16:16:25 +07:00
<q-btn
icon="mdi-dots-horizontal-circle-outline"
color="secondary"
2024-05-02 16:16:25 +07:00
flat
round
dense
v-if="
(props.row.status !== 'REPORT' &&
props.row.status !== 'DONE' &&
checkPermission($route)?.attrIsGet) ||
(checkPermission($route)?.attrIsDelete &&
props.row.status !== 'REPORT' &&
props.row.status !== 'DONE') ||
(checkPermission($route)?.attrIsGet &&
checkPermission($route)?.attrIsDelete) ||
checkPermission($route)?.attrIsGet
"
2024-05-02 16:16:25 +07:00
>
<q-menu
transition-show="jump-down"
transition-hide="jump-up"
>
<q-list dense style="min-width: 100px">
<q-item
v-if="
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrIsGet &&
props.row.status !== 'REPORT' &&
props.row.status !== 'DONE'
"
2024-05-02 16:16:25 +07:00
clickable
v-close-popup
2024-05-02 18:08:50 +07:00
@click="openModalTree(props.row.id, props.row)"
2024-05-02 16:16:25 +07:00
>
<q-item-section style="min-width: 0px" avatar>
2024-05-02 16:16:25 +07:00
<q-icon
color="primary"
2024-05-02 16:16:25 +07:00
size="xs"
name="mdi-bookmark-outline"
/>
</q-item-section>
<q-item-section
>เลอกหนวยงานทบโอน
</q-item-section>
2024-05-02 16:16:25 +07:00
</q-item>
2024-05-02 16:16:25 +07:00
<q-item
v-if="
checkPermission($route)?.attrIsUpdate &&
checkPermission($route)?.attrIsGet &&
props.row.status !== 'REPORT' &&
props.row.status !== 'DONE'
"
2024-05-02 16:16:25 +07:00
clickable
v-close-popup
@click="openUpload(props.row.id)"
>
<q-item-section style="min-width: 0px" avatar>
<q-icon size="xs" name="attach_file" color="blue" />
2024-05-02 16:16:25 +07:00
</q-item-section>
<q-item-section>ปโหลดเอกสาร</q-item-section>
</q-item>
2024-05-02 16:16:25 +07:00
<q-item
v-if="checkPermission($route)?.attrIsGet"
2024-05-02 16:16:25 +07:00
clickable
v-close-popup
@click="nextPage(props.row.id)"
>
<q-item-section style="min-width: 0px" avatar>
<q-tooltip>รายละเอยด</q-tooltip>
<q-icon color="info" size="xs" name="mdi-eye" />
</q-item-section>
<q-item-section>รายละเอยด</q-item-section>
</q-item>
<q-item
v-if="
checkPermission($route)?.attrIsDelete &&
props.row.status !== 'REPORT' &&
props.row.status !== 'DONE'
2024-05-02 16:16:25 +07:00
"
clickable
v-close-popup
@click="openDelete(props.row.id)"
2024-05-02 16:16:25 +07:00
>
<q-item-section style="min-width: 0px" avatar>
2024-05-02 16:16:25 +07:00
<q-tooltip>ลบขอม</q-tooltip>
<q-icon color="red" size="xs" name="mdi-delete" />
2024-05-02 16:16:25 +07:00
</q-item-section>
<q-item-section>ลบ</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
</q-td>
<q-td v-for="col in props.cols" :key="col.name" :props="props">
2024-07-24 16:37:04 +07:00
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'dateOfBirth'">
{{
props.row.dateOfBirth
? date2Thai(props.row.dateOfBirth)
: "-"
}}
</div>
<div
v-else-if="col.name == 'organizationNameOld'"
class="text-html"
>
{{ col.value ? col.value : "-" }}
</div>
2024-07-24 16:37:04 +07:00
<div v-else-if="col.name == 'createdAt'">
{{
props.row.createdAt ? date2Thai(props.row.createdAt) : "-"
}}
</div>
2024-07-24 16:37:04 +07:00
<div v-else-if="col.name == 'organizationName'">
<div class="col-4">
<div>
{{
props.row.position !== null ? props.row.position : ""
}}{{
(props.row.posTypeName !== null &&
props.row.posTypeName === "บริหาร") ||
props.row.posTypeName === "อำนวยการ"
? `${props.row.posTypeName}`
: ""
}}{{
props.row.posLevelName !== null
? `${props.row.posLevelName}`
: ""
}}
</div>
<div>
2024-07-24 16:37:04 +07:00
{{ props.row.root !== null ? props.row.root : "-" }}
{{
props.row.rootShortName !== null
? `(${props.row.rootShortName})`
: ""
}}
</div>
<div>
2024-07-24 16:37:04 +07:00
{{
props.row.nodeName !== null ? props.row.nodeName : ""
}}
{{
props.row.nodeShortName !== null
? `(${props.row.nodeShortName}${props.row.posMasterNo})`
: ""
}}
</div>
</div>
</div>
<div v-else>
{{ col.value ? col.value : "-" }}
</div>
</q-td>
2024-05-02 16:16:25 +07:00
</q-tr>
2023-07-28 08:34:52 +07:00
</template>
</d-table>
</div>
</div>
</div>
</q-card>
<!-- ปโหลดเอกสาร -->
2024-11-15 16:53:28 +07:00
<q-dialog v-model="modalupload" persistent>
<q-card style="width: 600px">
<q-form greedy @submit.prevent @validation-success="onSubmitDoc">
2024-09-19 15:02:44 +07:00
<DialogHeader tittle="อัปโหลดเอกสาร" :close="clickCloseUpload" />
<q-separator />
<q-card-section class="q-py-sm">
<div class="col-12 row items-center q-col-gutter-sm">
<div class="col-12">
<q-file
outlined
dense
v-model="files"
label="อัปโหลดเอกสาร"
lazy-rules
:rules="[
2024-09-19 15:02:44 +07:00
(val:string) => val || 'กรุณาเลือกไฟล์หนังสือถึงหน่วยงานที่รับโอน',
]"
hide-bottom-space
>
<template v-slot:prepend>
<q-icon name="attach_file" />
</template>
</q-file>
</div>
</div>
</q-card-section>
<q-separator />
<div class="row q-pa-sm">
<q-space />
<q-btn label="บันทึก" color="secondary" type="submit">
<q-tooltip>นท</q-tooltip>
</q-btn>
</div>
</q-form>
</q-card>
</q-dialog>
2024-09-19 15:02:44 +07:00
<!-- ออกคำส -->
<Dialogbody
v-model:modal="modal"
v-model:filter-keyword2="filterKeyword2"
:click-close="clickClose"
v-model:rows="rows2"
v-model:rowsData="rows2Data"
2024-09-19 15:02:44 +07:00
:fecthlist-recevice="fecthlistRecevice"
:next-page="nextPage"
/>
<!-- เลอกหนวยงานทบโอน -->
2024-05-02 16:16:25 +07:00
<DialogOrgSelect
:title="`เลือกหน่วยงานที่รับโอน`"
v-model:modal="modalTree"
v-model:type="type"
:pos-type="posType"
:pos-level="posLevel"
2024-05-02 16:16:25 +07:00
:position="position"
:data-rows="dataRows"
2024-05-02 16:16:25 +07:00
:onSubmit="onSave"
2023-09-05 11:23:43 +07:00
/>
2023-07-28 08:34:52 +07:00
</template>
<style scoped lang="scss"></style>