From 089197d290833badb986af82184d8dcea07918e6 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Thu, 18 Apr 2024 10:11:18 +0700 Subject: [PATCH 1/3] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=84?= =?UTF-8?q?=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/scholarship/DetailView.vue | 6 +++--- src/modules/15_development/views/Scholarship.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue index b3db73264..668adb36c 100644 --- a/src/modules/15_development/components/scholarship/DetailView.vue +++ b/src/modules/15_development/components/scholarship/DetailView.vue @@ -48,15 +48,15 @@ const scholarshipTypeOp = ref([ { id: "DOMESTICE", name: "การศึกษาในประเทศ" }, { id: "NOABROAD", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่ไม่มีการไปต่างประเทศ)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่ไม่มีการไปต่างประเทศ)", }, { id: "ABROAD", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)", }, { id: "EXECUTIVE", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรประเภทนักบริหาร)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรประเภทนักบริหาร)", }, ]); const fundTypeOp = ref([ diff --git a/src/modules/15_development/views/Scholarship.vue b/src/modules/15_development/views/Scholarship.vue index c9cf3cfbd..425bef0a0 100644 --- a/src/modules/15_development/views/Scholarship.vue +++ b/src/modules/15_development/views/Scholarship.vue @@ -96,15 +96,15 @@ const scholarshipTypeOp = ref([ }, { id: "NOABROAD", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่ไม่มีการไปต่างประเทศ)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่ไม่มีการไปต่างประเทศ)", }, { id: "ABROAD", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรที่มีการไปต่างประเทศ)", }, { id: "EXECUTIVE", - name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยวงานภายนอก (หลักสูตรประเภทนักบริหาร)", + name: "ฝึกอบรมในประเทศที่ส่งไปพัฒนากับหน่วยงานภายนอก (หลักสูตรประเภทนักบริหาร)", }, ]); const itemDownload = ref([ From 0dba62fb43eee3f99c2d27a2db6c24486e5f3ea2 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Thu, 18 Apr 2024 10:11:57 +0700 Subject: [PATCH 2/3] =?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+?= =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1column=20=E0=B9=80?= =?UTF-8?q?=E0=B8=9B=E0=B9=89=E0=B8=B2=E0=B8=AB=E0=B8=A1=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=A2=E0=B9=88=E0=B8=AD=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/Target.vue | 56 ++++++++++++------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/src/modules/15_development/components/Target.vue b/src/modules/15_development/components/Target.vue index 151005c5b..389d74033 100644 --- a/src/modules/15_development/components/Target.vue +++ b/src/modules/15_development/components/Target.vue @@ -21,7 +21,6 @@ import type { import DialogHeader from "@/components/DialogHeader.vue"; -import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore"; import { useCounterMixin } from "@/stores/mixin"; const route = useRoute(); const projectId = ref(route.params.id.toLocaleString()); @@ -42,6 +41,16 @@ const columnsPlannedGoals = ref([ style: "font-size: 14px", format: (val) => convertNameGoals(val), }, + { + name: "groupTargetSub", + align: "left", + label: "กลุ่มเป้าหมายย่อย", + sortable: true, + field: "groupTargetSub", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + format: (val) => convertNameSubGoals(val), + }, { name: "posTypePlannedId", align: "left", @@ -75,6 +84,16 @@ const columnsActualGoals = ref([ style: "font-size: 14px", format: (val) => convertNameGoals(val), }, + { + name: "groupTargetSub", + align: "left", + label: "กลุ่มเป้าหมายย่อย", + sortable: true, + field: "groupTargetSub", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + format: (val) => convertNameSubGoals(val), + }, { name: "posTypeActualId", align: "left", @@ -83,9 +102,7 @@ const columnsActualGoals = ref([ field: "posTypeActualId", headerStyle: "font-size: 14px", style: "font-size: 14px", - // format: (val) => convertTypeGoals(val), }, - { name: "amount", align: "left", @@ -248,12 +265,18 @@ async function onSubmitGroup() { { groupTarget: formGroupTarget.groupTarget, groupTargetSub: formGroupTarget.groupTargetSub, - positions: formGroupTarget.positions.map((v) => ({ - position: v.position ? v.position : "", - posTypePlannedId: v.posTypeId ? v.posTypeId : "", - posLevelPlannedId: v.posLevelId ? v.posLevelId : "", - })), - type: formGroupTarget.type ? formGroupTarget.type : "", + positions: + formGroupTarget.groupTarget !== "OUTSIDERS" + ? formGroupTarget.positions.map((v) => ({ + position: v.position ? v.position : "", + posTypePlannedId: v.posTypeId ? v.posTypeId : "", + posLevelPlannedId: v.posLevelId ? v.posLevelId : "", + })) + : [], + type: + formGroupTarget.groupTarget === "OUTSIDERS" + ? formGroupTarget.type + : "", amount: formGroupTarget.amount, } ) @@ -416,6 +439,11 @@ function convertNameGoals(id: string) { return data && data?.name; } +function convertNameSubGoals(id: string) { + const data = groupSubOp.value.find((e: DataOption) => e.id === id); + return data && data?.name; +} + function convertNamePeoples(id: string) { const data = peoplesOp.value.find((e: DataOption) => e.id === id); return data && data?.name; @@ -665,16 +693,6 @@ onMounted(() => {
{{ col.value ? col.value : "-" }}
-
{{ col.value ? col.value : "-" }}
From 06881b5de0c14430011d6e0bdd6e8e7449c957c3 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Thu, 18 Apr 2024 10:12:57 +0700 Subject: [PATCH 3/3] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=84?= =?UTF-8?q?=E0=B8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15_development/components/scholarship/DetailView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue index 668adb36c..571ba01b3 100644 --- a/src/modules/15_development/components/scholarship/DetailView.vue +++ b/src/modules/15_development/components/scholarship/DetailView.vue @@ -667,11 +667,11 @@ onMounted(() => { outlined class="inputgreen" v-model="formBody.bookNo" - label="เลขที่หนังสิออนุมัติ" + label="เลขที่หนังสืออนุมัติ" hide-bottom-space :rules="[ (val: string) => - !!val || `${'กรุณากรอกเลขที่หนังสิออนุมัติ'}`, + !!val || `${'กรุณากรอกเลขที่หนังสืออนุมัติ'}`, ]" />