diff --git a/src/views/SimproV2/CreatedProyek/ViewProject.js b/src/views/SimproV2/CreatedProyek/ViewProject.js index 9ad4b67..2d38445 100644 --- a/src/views/SimproV2/CreatedProyek/ViewProject.js +++ b/src/views/SimproV2/CreatedProyek/ViewProject.js @@ -93,7 +93,7 @@ const createMarkup = (element) => { setProyekName(projectCharter.nama); setDescription(projectCharter.keterangan); setKodeShortname(projectCharter.kode_sortname); - setLokasiKantor(projectCharter.lokasi_kantor); + setLokasiKantor(projectCharter.area_kerja); setDurasiProyek(projectCharter.durasi_proyek); setMulaiProyek(projectCharter.mulai_proyek); setValueProyek(projectCharter.value_proyek); @@ -171,12 +171,11 @@ const createMarkup = (element) => { setAssignHR(assignHR) } }, [assignHR]); - const handleExportPdf = async () => { const doc = new jsPDF({ orientation: 'landscape', unit: 'px', - format: [1130, 1000] + format: [1106, 1000] }); doc.html(reportTemplateRef.current, { @@ -212,8 +211,8 @@ const createMarkup = (element) => { const K3Number = number[index]; return(
{ K3Number }
{val.checklist_k3_name ? val.checklist_k3_name : "-"}
{ K3Number }
{val.checklist_k3_name ? val.checklist_k3_name : "-"}
{ ChecklistNumber }
{val.item ? val.item : "-"}
+
{ ChecklistNumber }
{val.item ? val.item : "-"}
{val.status_exist === true ? "Tersedia" : "Tidak tersedia"}
+
{val.level_issue ? val.level_issue : "-"}
{val.description ? val.description : "-"}
{val.description ? val.description : "-"}
+
{val.level_risk ? val.level_risk : "-"}
{val.description ? val.description : "-"}
{val.preventive_risk ? val.preventive_risk : "-"}
{val.description ? val.description : "-"}
{val.preventive_risk ? val.preventive_risk : "-"}
{milestoneLetter}
+{milestoneLetter}
{val.status}
+{val.status}
{moment(val.deadline).format(formatDate)}
+{moment(val.deadline).format(formatDate)}
- {proyekName ?? '-'} +{proyekName ?? '-'} |
|
- {description ?? '-'} +{description ?? '-'} |
|
- {currency}. {formatThousand(budget)} +{currency}. {formatThousand(budget)} |
|
- {objectives ?? '-'} + |
|
{projectSuccess ?? '-'}
+