From 6f168f0c8a2c7d265f03c19805d68320297fbad6 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 21 Feb 2024 14:11:16 +0700 Subject: [PATCH] no message --- .../02_organizationalNew/components/DialogFormPosition.vue | 6 ++++-- src/modules/02_organizationalNew/interface/index/Main.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/02_organizationalNew/components/DialogFormPosition.vue b/src/modules/02_organizationalNew/components/DialogFormPosition.vue index 596624952..ab7c74983 100644 --- a/src/modules/02_organizationalNew/components/DialogFormPosition.vue +++ b/src/modules/02_organizationalNew/components/DialogFormPosition.vue @@ -358,9 +358,10 @@ function onSubmit() { posDictField: e.positionField, //สายงาน posTypeId: e.posTypeId, //*ประเภทตำแหน่ง posLevelId: e.posLevelId, //*ระดับตำแหน่ง - posExecutiveId: e.posExecutiveId, //ตำแหน่งทางการบริหาร + posExecutiveId: e.posExecutiveId ? e.posExecutiveId:'', //ตำแหน่งทางการบริหาร posDictExecutiveField: e.positionExecutiveField, //ด้านทางการบริหาร posDictArea: e.positionArea, //ด้าน/สาขา + isSpecial: e.isSpecial, })); const body = { posMasterNoPrefix: formData.prefixNo, //*Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ) @@ -547,7 +548,8 @@ async function addPosition(data: RowDetailPositions) { item.posTypeId == data.posTypeId && item.positionArea == data.positionArea && item.positionExecutiveField == data.positionExecutiveField && - item.positionName == data.positionName + item.positionName == data.positionName && + item.isSpecial == data.isSpecial ); if (!isIdExist) { diff --git a/src/modules/02_organizationalNew/interface/index/Main.ts b/src/modules/02_organizationalNew/interface/index/Main.ts index 438caf701..f3ecf3e42 100644 --- a/src/modules/02_organizationalNew/interface/index/Main.ts +++ b/src/modules/02_organizationalNew/interface/index/Main.ts @@ -115,6 +115,7 @@ interface RowDetailPositions { posTypeId: string; posLevelId: string; posExecutiveId: string; + isSpecial: boolean; } interface NewPagination {