diff --git a/src/modules/06_evaluate/components/step/step8.vue b/src/modules/06_evaluate/components/step/step8.vue index ee4c4b6..98886dd 100644 --- a/src/modules/06_evaluate/components/step/step8.vue +++ b/src/modules/06_evaluate/components/step/step8.vue @@ -58,7 +58,14 @@ async function fetchPathUpload( file: any ) { const body = { - fileList: { fileName: type, metadata: {} }, + fileList: { + fileName: type, + metadata: { + subject: subject.value, + author: author.value, + position: assignedPosition.value, + }, + }, }; if (id && file) { showLoader(); @@ -124,8 +131,29 @@ function checkDoc() { }); } +const author = ref(""); +const subject = ref(""); +const assignedPosition = ref(""); + +async function fetcheSigner(id: string) { + showLoader(); + await http + .get(config.API.evaluationSignerDoc2(id)) + .then((res) => { + const data = res.data.result; + author.value = data.authorDoc2; + subject.value = data.subjectDoc2; + assignedPosition.value = data.assignedPosition; + }) + .catch(() => {}) + .finally(() => { + hideLoader(); + }); +} + onMounted(async () => { await checkDoc(); + await fetcheSigner(evaluateId.value); });