From 2e2c4f6fb68f7ee76e55cdd281a3a4b96ea47274 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Thu, 24 Aug 2023 17:37:06 +0700 Subject: [PATCH] =?UTF-8?q?process=20=E0=B8=88=E0=B8=B1=E0=B8=94=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=84=E0=B8=B3=E0=B8=82=E0=B8=AD=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/07_insignia/api.insignia.ts | 4 +- src/components/Dialogs/Information.vue | 38 +++ src/components/Dialogs/PopupReason.vue | 66 ++++ .../07_insignia/components/2_Manage/Tab1.vue | 284 ++++-------------- .../07_insignia/components/2_Manage/Tab2.vue | 145 +++------ .../07_insignia/components/2_Manage/Tab3.vue | 13 +- .../components/2_Manage/listManage.vue | 193 +++++++----- src/modules/07_insignia/store.ts | 6 +- 8 files changed, 348 insertions(+), 401 deletions(-) create mode 100644 src/components/Dialogs/Information.vue create mode 100644 src/components/Dialogs/PopupReason.vue diff --git a/src/api/07_insignia/api.insignia.ts b/src/api/07_insignia/api.insignia.ts index ae391cfb6..299203d89 100644 --- a/src/api/07_insignia/api.insignia.ts +++ b/src/api/07_insignia/api.insignia.ts @@ -27,5 +27,7 @@ export default { // record noteround: () => `${insignia}/request/note`, - + insigniaSendToDirector: (roundId: string, ocId: string) => `${insignia}/request/officer/approve/${roundId}/${ocId}`, + insigniaDirectorBackToEdit: (roundId: string, ocId: string) => `${insignia}/request/director/reject/${roundId}/${ocId}`, + insigniaDirectorApproved: (roundId: string, ocId: string) => `${insignia}/request/director/approve/${roundId}/${ocId}`, }; diff --git a/src/components/Dialogs/Information.vue b/src/components/Dialogs/Information.vue new file mode 100644 index 000000000..05747f2de --- /dev/null +++ b/src/components/Dialogs/Information.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/components/Dialogs/PopupReason.vue b/src/components/Dialogs/PopupReason.vue new file mode 100644 index 000000000..e2e8d82af --- /dev/null +++ b/src/components/Dialogs/PopupReason.vue @@ -0,0 +1,66 @@ + + + \ No newline at end of file diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index bff986079..13b719acf 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -287,6 +287,7 @@ const clickAdd = async (id: string) => { "ต้องการยืนยันการเพิ่มรายชื่อขอพระราชทานเครื่องราชฯ นี้หรือไม่ ?" ); }; + const addlistperson = async (id: string) => { showLoader(); let data = { @@ -333,6 +334,7 @@ const clickmodalEdit = (props: any) => { fecthInsignia(); // fecthInsigniaType(); }; + const clickSave = () => { dialogConfirm( $q, @@ -343,6 +345,7 @@ const clickSave = () => { "ต้องการยืนยันการแก้ไขเครื่องราชฯ ที่ยื่นขอนี้หรือไม่ ?" ); }; + const listEdit = async (profileId: string) => { let data: any = { insigniaId: insignia.value, @@ -368,6 +371,7 @@ const listEdit = async (profileId: string) => { } }); }; + const clickReject = (profileId: string) => { dialogConfirm( $q, @@ -378,6 +382,7 @@ const clickReject = (profileId: string) => { "ต้องการยืนยันการย้ายข้อมูลนี้หรือไม่ ?" ); }; + const listreject = async (profileId: string) => { await http .get(config.API.insigniaReject(profileId)) @@ -398,6 +403,7 @@ const listreject = async (profileId: string) => { } }); }; + const clickDelete = (profileId: string) => { dialogRemove( $q, @@ -408,6 +414,7 @@ const clickDelete = (profileId: string) => { "ต้องการยืนยันการลบข้อมูลนี้หรือไม่ ?" ); }; + const listdelete = async (profileId: string) => { await http .get(config.API.insigniaDelete(profileId)) @@ -428,6 +435,7 @@ const listdelete = async (profileId: string) => { } }); }; + const insignia = ref(""); const insigniaOptions = ref([]); const insigniaType = ref(""); @@ -477,127 +485,55 @@ const pagination2 = ref({ }); const paging = ref(true); const paging2 = ref(true); -const paginationLabel = (start: string, end: string, total: string) => { +const paginationLabel = (start: number, end: number, total: number) => { if (paging.value == true) return " " + start + "-" + end + " ใน " + total; else return start + "-" + end + " ใน " + total; }; -const paginationLabel2 = (start: string, end: string, total: string) => { +const paginationLabel2 = (start: number, end: number, total: number) => { if (paging2.value == true) return " " + start + "-" + end + " ใน " + total; else return start + "-" + end + " ใน " + total; }; +