diff --git a/src/modules/10_order/components/step/step04.vue b/src/modules/10_order/components/step/step04.vue index 22d318ec3..440986627 100644 --- a/src/modules/10_order/components/step/step04.vue +++ b/src/modules/10_order/components/step/step04.vue @@ -68,7 +68,17 @@ const getCommandDetail = async () => { // console.log(orderStatusName.value); fetchReportCover("pdf", orderId.value); - fetchReportAttachment("pdf", orderId.value); + + if (code.value != 'c-pm-10' && + code.value != 'c-pm-11' && + code.value != 'c-pm-12' && + code.value != 'c-pm-16' && + code.value != 'c-pm-18' && + code.value != 'c-pm-19' && + code.value != 'c-pm-20' && + code.value != 'c-pm-21') { + fetchReportAttachment("pdf", orderId.value); + } }) .catch((e) => { messageError($q, e); @@ -310,7 +320,7 @@ const postfileTailer = async () => { formData.append("File", fileTailer.value); await http .post(config.API.attachmentFileId(orderId.value), formData) - .then(()=>{ + .then(() => { success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((e) => { @@ -330,7 +340,7 @@ const clickExecute = async (id: string) => { }) .catch((e) => { messageError($q, e); - }).finally(async()=> { + }).finally(async () => { await fecthstatusOrder() await getCommandDetail() hideLoader(); @@ -350,7 +360,7 @@ const validateFormUpload = () => { const validateForm = () => { return ( - order.value.trim() !== "" && + order.value.trim() !== "" && years.value !== null && date.value !== null ); @@ -383,8 +393,8 @@ const viewFileUpload = async (url: string) => {
คำสั่ง
- + ดาวน์โหลด @@ -412,11 +422,12 @@ const viewFileUpload = async (url: string) => { code != 'c-pm-16' && code != 'c-pm-18' && code != 'c-pm-19' && - code != 'c-pm-20' + code != 'c-pm-20' && + code != 'c-pm-21' " @click="setTab('second')" :class="getClass(tab == 'second')">
เอกสารแนบท้าย
- + ดาวน์โหลด @@ -498,7 +509,8 @@ const viewFileUpload = async (url: string) => { ดาวน์โหลดไฟล์คำสั่ง
-