diff --git a/src/modules/05_placement/components/Receive/receiveDetail2.vue b/src/modules/05_placement/components/Receive/receiveDetail2.vue index f92611c76..8e7018134 100644 --- a/src/modules/05_placement/components/Receive/receiveDetail2.vue +++ b/src/modules/05_placement/components/Receive/receiveDetail2.vue @@ -49,7 +49,36 @@ const status = ref(""); const myForm = ref(null); const edit = ref(false); - +const rows = ref([]); +const columns = ref([ + { + name: "no", + align: "left", + label: "ลำดับ", + sortable: true, + field: "no", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "fileName", + align: "left", + label: "ชื่อไฟล์", + sortable: true, + field: "fileName", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, + { + name: "btnMicrosoft", + align: "right", + label: "ปุ่ม", + sortable: true, + field: "btnMicrosoft", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + }, +]); const profileId = ref(""); const educationOld = ref(""); const organizationPositionOld = ref(""); @@ -170,7 +199,17 @@ const getData = async () => { .get(config.API.receiveDataId(paramsId.toString())) .then(async (res: any) => { const data = res.data.result; - + // console.log(data); + let list: any[] = []; + if (data.docs.length > 0) { + data.docs.map((doc: any) => { + list.push({ + pathName: doc.pathName ?? "", + fileName: doc.fileName ?? "", + }); + }); + } + rows.value = list; profileId.value = data.profileId; title.value.fullname = `${data.firstname ?? "-"} ${data.lastname ?? "-"}`; title.value.organizationPositionOld = data.organizationPositionOld ?? "-"; @@ -1012,6 +1051,37 @@ const getClass = (val: boolean) => { + +
+
เอกสารเพิ่มเติม
+
+
+
+ + + +
+
diff --git a/src/modules/05_placement/components/Receive/receiveMain.vue b/src/modules/05_placement/components/Receive/receiveMain.vue index 56d03433d..a60171a4a 100644 --- a/src/modules/05_placement/components/Receive/receiveMain.vue +++ b/src/modules/05_placement/components/Receive/receiveMain.vue @@ -45,6 +45,8 @@ const popup = () => { modal.value = true; }; +const modalupload = ref(false); + const modalTree = ref(false); const personal = ref([]); const personalId = ref(""); @@ -70,7 +72,8 @@ const visibleColumns2 = ref([ const filterKeyword = ref(""); const filterKeyword2 = ref(""); const filterRef = ref(null); - + const files = ref(); + const fileDocDataUpload = ref([]); const listRecevice = ref([]); const filters = ref([]); const rows = ref([ @@ -309,6 +312,32 @@ const fecthlistRecevice = async () => { }); }; +const fileUploadDoc = async (files: any) => { + files.forEach((file: any) => { + fileDocDataUpload.value.push(file); + }); +}; + +const addUpload= async () => { + // showLoader(); + // await http + // .post(config.API.listRoundInsignia()) + // .then(() => { + // success($q, "บันทึกข้อมูลสำเร็จ"); + // }) + // .catch((e) => { + // messageError($q, e); + // }) + // .finally(async () => { + // hideLoader(); + // }); +}; + +const SaveData = async () => { + await addUpload(); + await clickCloseUpload(); +}; + const resetFilter = () => { filterKeyword.value = ""; filterKeyword2.value = ""; @@ -328,6 +357,9 @@ const add = () => { const clickClose = () => { modal.value = false; }; +const clickCloseUpload = () => { + modalupload.value = false; +}; const openModalTree = (id: string) => { personalId.value = id; @@ -337,6 +369,11 @@ const openModalTree = (id: string) => { modalTree.value = true; }; +const openUpload = (id: string) => { + personalId.value = id; + modalupload.value = true; +}; + const openDelete = (id: string) => { dialogRemove($q, async () => await fetchDataDelete(id)); }; @@ -594,6 +631,35 @@ const saveOrder = async () => { >เลือกหน่วยงานที่รับโอน + + + + + อัพโหลดเอกสาร + { + + + + + + +
+
+ + + + +
+
+
+ + + + บันทึก + + +
+
+