From 627df1a30a824b2c76fce58ac1e9d709ade4fde3 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Wed, 20 Sep 2023 15:33:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20bug=20=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A,=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20validate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Proposals/listProposals.vue | 6 +- .../07_insignia/components/2_Manage/Tab1.vue | 6 +- .../07_insignia/components/2_Manage/Tab2.vue | 2 +- .../07_insignia/components/2_Manage/Tab3.vue | 2 +- .../07_insignia/components/2_Manage/Tab4.vue | 2 +- .../components/2_Manage/downloadFile.vue | 6 +- .../components/3_result/DialogForm.vue | 23 +- .../components/3_result/fileUpload.vue | 180 +++--- .../components/4_Allocate/Main.vue | 224 ++----- .../components/4_Allocate/OrgAdd.vue | 590 +++++++++--------- .../components/4_Allocate/OrgList.vue | 6 +- .../components/5_Borrow/DialogForm.vue | 75 ++- .../07_insignia/components/5_Borrow/Main.vue | 4 +- src/modules/07_insignia/components/Coin.vue | 506 --------------- src/modules/07_insignia/router.ts | 6 +- src/modules/07_insignia/views/ResultPage.vue | 13 +- 16 files changed, 484 insertions(+), 1167 deletions(-) delete mode 100644 src/modules/07_insignia/components/Coin.vue diff --git a/src/modules/07_insignia/components/1_Proposals/listProposals.vue b/src/modules/07_insignia/components/1_Proposals/listProposals.vue index a12376622..cf03179a8 100644 --- a/src/modules/07_insignia/components/1_Proposals/listProposals.vue +++ b/src/modules/07_insignia/components/1_Proposals/listProposals.vue @@ -49,8 +49,6 @@ const columns = ref([ field: "period_year", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { name: "period_start", @@ -78,12 +76,10 @@ const columns = ref([ name: "statusRoyal", align: "center", label: "สถานะราชกิจจานุเบกษา", - sortable: true, + sortable: false, field: "statusRoyal", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, ]); diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 565575114..6f801ba8d 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -54,7 +54,7 @@ const columns = ref([ name: "no", align: "left", label: "ลำดับ", - sortable: true, + sortable: false, field: "no", headerStyle: "font-size: 14px", style: "font-size: 14px", @@ -765,6 +765,7 @@ const closeModalEdit = () => { { { ([ name: "no", align: "left", label: "ลำดับ", - sortable: true, + sortable: false, field: "no", headerStyle: "font-size: 14px", style: "font-size: 14px", diff --git a/src/modules/07_insignia/components/2_Manage/Tab3.vue b/src/modules/07_insignia/components/2_Manage/Tab3.vue index ba0b431b1..3d6dd0f4d 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab3.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab3.vue @@ -47,7 +47,7 @@ const columns = ref([ name: "no", align: "left", label: "ลำดับ", - sortable: true, + sortable: false, field: "no", headerStyle: "font-size: 14px", style: "font-size: 14px", diff --git a/src/modules/07_insignia/components/2_Manage/Tab4.vue b/src/modules/07_insignia/components/2_Manage/Tab4.vue index 28938d0c2..9d56c7f6c 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab4.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab4.vue @@ -27,7 +27,7 @@ const columns = ref([ name: "no", align: "left", label: "ลำดับ", - sortable: true, + sortable: false, field: "no", headerStyle: "font-size: 14px", style: "font-size: 14px", diff --git a/src/modules/07_insignia/components/2_Manage/downloadFile.vue b/src/modules/07_insignia/components/2_Manage/downloadFile.vue index b232504be..02bc9a282 100644 --- a/src/modules/07_insignia/components/2_Manage/downloadFile.vue +++ b/src/modules/07_insignia/components/2_Manage/downloadFile.vue @@ -37,7 +37,7 @@ const downloadDocument = async (type: string) => { }) .then(async (res) => { if (download) { - downloadFile(res, `${titleReport.value}.${type}`); + downloadFile(res, `ประวัติสำหรับการเสนอขอพระราชทานเหรียญจักรพรรดิมาลา.${type}`); } }) .catch((e) => { @@ -91,6 +91,4 @@ const downloadFile = (response: any, filename: string) => { - - - + \ No newline at end of file diff --git a/src/modules/07_insignia/components/3_result/DialogForm.vue b/src/modules/07_insignia/components/3_result/DialogForm.vue index 69380384b..6d8e22301 100644 --- a/src/modules/07_insignia/components/3_result/DialogForm.vue +++ b/src/modules/07_insignia/components/3_result/DialogForm.vue @@ -53,11 +53,22 @@ const paymentOp = [ { label: "จัดส่งทางไปรษณี", value: "จัดส่งทางไปรษณี" }, { label: "มารับด้วยตัวเอง", value: "มารับด้วยตัวเอง" }, ]; -const clearDateExam = () => { - receivedate.value = null; + +// reset วันที่ประกาศราชกิจจานุเบกษา +const clearAnnounceExam = () => { announceDate.value = null; - invoiceDate.value = null; }; + +// reset วันที่ได้รับพระราชทานเครื่องราชอิสริยาภรณ์ +const clearDateReceivedate = () => { + receivedate.value = null; +} + +// reset วันที่จ่ายใบกำกับ +const clearDateInvoiceDate = () => { + invoiceDate.value = null; +} + const props = defineProps({ modal: Boolean, save: { @@ -419,7 +430,7 @@ const searchcardid = () => { " :label="`${'วันที่ได้รับพระราชทานเครื่องราชอิสริยาภรณ์'}`" clearable - @clear="clearDateExam" + @clear="clearDateReceivedate" >