From 8d4813b79e3c9d76e15c9b6fbabdc482d3ed1036 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 21 Sep 2023 16:22:56 +0700 Subject: [PATCH 1/4] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84?= =?UTF-8?q?=E0=B8=82=20fiter=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=A0=E0=B8=97=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/07_insignia/components/2_Manage/Tab1.vue | 1 + .../07_insignia/components/2_Manage/downloadFile.vue | 7 +++++-- src/modules/07_insignia/storeResult.ts | 2 +- src/modules/07_insignia/views/ResultPage.vue | 8 +++++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 17b215ea9..2c1c66a72 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -830,6 +830,7 @@ const closeModalEdit = () => { + { }) .then(async (res) => { if (download) { - downloadFile(res, `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}`); + downloadFile( + res, + `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}` + ); } }) .catch((e) => { @@ -91,4 +94,4 @@ const downloadFile = (response: any, filename: string) => { - \ No newline at end of file + diff --git a/src/modules/07_insignia/storeResult.ts b/src/modules/07_insignia/storeResult.ts index 65f2574d4..5113d8288 100644 --- a/src/modules/07_insignia/storeResult.ts +++ b/src/modules/07_insignia/storeResult.ts @@ -27,7 +27,7 @@ export const useResultDataStore = defineStore("insigniaResult", () => { insigniaOp.value = [{ name: "ทั้งหมด", id: "" }] insigniaOp2.value = [] data.forEach((e: any) => { - insigniaOp.value.push({ name: e.name, id: e.id }) + insigniaOp.value.push({ name: e.name, id: e.id, insigniaType: e.insigniaType.id }) }); data.forEach((e: any) => { insigniaOp2.value.push({ name: e.name, id: e.id }) diff --git a/src/modules/07_insignia/views/ResultPage.vue b/src/modules/07_insignia/views/ResultPage.vue index 0bef186be..19d87db6a 100644 --- a/src/modules/07_insignia/views/ResultPage.vue +++ b/src/modules/07_insignia/views/ResultPage.vue @@ -34,6 +34,7 @@ const profileType = ref(""); const fileResult = ref(null); const fileinvoice = ref(null); const loadView = ref(false); +const insigniaTypeOption = ref([]); onMounted(async () => { await fecthRound(); @@ -264,6 +265,11 @@ const columns = ref([ watch(tab, () => { if (tab.value !== "doc") { fecthlistInsignia(); + console.log(DataStore.insigniaOp); + + insigniaTypeOption.value = DataStore.insigniaOp.filter( + (e: any) => e.insigniaType == tab.value || e.name == "ทั้งหมด" + ); } }); watch(modal, () => { @@ -555,7 +561,7 @@ const paginationLabel = (start: number, end: number, total: number) => { emit-value map-options option-label="name" - :options="DataStore.insigniaOp" + :options="insigniaTypeOption" option-value="id" :readonly="false" :borderless="false" From 8dfa5ca02e7925241a1f33f8d3f226a89abdef24 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 21 Sep 2023 17:01:30 +0700 Subject: [PATCH 2/4] =?UTF-8?q?comment=20=E0=B8=AA=E0=B8=B3=E0=B8=99?= =?UTF-8?q?=E0=B8=B1=E0=B8=81=E0=B8=99=E0=B8=B2=E0=B8=A2=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/5_Borrow/DialogForm.vue | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue index ba1e40563..0e27b7b63 100644 --- a/src/modules/07_insignia/components/5_Borrow/DialogForm.vue +++ b/src/modules/07_insignia/components/5_Borrow/DialogForm.vue @@ -126,18 +126,17 @@ const fetchOrgList = async () => { id: e.organizationId, name: e.organizationName, })); - - if (props.action == "editData") { - OrgList.value = [ - { - id: "00000000-0000-0000-0000-000000000000", - name: "สำนักนายกรัฐมนตรี", - }, - ...orgArr, - ]; - } else { - OrgList.value = orgArr; - } + // if (props.action == "editData") { + // OrgList.value = [ + // { + // id: "00000000-0000-0000-0000-000000000000", + // name: "สำนักนายกรัฐมนตรี", + // }, + // ...orgArr, + // ]; + // } else { + OrgList.value = orgArr; + // } }) .catch((err) => { messageError($q, err); @@ -160,7 +159,6 @@ const fetchOrgList = async () => { // }); // }; - // บันทึกข้อมูลการยืม-คืน const clickSave = async () => { await myForm.value!.validate().then((result: boolean) => { @@ -236,12 +234,12 @@ const closeDialog = () => { // reset วันที่ยืม const clearReceiveDate = () => { receivedate.value = null; -} +}; // reset วันที่คืน const clearReturnDate = () => { returndate.value = null; -} +}; + + \ No newline at end of file From ce11307a77a039a2f7c466ad712b5ebe39b49d18 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 22 Sep 2023 09:35:10 +0700 Subject: [PATCH 4/4] =?UTF-8?q?=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=84?= =?UTF-8?q?=E0=B8=B1=E0=B8=94=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=96=E0=B9=89=E0=B8=B2=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=81=E0=B8=84=E0=B9=88=E0=B8=B2=E0=B8=8A=E0=B8=B3=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=990=20=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A5=E0=B8=B5=E0=B8=A2=E0=B8=A3=E0=B8=84=E0=B9=88?= =?UTF-8?q?=E0=B8=B2=20=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=98=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=8A=E0=B8=B3=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=87=E0=B8=B4?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/views/02_qualify/PeriodAdd.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 58d81888c..55f4aaf49 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -469,7 +469,7 @@
- เลือกวีธีการชำระเงิน + เลือกวิธีการชำระเงิน
@@ -479,6 +479,7 @@ val="payment1" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -500,6 +501,7 @@ val="payment2" color="blue" class="q-mr-md" + :disable="fee <= 0" /> @@ -1129,14 +1131,20 @@ const columnsPosition = ref([ }, ]); -watch(organizationShortName, (count: DataOption, prevCount: DataOption) => { +watch(organizationShortName, (count: any, prevCount: any) => { organizationNameOptions.value = []; }); -watch(organizationName, (count: DataOption, prevCount: DataOption) => { +watch(organizationName, (count: any, prevCount: any) => { positionPathOptions.value = []; }); +watch(fee, (count: any, prevCount: any) => { + if (fee.value <= 0) { + pay.value = ""; + } +}); + onMounted(async () => { hideLoader(); if (route.params.id != undefined) {