|
|
@ -7,7 +7,7 @@ import _ from 'underscore' |
|
|
|
import './style.css' |
|
|
|
import './style.css' |
|
|
|
import { formatThousand, sortBy } from '../../../const/CustomFunc'; |
|
|
|
import { formatThousand, sortBy } from '../../../const/CustomFunc'; |
|
|
|
import { BASE_OSPRO, PROYEK_SEARCH} from "../../../const/ApiConst"; |
|
|
|
import { BASE_OSPRO, PROYEK_SEARCH} from "../../../const/ApiConst"; |
|
|
|
import { Tooltip } from 'antd'; |
|
|
|
import { Tooltip, Spin } from 'antd'; |
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
import axios from "../../../const/interceptorApi" |
|
|
|
import axios from "../../../const/interceptorApi" |
|
|
|
import autoTable from "jspdf-autotable"; |
|
|
|
import autoTable from "jspdf-autotable"; |
|
|
@ -47,6 +47,7 @@ const createMarkup = (element) => { |
|
|
|
const [HR, setAssignHR] = useState("") |
|
|
|
const [HR, setAssignHR] = useState("") |
|
|
|
const formatDate = "DD-MM-YYYY"; |
|
|
|
const formatDate = "DD-MM-YYYY"; |
|
|
|
const reportTemplateRef = useRef(null); |
|
|
|
const reportTemplateRef = useRef(null); |
|
|
|
|
|
|
|
const [loading, setLoading] = useState(true); |
|
|
|
const { t } = useTranslation(); |
|
|
|
const { t } = useTranslation(); |
|
|
|
const token = localStorage.getItem("token"); |
|
|
|
const token = localStorage.getItem("token"); |
|
|
|
|
|
|
|
|
|
|
@ -85,6 +86,7 @@ const createMarkup = (element) => { |
|
|
|
setMilestone([]) |
|
|
|
setMilestone([]) |
|
|
|
setPotentialRisks("") |
|
|
|
setPotentialRisks("") |
|
|
|
setApproval([]) |
|
|
|
setApproval([]) |
|
|
|
|
|
|
|
setLoading(false) |
|
|
|
} |
|
|
|
} |
|
|
|
}, [openDialog]); |
|
|
|
}, [openDialog]); |
|
|
|
|
|
|
|
|
|
|
@ -93,7 +95,7 @@ const createMarkup = (element) => { |
|
|
|
setProyekName(projectCharter.nama); |
|
|
|
setProyekName(projectCharter.nama); |
|
|
|
setDescription(projectCharter.keterangan); |
|
|
|
setDescription(projectCharter.keterangan); |
|
|
|
setKodeShortname(projectCharter.kode_sortname); |
|
|
|
setKodeShortname(projectCharter.kode_sortname); |
|
|
|
setLokasiKantor(projectCharter.lokasi_kantor); |
|
|
|
setLokasiKantor(projectCharter.area_kerja); |
|
|
|
setDurasiProyek(projectCharter.durasi_proyek); |
|
|
|
setDurasiProyek(projectCharter.durasi_proyek); |
|
|
|
setMulaiProyek(projectCharter.mulai_proyek); |
|
|
|
setMulaiProyek(projectCharter.mulai_proyek); |
|
|
|
setValueProyek(projectCharter.value_proyek); |
|
|
|
setValueProyek(projectCharter.value_proyek); |
|
|
@ -171,12 +173,11 @@ const createMarkup = (element) => { |
|
|
|
setAssignHR(assignHR) |
|
|
|
setAssignHR(assignHR) |
|
|
|
} |
|
|
|
} |
|
|
|
}, [assignHR]); |
|
|
|
}, [assignHR]); |
|
|
|
|
|
|
|
|
|
|
|
const handleExportPdf = async () => { |
|
|
|
const handleExportPdf = async () => { |
|
|
|
const doc = new jsPDF({ |
|
|
|
const doc = new jsPDF({ |
|
|
|
orientation: 'landscape', |
|
|
|
orientation: 'landscape', |
|
|
|
unit: 'px', |
|
|
|
unit: 'px', |
|
|
|
format: [1130, 1000] |
|
|
|
format: [1106, 1000] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
doc.html(reportTemplateRef.current, { |
|
|
|
doc.html(reportTemplateRef.current, { |
|
|
@ -212,14 +213,18 @@ const createMarkup = (element) => { |
|
|
|
const K3Number = number[index]; |
|
|
|
const K3Number = number[index]; |
|
|
|
return( |
|
|
|
return( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={{...tdStyle, width:50, textAlign:'center' }}><p style={pStyle}>{ K3Number }</p></td> |
|
|
|
<td style={{...tdStyle, width:50, textAlign:'center' }}><p style={{ ...pStyle, fontWeight:'normal' }}>{ K3Number }</p></td> |
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.checklist_k3_name ? val.checklist_k3_name : "-"}</p></td> |
|
|
|
<td style={ tdStyle } className='plr-10'><p style={{ ...pStyle, fontWeight:'normal' }}>{val.checklist_k3_name ? val.checklist_k3_name : "-"}</p></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
</tr>); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -231,10 +236,10 @@ const createMarkup = (element) => { |
|
|
|
const ChecklistNumber = number[index]; |
|
|
|
const ChecklistNumber = number[index]; |
|
|
|
return( |
|
|
|
return( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={{...tdStyle, width:50, textAlign:'center' }}><p style={pStyle}>{ ChecklistNumber }</p></td> |
|
|
|
<td style={{...tdStyle, width:50, textAlign:'center' }}><p style={{ ...pStyle, fontWeight:'normal' }}>{ ChecklistNumber }</p></td> |
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.item ? val.item : "-"}</p></td> |
|
|
|
<td style={ tdStyle } className='plr-10'><p style={{ ...pStyle, fontWeight:'normal' }}>{val.item ?? "-"}</p></td> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<td style={ tdStyle } className='plr-10'> |
|
|
|
<p style={pStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight:'normal' }}> |
|
|
|
{val.status_exist === true ? "Tersedia" : "Tidak tersedia"} |
|
|
|
{val.status_exist === true ? "Tersedia" : "Tidak tersedia"} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
@ -243,7 +248,12 @@ const createMarkup = (element) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
</tr>); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -254,17 +264,21 @@ const createMarkup = (element) => { |
|
|
|
return( |
|
|
|
return( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={{ ...tdStyle, width:50, textAlign:'center' }} className='plr-10'> |
|
|
|
<td style={{ ...tdStyle, width:50, textAlign:'center' }} className='plr-10'> |
|
|
|
<p style={pStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight:'normal' }}> |
|
|
|
{val.level_issue ? val.level_issue : "-"} |
|
|
|
{val.level_issue ? val.level_issue : "-"} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.description ? val.description : "-"}</p></td> |
|
|
|
<td style={ tdStyle } className='plr-10'><p style={{ ...pStyle, fontWeight:'normal' }}>{val.description ? val.description : "-"}</p></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
</tr>) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -275,18 +289,23 @@ const createMarkup = (element) => { |
|
|
|
return( |
|
|
|
return( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={{ ...tdStyle, width:50, textAlign:'center' }} className='plr-10'> |
|
|
|
<td style={{ ...tdStyle, width:50, textAlign:'center' }} className='plr-10'> |
|
|
|
<p style={pStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight:'normal' }}> |
|
|
|
{val.level_risk ? val.level_risk : "-"} |
|
|
|
{val.level_risk ?? "-"} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.description ? val.description : "-"}</p></td> |
|
|
|
<td style={ tdStyle } className='plr-10'><p style={{ ...pStyle, fontWeight:'normal' }}>{val.description ?? "-"}</p></td> |
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.preventive_risk ? val.preventive_risk : "-"}</p></td> |
|
|
|
<td style={ tdStyle } className='plr-10'><p style={{ ...pStyle, fontWeight:'normal' }}>{val.preventive_risk ?? "-"}</p></td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
</tr>) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -297,20 +316,25 @@ const createMarkup = (element) => { |
|
|
|
return( |
|
|
|
return( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<p>{val.join_first_name ? val.join_first_name : val.join_first_name}</p> |
|
|
|
<p>{val.join_first_name ? val.join_first_name : "-"}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<p>{val.join_second_name ? val.join_second_name : val.join_second_name}</p> |
|
|
|
<p>{val.join_second_name ? val.join_second_name : "-"}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
<p>{val.join_second_description ? val.join_second_description : val.join_second_description}</p> |
|
|
|
<p>{val.join_second_description ? val.join_second_description : "-"}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
) |
|
|
|
) |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign:"center" }}>-</td> |
|
|
|
|
|
|
|
</tr>) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -328,20 +352,28 @@ const createMarkup = (element) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<tr key={index}> |
|
|
|
<tr key={index}> |
|
|
|
<td style={tdStyle}> |
|
|
|
<td style={tdStyle}> |
|
|
|
<p style={{ ...pStyle, textAlign:'center' }}>{milestoneLetter}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight:'normal', textAlign:'center' }}>{milestoneLetter}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td className='plr-10' style={tdStyle}> |
|
|
|
<td className='plr-10' style={tdStyle}> |
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>{val.status}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight:'normal', color: '#000000' }}>{val.status ?? "-"}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td className='plr-10' style={{ ...tdStyle, textAlign:'center' }}> |
|
|
|
<td className='plr-10' style={{ ...tdStyle, textAlign:'center' }}> |
|
|
|
<p> {moment(val.deadline).format(formatDate)}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', color: '#000000' }}> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{moment(val.deadline).format(formatDate)} |
|
|
|
|
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
); |
|
|
|
); |
|
|
|
}) |
|
|
|
}) |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return (<tr><td><br></br></td></tr>); |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
<td style={{ ...tdStyle, textAlign: "center" }}>-</td> |
|
|
|
|
|
|
|
</tr>); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -359,7 +391,10 @@ const createMarkup = (element) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
return ( |
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
|
|
<td style={{ textAlign:"center" }}> -</td> |
|
|
|
|
|
|
|
</tr>) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -391,9 +426,16 @@ const createMarkup = (element) => { |
|
|
|
padding: '0', |
|
|
|
padding: '0', |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const paddingTable = { |
|
|
|
|
|
|
|
paddingTop:"20px", |
|
|
|
|
|
|
|
paddingLeft: "30px", |
|
|
|
|
|
|
|
paddingRight: "30px" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const renderForm = () => { |
|
|
|
const renderForm = () => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div id="pdf-content"> |
|
|
|
<div id="pdf-content" style={ paddingTable }> |
|
|
|
|
|
|
|
<h3>Project Charter</h3> |
|
|
|
<table style={tableStyle} className="a"> |
|
|
|
<table style={tableStyle} className="a"> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -406,7 +448,7 @@ const createMarkup = (element) => { |
|
|
|
<p style={ pStyle }>Nama Proyek</p> |
|
|
|
<p style={ pStyle }>Nama Proyek</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{proyekName ?? '-'}</p> |
|
|
|
<p className="capitalize" style={{ ...pStyle, fontWeight: 'normal' }}>{proyekName ?? '-'}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -414,7 +456,7 @@ const createMarkup = (element) => { |
|
|
|
<p style={ pStyle }>Project description</p> |
|
|
|
<p style={ pStyle }>Project description</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{description ?? '-'}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}>{description != "" ? description : '-'}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -430,7 +472,7 @@ const createMarkup = (element) => { |
|
|
|
<p style={ pStyle }>Lokasi Proyek</p> |
|
|
|
<p style={ pStyle }>Lokasi Proyek</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<p> {lokasi ?? '-' }</p> |
|
|
|
<p> {lokasi != "" ? lokasi :'-' }</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -462,7 +504,7 @@ const createMarkup = (element) => { |
|
|
|
<p style={ pStyle }>Anggaran Proyek</p> |
|
|
|
<p style={ pStyle }>Anggaran Proyek</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{currency}. {formatThousand(budget)}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}>{currency}. {formatThousand(budget)}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -483,7 +525,7 @@ const createMarkup = (element) => { |
|
|
|
<p style={ pStyle }>Project Manager</p> |
|
|
|
<p style={ pStyle }>Project Manager</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
<p> {PM}</p> |
|
|
|
<p> {PM ?? "-"}</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
@ -506,7 +548,13 @@ const createMarkup = (element) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td style={tdStyle}> |
|
|
|
<td style={tdStyle}> |
|
|
|
<p style={{ fontStyle: 'italic' }}>{objectives ?? '-'}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}> |
|
|
|
|
|
|
|
{objectives ? ( |
|
|
|
|
|
|
|
<span dangerouslySetInnerHTML={createMarkup(objectives)} /> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
'-' |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
@ -522,7 +570,11 @@ const createMarkup = (element) => { |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td style={tdStyle}> |
|
|
|
<td style={tdStyle}> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
<li style={pStyle}>{ scoupeProyek ?? '-' }</li> |
|
|
|
{scoupeProyek ? ( |
|
|
|
|
|
|
|
<li style={pStyle}>{ scoupeProyek ?? '-' }</li> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
"-" |
|
|
|
|
|
|
|
)} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
@ -562,7 +614,7 @@ const createMarkup = (element) => { |
|
|
|
<th style={emptyCellStyle}> |
|
|
|
<th style={emptyCellStyle}> |
|
|
|
<p> |
|
|
|
<p> |
|
|
|
{image ? ( |
|
|
|
{image ? ( |
|
|
|
<img src={`${BASE_OSPRO}/assets/image/` + image} style={{ width: "50px" }}></img> |
|
|
|
<img src={`${BASE_OSPRO}/assets/image/` + image} style={{ maxWidth: "100%" }}></img> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
'-' |
|
|
|
'-' |
|
|
|
)} |
|
|
|
)} |
|
|
@ -645,7 +697,13 @@ const createMarkup = (element) => { |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<p dangerouslySetInnerHTML={createMarkup(lateProyek ?? '-')}></p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}> |
|
|
|
|
|
|
|
{lateProyek ? ( |
|
|
|
|
|
|
|
<span dangerouslySetInnerHTML={createMarkup(lateProyek)} /> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
"-" |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</p> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</table> |
|
|
@ -659,7 +717,13 @@ const createMarkup = (element) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<th> |
|
|
|
<th> |
|
|
|
<p style={pStyle}>{projectSuccess ?? '-'}</p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}> |
|
|
|
|
|
|
|
{projectSuccess ? ( |
|
|
|
|
|
|
|
<span dangerouslySetInnerHTML={createMarkup(projectSuccess)} /> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
'-' |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</p> |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
@ -674,7 +738,13 @@ const createMarkup = (element) => { |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<td> |
|
|
|
<p dangerouslySetInnerHTML={createMarkup(assumtionProyek ?? '-')}></p> |
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal' }}> |
|
|
|
|
|
|
|
{assumtionProyek ? ( |
|
|
|
|
|
|
|
<span dangerouslySetInnerHTML={createMarkup(assumtionProyek)} /> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
'-' |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</p> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
@ -741,15 +811,10 @@ const createMarkup = (element) => { |
|
|
|
<> |
|
|
|
<> |
|
|
|
<Modal size="xl" isOpen={openDialog} toggle={toggleDialog}> |
|
|
|
<Modal size="xl" isOpen={openDialog} toggle={toggleDialog}> |
|
|
|
<ModalHeader className="capitalize" toggle={closeDialog}> |
|
|
|
<ModalHeader className="capitalize" toggle={closeDialog}> |
|
|
|
<div style={{ display: "flex", justifyContent: "space-between" }}> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<Tooltip title={t('Export PDF')}> |
|
|
|
Project |
|
|
|
<Button style={{ marginLeft: "5px" }} onClick={(e) => handleExportPdf()}><i className="fa fa-print"></i> Export PDF</Button> |
|
|
|
</div> |
|
|
|
</Tooltip> |
|
|
|
<div> |
|
|
|
|
|
|
|
<Tooltip title={t('Export PDF')}> |
|
|
|
|
|
|
|
<Button style={{ marginLeft: "5px" }} onClick={(e) => handleExportPdf()}><i className="fa fa-print"></i></Button> |
|
|
|
|
|
|
|
</Tooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</ModalHeader> |
|
|
|
</ModalHeader> |
|
|
|
<ModalBody> |
|
|
|
<ModalBody> |
|
|
|