This commit is contained in:
Warunee Tamkoo 2024-06-30 23:58:53 +07:00
parent 935c1d0fb1
commit afa820f1f8

View file

@ -320,18 +320,21 @@ const saveDetail = () => {
// (Y = , N = ) // (Y = , N = )
fecthstatusOrder(); fecthstatusOrder();
// await fetchReportCover("pdf", orderId.value); // // tab
if (tab.value == "main") {
//
await fetchReportCover("pdf", orderId.value);
//
await viewPDF(orderAttachmentPdf.value);
}
// type tab // type tab
if (attachmentStatus.value && tab.value == "second") { if (attachmentStatus.value && tab.value == "second") {
// //
await fetchReportAttachment("pdf", orderId.value); await fetchReportAttachment("pdf", orderId.value);
// // tab
// if (tab.value == "second") {
// //
await viewPDF(orderAttachmentPdf.value); await viewPDF(orderAttachmentPdf.value);
// }
} }
hideLoader(); hideLoader();