โครงสร้างอัตรากำลัง => สืบทอดตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-12 15:29:21 +07:00
parent 937bf4cf7b
commit fbb6783bfb
5 changed files with 437 additions and 12 deletions

View file

@ -22,6 +22,8 @@ import DialogSort from "@/modules/02_organizationalNew/components/DialogSortPosi
import DialogMovePos from "@/modules/02_organizationalNew/components/DialogMovePos.vue";
import DialogHistoryPos from "@/modules/02_organizationalNew/components/DialogHistoryPos.vue";
import DialogSelectPerson from "@/modules/02_organizationalNew/components/DialogSelectPerson.vue";
import DialogInherit from "@/modules/02_organizationalNew/components/DialogInherit.vue";
/** importStore*/
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
import { useCounterMixin } from "@/stores/mixin";
@ -78,6 +80,12 @@ const listMenu = ref<ListMenu[]>([
type: "MOVE",
color: "positive",
},
{
label: "สืบทอดตำแหน่ง",
icon: "mdi-account-multiple-outline",
type: "INHERIT",
color: "deep-orange",
},
{
label: "ประวัติตำแหน่ง",
icon: "history",
@ -356,6 +364,12 @@ function removePerson(id: string) {
);
}
const modalDialogInherit = ref<boolean>(false);
function onClickInherit(id: string) {
modalDialogInherit.value = !modalDialogInherit.value;
rowId.value = id;
}
/** ดึงข้อมูลสถิติจำนวนด้านบน*/
function getSummary() {
showLoader();
@ -655,6 +669,8 @@ async function genReportDoc(data: any) {
? onClickMovePos(props.row.id, 'SINGER')
: item.type === 'HISTORY'
? onClickHistoryPos(props.row.id)
: item.type === 'INHERIT'
? onClickInherit(props.row.id)
: null
"
>
@ -798,12 +814,16 @@ async function genReportDoc(data: any) {
<!-- ประวตำแหน -->
<DialogHistoryPos v-model:modal="modalDialogHistoryPos" :rowId="rowId" />
<!-- เลอกคนครอง -->
<DialogSelectPerson
v-model:modal="modalSelectPerson"
:dataDetailPos="dataDetailPos"
:fetchDataTable="props.fetchDataTable"
:getSummary="getSummary"
/>
<!-- บทอดตำแหน -->
<DialogInherit v-model:modal="modalDialogInherit" :rowId="rowId" />
</template>
<style lang="scss" scoped>