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; }; +