fixing command
This commit is contained in:
parent
4bdcb8d9ce
commit
935c1d0fb1
1 changed files with 11 additions and 11 deletions
|
|
@ -317,23 +317,23 @@ const saveDetail = () => {
|
|||
showLoader();
|
||||
|
||||
await putOrderData(); // บันทึกข้อมูลในส่วนของรายละเอียด
|
||||
await fetchReportCover("pdf", orderId.value); // ดึงรายงานคำสั่งใหม่
|
||||
// ดึงข้อมูลสถานะการออกคำสั่ง (Y = ออกคำสั่งได้แล้ว, N = เงื่อนไขยังไม่ครบไม่สามารถกดออกคำสั่งได้)
|
||||
fecthstatusOrder();
|
||||
|
||||
// เช็คประเภทคำสั่งถ้าไม่ใช่ type เหล่านี้จะมีแนบท้าย
|
||||
if (attachmentStatus.value) {
|
||||
// await fetchReportCover("pdf", orderId.value); // ดึงรายงานคำสั่งใหม่
|
||||
|
||||
// เช็คประเภทคำสั่งถ้าไม่ใช่ type เหล่านี้จะมีแนบท้าย และถ้าอยู่ใน tab ของแนบท้ายไหมถ้าอยู่เข้าเงื่อนไขนี้
|
||||
if (attachmentStatus.value && tab.value == "second") {
|
||||
// ดึงรายงานในส่วนของแนบท้ายมาใหม่
|
||||
await fetchReportAttachment("pdf", orderId.value);
|
||||
|
||||
// เช็คว่าถ้าอยู่ใน tab ของแนบท้ายไหมถ้าอยู่เข้าเงื่อนไขนี้
|
||||
if (tab.value == "second") {
|
||||
// แสดงผลส่วนของแนบท้ายใหม่
|
||||
await viewPDF(orderAttachmentPdf.value);
|
||||
}
|
||||
// // เช็คว่าถ้าอยู่ใน tab ของแนบท้ายไหมถ้าอยู่เข้าเงื่อนไขนี้
|
||||
// if (tab.value == "second") {
|
||||
// แสดงผลส่วนของแนบท้ายใหม่
|
||||
await viewPDF(orderAttachmentPdf.value);
|
||||
// }
|
||||
}
|
||||
|
||||
// ดึงข้อมูลสถานะการออกคำสั่ง (Y = ออกคำสั่งได้แล้ว, N = เงื่อนไขยังไม่ครบไม่สามารถกดออกคำสั่งได้)
|
||||
fecthstatusOrder();
|
||||
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue