From 45b04affa6baac156a3c4b30ff85b6ac9bb0e5e9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 8 Jul 2024 18:28:05 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20=3D>=20=E0=B9=81?= =?UTF-8?q?=E0=B8=99=E0=B8=9A=E0=B8=97=E0=B9=89=E0=B8=B2=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../10_order/components/step/step04.vue | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/modules/10_order/components/step/step04.vue b/src/modules/10_order/components/step/step04.vue index 8f6970559..14ab30351 100644 --- a/src/modules/10_order/components/step/step04.vue +++ b/src/modules/10_order/components/step/step04.vue @@ -128,19 +128,19 @@ const downloadCover = async (type: string) => { // โหลด เอกสารแนบท้าย const downloadAttachment = async (type: string) => { - if (type === "xlsx") { - genReportXLSX( - dataAttachmentxlxs.value, - `เอกสารแนบท้าย คำสั่ง ${orderName.value}`, - type - ); - } else { - genReport( - dataAttachment.value, - `เอกสารแนบท้าย คำสั่ง ${orderName.value}`, - type - ); - } + // if (type === "xlsx") { + // genReportXLSX( + // dataAttachmentxlxs.value, + // `เอกสารแนบท้าย คำสั่ง ${orderName.value}`, + // type + // ); + // } else { + genReport( + dataAttachment.value, + `เอกสารแนบท้าย คำสั่ง ${orderName.value}`, + type + ); + // } }; const dataCover = ref(); @@ -160,7 +160,7 @@ const fetchReportCover = async (type: string, orderId: string) => { }; const dataAttachment = ref(); -const dataAttachmentxlxs = ref(); +// const dataAttachmentxlxs = ref(); // เรียกไฟล์ เอกสารแนบท้าย const fetchReportAttachment = async (type: string, orderId: string) => { showLoader(); @@ -175,16 +175,16 @@ const fetchReportAttachment = async (type: string, orderId: string) => { hideLoader(); }); - showLoader(); - await http - .get(config.API.reportOrderAttachment("xlsx", orderId, code.value)) - .then(async (res) => { - dataAttachmentxlxs.value = res.data.result; - }) - .catch(async (e) => { - messageError($q, e); - hideLoader(); - }); + // showLoader(); + // await http + // .get(config.API.reportOrderAttachment("xlsx", orderId, code.value)) + // .then(async (res) => { + // dataAttachmentxlxs.value = res.data.result; + // }) + // .catch(async (e) => { + // messageError($q, e); + // hideLoader(); + // }); }; function genPDf(data: any) { @@ -552,15 +552,15 @@ const viewFileUpload = async (url: string) => { - ไฟล์ .xls + ไฟล์ .docx