From 3a974e84cbbe43b82fed076103d1a0d217e85360 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Wed, 10 Apr 2024 14:29:48 +0700 Subject: [PATCH 1/5] =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=AB=E0=B8=A1=E0=B8=B2=E0=B8=A2=20=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=9A=E0=B8=B1=E0=B8=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/MainTab.vue | 11 ++++++----- .../15_development/components/Target.vue | 16 +++++++++++----- .../15_development/interface/request/Main.ts | 17 ++++++++++++++++- .../15_development/interface/response/Main.ts | 9 ++++++++- 4 files changed, 41 insertions(+), 12 deletions(-) diff --git a/src/modules/15_development/components/MainTab.vue b/src/modules/15_development/components/MainTab.vue index 0d5fd5193..e0dbba93f 100644 --- a/src/modules/15_development/components/MainTab.vue +++ b/src/modules/15_development/components/MainTab.vue @@ -53,15 +53,16 @@ function fetchDataProject(id: string) { store.formAddProject.projectName = data.projectName; store.formAddProject.reason = data.reason; store.formAddProject.objective = data.objective; - /**เป้าหมาย*/ const plannedGoals = data.plannedGoals.map((e: ResPlannedGoals) => ({ groupTarget: e.groupTarget, groupTargetSub: e.groupTargetSub, - position: e.position, - posTypePlannedId: e.posTypePlannedId, - posLevelPlannedId: e.posLevelPlannedId, - type: e.type, + positions: e.plannedGoalPositions.map((v: any) => ({ + position: v.position, + posTypePlannedId: v.posTypePlannedId, + posLevelPlannedId: v.posLevelPlannedId, + })), + type: e.type ? e.type : null, amount: e.amount, })); const plannedPeoples = data.plannedPeoples.map((e: ResPeople) => ({ diff --git a/src/modules/15_development/components/Target.vue b/src/modules/15_development/components/Target.vue index 10ba8cfd7..10dd8b547 100644 --- a/src/modules/15_development/components/Target.vue +++ b/src/modules/15_development/components/Target.vue @@ -158,7 +158,7 @@ const formGroupTarget = reactive({ position: "", posType: "", level: "", - type: "", + type: null, amount: null, // positions: { // position: "", @@ -222,11 +222,14 @@ function onSubmitGroup() { const list = data.map((e: FormGroupTargetPlannedGoal) => ({ groupTarget: e.groupTarget, groupTargetSub: e.groupTargetSub, - positions: e.positions, + positions: e.positions.map((v: any) => ({ + position: v.position, + posTypePlannedId: v.posTypePlannedId, + posLevelPlannedId: v.posLevelPlannedId, + })), type: e.type ? e.type : null, amount: Number(e.amount), })); - console.log(list); if (isEdit.value) { plannedGoals.value.splice(rowIndex.value, 1, ...list); } else { @@ -376,7 +379,6 @@ onMounted(() => { plannedGoals.value = store.formAddProject.plannedGoals ? store.formAddProject.plannedGoals : []; - plannedPeoples.value = store.formAddProject.plannedPeoples ? store.formAddProject.plannedPeoples : []; @@ -401,7 +403,10 @@ onMounted(() => { กลุ่มเป้าหมาย @@ -464,6 +469,7 @@ onMounted(() => { formGroupTarget.groupTarget = props.row.groupTarget; formGroupTarget.groupTargetSub = props.row.groupTargetSub; formGroupTarget.amount = props.row.amount; + formGroupTarget.positions = props.row.positions; newModalGroupTarget = true; } " diff --git a/src/modules/15_development/interface/request/Main.ts b/src/modules/15_development/interface/request/Main.ts index b8d3a7e23..3d262f021 100644 --- a/src/modules/15_development/interface/request/Main.ts +++ b/src/modules/15_development/interface/request/Main.ts @@ -32,6 +32,14 @@ interface FormGroupTargetPlannedGoal { posLevelPlannedId: string; } ]; + plannedGoalPositions?: [ + { + position: string; + posTypePlannedId: string; + posLevelPlannedId: string; + } + ]; + groupTarget: string; groupTargetSub: string; position: string; @@ -202,7 +210,14 @@ interface actualGoals { interface PlannedGoals { groupTarget: string; groupTargetSub: string; - positions: [ + positions?: [ + { + position: string; + posTypePlannedId: string; + posLevelPlannedId: string; + } + ]; + plannedGoalPositions?: [ { position: string; posTypePlannedId: string; diff --git a/src/modules/15_development/interface/response/Main.ts b/src/modules/15_development/interface/response/Main.ts index 55346e830..392510085 100644 --- a/src/modules/15_development/interface/response/Main.ts +++ b/src/modules/15_development/interface/response/Main.ts @@ -88,7 +88,14 @@ interface ResActualGoals { interface ResPlannedGoals { groupTarget: string; groupTargetSub: string; - position: [ + plannedGoalPositions?: [ + { + position: string; + posTypePlannedId: string; + posLevelPlannedId: string; + } + ]; + positions?: [ { position: string; posTypePlannedId: string; From e0a7c8e2becb9d85c1c7c5b5739ef5231164f0a6 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Wed, 10 Apr 2024 15:45:03 +0700 Subject: [PATCH 2/5] =?UTF-8?q?UI=20=E0=B8=AA=E0=B8=A1=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=96=E0=B8=99=E0=B8=B0=2004,05?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/04_FormExecutivePosition.vue | 214 +++++++++++++++++- .../Forms/05_FormExecutiveLevel.vue | 176 +++++++++++++- 2 files changed, 382 insertions(+), 8 deletions(-) diff --git a/src/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue b/src/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue index 212191a98..105cc93e5 100644 --- a/src/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue +++ b/src/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue @@ -1,5 +1,211 @@ + + \ No newline at end of file +
+ +
+ +
+ +
+ +
+
+
+ + +
+
ระบบตำแหน่ง
+
+ คำอธิบายระดับ/พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย +
+
+
+
+ + + L1 ระดับ หัวหน้าฝ่ายในสังกัด + + + +
+ +
+
+
+
+ + + L2 ระดับ ผู้ช่วยผู้อำนวยการเขต + + + +
+ +
+
+
+
+ + + L3 ระดับ ผู้อำนวยการเขต + + + +
+ +
+
+
+
+ + + + บันทึกข้อมูล + + +
+
+
+ diff --git a/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue b/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue index 55efbd5f5..a4a0f6b24 100644 --- a/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue +++ b/src/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue @@ -1,5 +1,173 @@ + + \ No newline at end of file +
+ +
+ +
+ +
+ +
+
+
+ + +
+
ระบบตำแหน่ง
+
+ คำอธิบายระดับ/พฤติกรรมที่คาดหวัง/พฤติกรรมย่อย +
+
+
+
+ + + L1 ประเภทอำนวยการ ระดับสูง + + + +
+ +
+
+
+
+ + + L2 ประเภทบริหาร ระดับสูง + + + +
+ +
+
+
+
+ + + + บันทึกข้อมูล + + +
+
+
+ From 4824e2a9257d0e58d927e18d15be4171c03ad97a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 10 Apr 2024 16:04:17 +0700 Subject: [PATCH 3/5] =?UTF-8?q?UI=20=20=E0=B8=AA=E0=B8=A1=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=96=E0=B8=99=E0=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../14_KPI/components/competency/AddPage.vue | 61 ++-- .../competency/Forms/01_FormMain.vue | 161 +++++++++- .../competency/Forms/03_FormExecutive.vue | 276 +++++++++++++++++- .../components/scholarship/DetailView.vue | 5 + .../interface/request/Scholarship.ts | 1 + 5 files changed, 467 insertions(+), 37 deletions(-) diff --git a/src/modules/14_KPI/components/competency/AddPage.vue b/src/modules/14_KPI/components/competency/AddPage.vue index bb02d44a5..ec5f9284e 100644 --- a/src/modules/14_KPI/components/competency/AddPage.vue +++ b/src/modules/14_KPI/components/competency/AddPage.vue @@ -86,33 +86,33 @@ function onSubmit() { เพิ่มสมรรถนะ - - -
-
- -
- - - - + + +
+
+ - +
- - -
-
- - - + diff --git a/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue b/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue index d2fe1fd39..ff81b77d8 100644 --- a/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue +++ b/src/modules/14_KPI/components/competency/Forms/01_FormMain.vue @@ -1,5 +1,160 @@ +div + + \ No newline at end of file + + + + diff --git a/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue b/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue index c170c3da3..68d522f34 100644 --- a/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue +++ b/src/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue @@ -1,5 +1,275 @@ + + \ No newline at end of file + + + + diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue index e2f05f71f..11d0173d6 100644 --- a/src/modules/15_development/components/scholarship/DetailView.vue +++ b/src/modules/15_development/components/scholarship/DetailView.vue @@ -85,6 +85,7 @@ const dataGuarantor = reactive({ }); const formBody = reactive({ + profileId: "", rank: "", //ยศ prefix: "", //คำนำหน้าชื่อ firstName: "", //ชื่อ @@ -346,6 +347,9 @@ function onSelectGov(isGov: boolean) { function upDate(data: DataPerson) { if (isSelectGov.value) { + console.log(data); + formBody.profileId = data.id; + formBody.rank = data.rank; formBody.prefix = data.prefix; formBody.firstName = data.firstName; formBody.lastName = data.lastName; @@ -364,6 +368,7 @@ function upDate(data: DataPerson) { dataPerson.positionSide = data.positionSide ? data.positionSide : "-"; isGov.value = true; } else { + formBody.guarantorRank = data.rank; formBody.guarantorPrefix = data.prefix; formBody.guarantorFirstName = data.firstName; formBody.guarantorLastName = data.lastName; diff --git a/src/modules/15_development/interface/request/Scholarship.ts b/src/modules/15_development/interface/request/Scholarship.ts index 4c02f519d..226105b54 100644 --- a/src/modules/15_development/interface/request/Scholarship.ts +++ b/src/modules/15_development/interface/request/Scholarship.ts @@ -1,4 +1,5 @@ interface FormsSholarship { + profileId: string; rank: string; //ยศ prefix: string; //คำนำหน้าชื่อ firstName: string; //ชื่อ From 2e5fd500a3bd81de0cd1815f14e6bf50153e68ec Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 10 Apr 2024 16:27:45 +0700 Subject: [PATCH 4/5] updated --- src/modules/13_salary/store/SalaryListsStore.ts | 6 +++--- src/modules/15_development/views/Scholarship.vue | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/13_salary/store/SalaryListsStore.ts b/src/modules/13_salary/store/SalaryListsStore.ts index c601e168b..d94245e00 100644 --- a/src/modules/13_salary/store/SalaryListsStore.ts +++ b/src/modules/13_salary/store/SalaryListsStore.ts @@ -134,15 +134,15 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => { name: "แบบ 3 กท บัญชีแสดงวันลาครึ่งปี ขรก. (เกษียณอายุราชการ)", }, { - id: "gov-07", + id: "gov-07-01", name: "แนบท้ายคำสั่งเลื่อนเงินเดือนข้าราชการเกษียณ", }, { - id: "gov-08", + id: "gov-07", name: "แนบท้ายคำสั่งเลื่อนเงินเดือน รอบตุลาคม", }, { - id: "gov-09", + id: "gov-08", name: "แนบท้ายคำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อนเงินเดือน รอบตุลาคม", }, ]); diff --git a/src/modules/15_development/views/Scholarship.vue b/src/modules/15_development/views/Scholarship.vue index 646d2f1c6..c9cf3cfbd 100644 --- a/src/modules/15_development/views/Scholarship.vue +++ b/src/modules/15_development/views/Scholarship.vue @@ -217,6 +217,7 @@ onMounted(() => {
{ option-label="name" label="เลือกประเภททุน" @update:model-value="fetchNewList" - style="width: 400px;" + style="width: 350px;" />
From e97d99ae4dccb0d51dbba0ddf9e994eb948131d2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 10 Apr 2024 16:31:26 +0700 Subject: [PATCH 5/5] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3/=E0=B8=AB=E0=B8=A5=E0=B8=B1=E0=B8=81?= =?UTF-8?q?=E0=B8=AA=E0=B8=B9=E0=B8=95=E0=B8=A3=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9D=E0=B8=B6=E0=B8=81=E0=B8=AD=E0=B8=9A=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/MainTab.vue | 8 +++-- .../components/ProjectDetail.vue | 36 +++++++++---------- .../15_development/interface/request/Main.ts | 1 - .../15_development/interface/response/Main.ts | 2 +- 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/modules/15_development/components/MainTab.vue b/src/modules/15_development/components/MainTab.vue index e0dbba93f..7d4c29b18 100644 --- a/src/modules/15_development/components/MainTab.vue +++ b/src/modules/15_development/components/MainTab.vue @@ -54,7 +54,7 @@ function fetchDataProject(id: string) { store.formAddProject.reason = data.reason; store.formAddProject.objective = data.objective; /**เป้าหมาย*/ - const plannedGoals = data.plannedGoals.map((e: ResPlannedGoals) => ({ + const plannedGoals = data.plannedGoals.map((e: any) => ({ groupTarget: e.groupTarget, groupTargetSub: e.groupTargetSub, positions: e.plannedGoalPositions.map((v: any) => ({ @@ -117,7 +117,11 @@ function fetchDataProject(id: string) { store.formAddProject.dateEnd = data.dateEnd; store.formAddProject.totalDate = data.totalDate; store.formAddProject.address = data.address; - store.formAddProject.provinceIds = data.provinceIds; + + const provinces = data.provinces.map((e: any) => e.id); + const provincesId = [...provinces]; + store.formAddProject.provinceIds = provincesId; + store.formAddProject.budget = data.budget; store.formAddProject.accept = data.accept; store.formAddProject.receive = data.receive; diff --git a/src/modules/15_development/components/ProjectDetail.vue b/src/modules/15_development/components/ProjectDetail.vue index a564464ac..d3f44a818 100644 --- a/src/modules/15_development/components/ProjectDetail.vue +++ b/src/modules/15_development/components/ProjectDetail.vue @@ -9,30 +9,26 @@ import { useDevelopmentDataStore } from "@/modules/15_development/store/developm const store = useDevelopmentDataStore(); const projectTypeOp = ref([ - { id: "1", name: "โครงการตามยุทธศาสตร์" }, - { id: "2", name: "โครงการตามภารกิจประจำของหน่วยงาน" }, - { id: "3", name: "โครงการใหม่" }, - { id: "4", name: "โครงการต่อเนื่อง" }, + { id: "STRATEGIC_PROJECT", name: "โครงการตามยุทธศาสตร์" }, + { id: "MISSION_PROJECT", name: "โครงการตามภารกิจประจำของหน่วยงาน" }, + { id: "NEW_PROJECT", name: "โครงการใหม่" }, + { id: "ONGOING_PROJEC", name: "โครงการต่อเนื่อง" }, ]); const projectCharacteristicsOp = ref([ - { id: "1", name: "ไป-กลับ" }, - { id: "2", name: "พักค้าง" }, - { id: "3", name: "ไป-กลับและพักค้าง" }, + { id: "GO_BACK", name: "ไป-กลับ" }, + { id: "HOLD", name: "พักค้าง" }, + { id: "GO_BACK_HOLD", name: "ไป-กลับและพักค้าง" }, ]); const projectTechniquesOp = ref([ - { id: "1", name: "การอบรม" }, - { id: "2", name: "การประชุม" }, - { id: "3", name: "การสัมมนา" }, - { id: "4", name: "การศึกษาดูงาน" }, - { id: "5", name: "การสัมมนาทางวิชาการ" }, - { id: "6", name: "การสัมมนาเชิงปฏิบัติการ" }, - { id: "7", name: "การบรรยายพิเศษ" }, - { id: "8", name: "การฝึกศึกษา" }, + { id: "TRAINING", name: "การอบรม" }, + { id: "MEETING", name: "การประชุม" }, + { id: "SEMINAR", name: "การสัมมนา" }, + { id: "STUDY_TOUR", name: "การศึกษาดูงาน" }, + { id: "ACADEMIC_SEMINAR", name: "การสัมมนาทางวิชาการ" }, + { id: "WORKSHOP", name: "การสัมมนาเชิงปฏิบัติการ" }, + { id: "SPECIAL_LECTURE", name: "การบรรยายพิเศษ" }, + { id: "STUDY_TRAINING", name: "การฝึกศึกษา" }, ]); - -onMounted(() => { - console.log("ลักษณะโครงการ"); -});