From c060a2bd0ef07b37bba5ce9c26c96e5b0d9f6620 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 1 Apr 2024 13:42:24 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=95=E0=B8=B4?= =?UTF-8?q?=E0=B8=94=E0=B8=95=E0=B8=B2=E0=B8=A1=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=A1=E0=B8=B4=E0=B8=99=E0=B8=9C=E0=B8=A5=20?= =?UTF-8?q?=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=AD=E0=B8=B7=E0=B9=88=E0=B8=99?= =?UTF-8?q?=E0=B9=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/FollowResult.vue | 75 ++++- .../15_development/components/Other.vue | 279 +++++++++++++++--- .../15_development/interface/index/Main.ts | 7 +- .../15_development/interface/request/Main.ts | 16 + 4 files changed, 334 insertions(+), 43 deletions(-) diff --git a/src/modules/15_development/components/FollowResult.vue b/src/modules/15_development/components/FollowResult.vue index 60bcd886c..eca5c6946 100644 --- a/src/modules/15_development/components/FollowResult.vue +++ b/src/modules/15_development/components/FollowResult.vue @@ -3,7 +3,10 @@ import { onMounted, reactive, ref } from "vue"; import { useQuasar } from "quasar"; import type { FormFollowResult } from "@/modules/15_development/interface/request/Main"; -import type { DataOption } from "@/modules/15_development/interface/index/Main"; +import type { + DataOption, + DataOptionCheckBox, +} from "@/modules/15_development/interface/index/Main"; import { useCounterMixin } from "@/stores/mixin"; @@ -19,8 +22,10 @@ const formData = reactive({ results: "", obstacles: "", suggestions: "", + project: '', }); +const group = ref([]); const metricTypeOp = ref([ { id: "id1", @@ -35,6 +40,42 @@ const metricTypeOp = ref([ name: "name3", }, ]); +const projectOp = ref([ + { + id: "true", + name: "โครงการที่ เสนอขอ TN", + }, + { + id: "false", + name: "โครงการที่ ไม่ เสนอขอ TN", + }, +]); + +const optionsTNFirst = ref([ + { + label: "ผ่านการพิจารณา ได้รับการจัดงบประมาณตามข้อบัญญัติ", + value: "id1", + }, + { + label: + "ผ่านการพิจารณา ไม่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ แต่ได้รับการจัดสรรเงินนอกงบประมาณ", + value: "id2", + }, + { + label: "ไม่ผ่านการพิจารณา แต่ได้รับการจัดสรรเงินนอกงบประมาณ", + value: "id3", + }, +]); +const optionsTNSecon = ref([ + { + label: "แต่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ", + value: "id1", + }, + { + label: "แต่ได้รับการจัดสรรเงินนอกงบประมาณ", + value: "id2", + }, +]); const options = ref([ "สำนักงานคณะกรรมการข้าราชการกรุงเทพมหานครกองบริหารทั้วไป", @@ -165,6 +206,38 @@ onMounted(() => { ]" /> +
+ ประเภทของผลการพิจารณาความเหมาะสมโครงการ +
+
+ +
+
+ +
diff --git a/src/modules/15_development/components/Other.vue b/src/modules/15_development/components/Other.vue index 1524ea790..1d6f8bd10 100644 --- a/src/modules/15_development/components/Other.vue +++ b/src/modules/15_development/components/Other.vue @@ -2,33 +2,44 @@ import { onMounted, reactive, ref } from "vue"; import { useQuasar } from "quasar"; -import type { FormFollowResult } from "@/modules/15_development/interface/request/Main"; +import type { FormFollowOther } from "@/modules/15_development/interface/request/Main"; import type { DataOption } from "@/modules/15_development/interface/index/Main"; import { useCounterMixin } from "@/stores/mixin"; +import http from "@/plugins/http"; +import config from "@/app.config"; const $q = useQuasar(); -const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); +const { showLoader, hideLoader, dialogConfirm, date2Thai, messageError } = + useCounterMixin(); -const formData = reactive({ - metricType: "", - indicators: "", - target: "", - calculation: "", +const formData = reactive({ + dateStart: null, + dateEnd: null, + totalDate: 0, + address: "", + province: "", + budget: "", + accept: null, + receive: null, + approved: null, + budgetPay: null, + issues:'' }); -const metricTypeOp = ref([ +const provinceOp = ref([]); +const budgetOp = ref([ { id: "id1", - name: "name1", + name: "งบ1", }, { id: "id2", - name: "name2", + name: "งบ2", }, { id: "id3", - name: "name3", + name: "งบ3", }, ]); @@ -40,62 +51,248 @@ function onSubmit() { dialogConfirm($q, () => {}); } +const getProvince = async () => { + showLoader(); + http + .get(config.API.province) + .then((res) => { + const data = res.data.result; + provinceOp.value = data.map((item: DataOption) => ({ + id: item.id, + name: item.name, + })); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); +}; + onMounted(() => { - console.log("ข้อมูลเบื้องต้น"); + getProvince(); });