From 0295ec3e5f801386443cd347f3919b54a371413f Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 17 Mar 2025 10:59:06 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=95=E0=B8=B2?= =?UTF-8?q?=E0=B8=A1=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2_InvestigateFacts/EditPage.vue | 5 +- .../3_InvestigateDisciplinary/EditPage.vue | 34 +++- .../interface/index/Main.ts | 1 + .../12_evaluatePersonal/views/MainPage.vue | 2 +- .../21_report/views/05_reportSalary.vue | 184 +++++++++--------- 5 files changed, 124 insertions(+), 102 deletions(-) diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue index 6aa928593..14b87568a 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/EditPage.vue @@ -30,6 +30,7 @@ const { dialogConfirm, showLoader, success, hideLoader, messageError } = mixin; const route = useRoute(); const router = useRouter(); +const checkStatusResult = ref(false); const checkRoutePermisson = ref( route.name == "disciplineInvestigatefactsDetail" ); @@ -184,6 +185,8 @@ async function getData() { data.disciplineInvestigateRelevantDocs = dataList.disciplineInvestigateRelevantDocs; data.investigationStatusResult = dataList.investigationStatusResult; + checkStatusResult.value = + dataList.investigationStatusResult == "NO_CAUSE" ? true : false; data.investigationExtendStatus = dataList.investigationExtendStatus; data.investigationDaysExtend = dataList.investigationDaysExtend; data.isDisciplinary = dataList.isDisciplinary; @@ -375,7 +378,7 @@ onMounted(async () => {
(false); const isSaveInfo = ref(false); const checkRoutePermisson = ref( route.name == "disciplineDisciplinaryDetail" @@ -127,9 +128,16 @@ const dataInvestigatefacts = reactive({ async function fetchDetailDisciplinary() { showLoader(); await http - .get(config.API.disciplineDisciplinaryByGetId(id.value,mainStore.pathDiscip(route.name as string))) + .get( + config.API.disciplineDisciplinaryByGetId( + id.value, + mainStore.pathDiscip(route.name as string) + ) + ) .then((res) => { data.value = res.data.result; + checkStatusResult.value = + res.data.result.disciplinaryStatusResult == "NO_CAUSE" ? true : false; status.value = res.data.result.status; idComplaint.value = res.data.result.idComplaint; idInvestigate.value = res.data.result.idInvestigate; @@ -146,7 +154,12 @@ async function fetchDetailDisciplinary() { async function fetchDetailInvestigate() { showLoader(); await http - .get(config.API.investigateByGetId(idInvestigate.value,mainStore.pathInves(route.name as string))) + .get( + config.API.investigateByGetId( + idInvestigate.value, + mainStore.pathInves(route.name as string) + ) + ) .then((res) => { const dataList = res.data.result; dataInvestigatefacts.id = dataList.id; @@ -191,7 +204,12 @@ async function fetchDetailInvestigate() { async function fetchDetailComplaints() { showLoader(); await http - .get(config.API.complaintbyGetId(idComplaint.value,mainStore.pathComplaints(route.name as string))) + .get( + config.API.complaintbyGetId( + idComplaint.value, + mainStore.pathComplaints(route.name as string) + ) + ) .then((res) => { const dataList = res.data.result; dataComplaints.id = dataList.id; @@ -227,7 +245,7 @@ async function fetchDetailComplaints() { * @param data ข้อมูล ใน form */ async function onSubmitDisciplinary(data: any) { - console.log("🚀 ~ onSubmitDisciplinary ~ data:", data) + console.log("🚀 ~ onSubmitDisciplinary ~ data:", data); showLoader(); await http .put(config.API.disciplineDisciplinaryById(id.value), data) @@ -345,8 +363,8 @@ function emitPerson(data: PersonsArray[]) { .put(config.API.disciplinarySuspend(id.value), { persons: dataMapId, }) - .then(async(res) => { - modalPopup.value = false + .then(async (res) => { + modalPopup.value = false; success($q, "ส่งไปพักราชการสำเร็จ"); // router.push(`/discipline/investigatefacts`); await fetchDetailDisciplinary(); @@ -407,14 +425,14 @@ onMounted(async () => {
{ const data = await res.data.result.map((item: ResOrg) => ({ - id: item.orgTreeId, + id: item.orgTreeDnaId, name: item.orgName, })); organizationOpsMain.value = data; diff --git a/src/modules/21_report/views/05_reportSalary.vue b/src/modules/21_report/views/05_reportSalary.vue index 1ef325366..7a24dfc8c 100644 --- a/src/modules/21_report/views/05_reportSalary.vue +++ b/src/modules/21_report/views/05_reportSalary.vue @@ -387,6 +387,97 @@ onMounted(() => { /> +
+ + + + + +
+ +
+ + +
+ +
+ +
+ +
+ +
+
{
- -
- - - - - -
- -
- - -
- -
- -
- -
- -
@@ -711,7 +711,7 @@ onMounted(() => {
-