diff --git a/src/components/Dialogs/DialogDebug.vue b/src/components/Dialogs/DialogDebug.vue index 42230b6f4..e84ef99da 100644 --- a/src/components/Dialogs/DialogDebug.vue +++ b/src/components/Dialogs/DialogDebug.vue @@ -354,11 +354,6 @@ function onClose() {
-
-
- ผู้ดูแลระบบจะติดต่อกลับผ่านทางอีเมลที่ท่านระบุ กรุณาตรวจสอบอีเมลของท่านเป็นระยะ -
-
@@ -384,6 +378,12 @@ function onClose() { v-model="formData.phone" class="inputgreen" hide-bottom-space + :rules="[ + () => + !!formData.email || + !!formData.phone || + 'กรุณากรอกอีเมลหรือเบอร์โทรติดต่อกลับ', + ]" />
diff --git a/src/modules/04_registryPerson/views/edit/components/FormPosition.vue b/src/modules/04_registryPerson/views/edit/components/FormPosition.vue index b6ef8c829..c30fec131 100644 --- a/src/modules/04_registryPerson/views/edit/components/FormPosition.vue +++ b/src/modules/04_registryPerson/views/edit/components/FormPosition.vue @@ -706,7 +706,6 @@ function classInput(val: boolean) { hide-bottom-space autocomplete="on" name="organization" - :label="`${'หน่วยงาน'}`" /> diff --git a/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue b/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue index 08d05ff47..2f773e5e1 100644 --- a/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue +++ b/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue @@ -370,32 +370,18 @@ async function uploadFile(event: any, date: any) { */ async function downloadAttachment(type: string, id: string) { showLoader(); - try { - const response = await http.get( - config.API.retirementReport + `/${type}/${id}`, - { - headers: { - accept: - type === "pdf" - ? "application/pdf" - : "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - "content-Type": "application/json", - }, - responseType: "blob", - } - ); - const blob = response.data; - const url = URL.createObjectURL(blob); - const link = document.createElement("a"); - link.href = url; - link.download = `รายชื่อผู้เกษียณอายุราชการ.${type}`; - link.click(); - URL.revokeObjectURL(url); - } catch (e) { - messageError($q, e); - } finally { - hideLoader(); - } + await http + .get(config.API.reportRetireList(type, id)) + .then(async (res) => { + const data = res.data.result; + await genReport(data, `รายชื่อผู้เกษียณอายุราชการ`, type); + }) + .catch(async (e) => { + messageError($q, JSON.parse(await e.response.data.text())); + }) + .finally(() => { + hideLoader(); + }); } // ยืนยันการแก้ไขข้อมูล