diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index 1da06b539..e55e2c727 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -50,6 +50,7 @@ function updateAgency(name: string) { dense lazy-rules outlined + class="inputgreen" :model-value="Number(store.formAddProject.year) + 543" :label="`${'ปีงบประมาณ'}`" > @@ -69,7 +70,9 @@ function updateAgency(name: string) { -import { onMounted, reactive, ref, watchEffect } from "vue"; +import { reactive, ref } from "vue"; import { useQuasar } from "quasar"; import type { FormFollowResult } from "@/modules/15_development/interface/request/Main"; @@ -15,80 +15,16 @@ const $q = useQuasar(); const store = useDevelopmentDataStore(); const { showLoader, hideLoader, dialogConfirm } = useCounterMixin(); -const formData = reactive({ - metricType: "", - indicators: "", - target: "", - calculation: "", - measuRement: "", - results: "", - obstacles: "", - suggestions: "", - project: "", -}); - -const group = ref([]); -const metricTypeOp = ref([ - { - id: "id1", - name: "name1", - }, - { - id: "id2", - name: "name2", - }, - { - id: "id3", - name: "name3", - }, -]); const projectOp = ref([ { id: "OFFER", - name: "โครงการที่ เสนอขอ TN", + name: "โครงการที่เสนอขอ TN", }, { id: "NOOFFER", - name: "โครงการที่ ไม่ เสนอขอ TN", + name: "โครงการที่ไม่เสนอขอ TN", }, ]); - -const optionsTNFirst = ref([ - { - label: "ผ่านการพิจารณา ได้รับการจัดงบประมาณตามข้อบัญญัติ", - value: store.formAddProject.isPassAllocate, - }, - { - label: - "ผ่านการพิจารณา ไม่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isPassNoAllocate, - }, - { - label: "ไม่ผ่านการพิจารณา แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isNoPass, - }, -]); -const optionsTNSecon = ref([ - { - label: "แต่ได้รับการจัดสรรงบประมาณตามข้อบัญญัติ", - value: store.formAddProject.isBudget, - }, - { - label: "แต่ได้รับการจัดสรรเงินนอกงบประมาณ", - value: store.formAddProject.isOutBudget, - }, -]); - -watchEffect(() => {}); - -onMounted(() => { - optionsTNFirst.value.forEach((checkbox, index) => { - if (index === 0) checkbox.value = store.formAddProject.isPassAllocate; - else if (index === 1) - checkbox.value = store.formAddProject.isPassNoAllocate; - else if (index === 2) checkbox.value = store.formAddProject.isNoPass; - }); -});