From 480393efe3935712ac587545b8b520a59efffd6c Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 15 Dec 2023 17:29:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=AA?= =?UTF-8?q?=E0=B8=B7=E0=B8=9A=20=E0=B8=AA=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/2_InvestigateFacts/Form.vue | 65 +++++- .../3_InvestigateDisciplinary/Form.vue | 68 +++++- .../4_Result/DialogSendToCommand.vue | 11 +- .../components/4_Result/EditPage.vue | 16 +- .../components/4_Result/Form.vue | 218 +++++++++++++++++- .../components/8_AppealComplain/Form.vue | 2 + .../11_discipline/interface/request/result.ts | 13 +- .../store/InvestigateFactStore.ts | 13 ++ 8 files changed, 375 insertions(+), 31 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index c0a6adf55..b8bb3d020 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -3,7 +3,7 @@ import { useRouter, useRoute } from "vue-router"; import { onMounted, ref, watch, reactive, computed } from "vue"; import { useQuasar } from "quasar"; import moment from "moment"; - +import PopupSendToNext from "@/modules/11_discipline/components/PopupSendToNext.vue"; import DialogDirector from "@/modules/11_discipline/components/DialogDirector.vue"; import DialogAddPersonal from "@/components/Dialogs/AddPersonal.vue"; import Table from "@/modules/11_discipline/components/DirectorTable.vue"; @@ -30,7 +30,7 @@ const toggleModal = () => (modalPerson.value = !modalPerson.value); /**เรียกใช้ store */ const investigateFactStore = useInvestigateFactStore(); const mainStore = useDisciplineMainStore(); - +const modalPopup = ref(false); const mixin = useCounterMixin(); const { filterFnOptionsType } = investigateFactStore; const { @@ -490,7 +490,7 @@ function calendarOpen() { /** เปลี่ยนสี เมื่อ readonly * @param val true/false */ -function inputEdit(val:boolean){ +function inputEdit(val: boolean) { return { "full-width cursor-pointer ": val, "full-width cursor-pointer inputgreen": !val, @@ -513,6 +513,33 @@ function inputEditExtend(val: boolean) { } } +function openModal(){ + modalPopup.value = true +} +function closePopup() { + modalPopup.value = false; +} + +function emitPerson(data: FormData[]) { + const dataMapId = data.map((item: FormData) => item.id); + console.log(dataMapId); + // showLoader(); + // http + // .put(config.API.investigateApprove(id.value), { + // persons: dataMapId, + // }) + // .then((res) => { + // // router.push(`/discipline/investigatefacts`); + // }) + // .catch((e) => { + // messageError($q, e); + // }) + // .finally(() => { + // hideLoader(); + // getData(); + // }); +} + onMounted(async () => { mainStore.rowsAdd = []; getOc(); @@ -521,7 +548,6 @@ onMounted(async () => { @@ -1465,6 +1499,17 @@ onMounted(async () => { :close="calendarModalclose" :lists="props.data.investigationExtendHistory" /> + +