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(); });