|
|
|
@ -671,8 +671,8 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
.catch((error) => error.response); |
|
|
|
|
|
|
|
|
|
if (result && result.data && result.data.code == 200) { |
|
|
|
|
const { value_proyek, area_kerja, scoupe_of_work, kode_sortname, nama, mulai_proyek, rencana_biaya, keterangan, durasi_proyek, project_objectives, potential_risk, currency_symbol, nama_divisi, late_consequence, assumtion, considered_success_when, income_year } = result.data.data; |
|
|
|
|
const dataToSend = { value_proyek, area_kerja, scoupe_of_work, kode_sortname, nama, mulai_proyek, rencana_biaya, keterangan, durasi_proyek, project_objectives, potential_risk, currency_symbol, nama_divisi, late_consequence, assumtion, considered_success_when, income_year }; |
|
|
|
|
const { value_proyek, area_kerja, scoupe_of_work, kode_sortname, nama, mulai_proyek, rencana_biaya, keterangan, durasi_proyek, project_objectives, potential_risk, currency_symbol, nama_divisi, late_consequence, assumtion, considered_success_when } = result.data.data; |
|
|
|
|
const dataToSend = { value_proyek, area_kerja, scoupe_of_work, kode_sortname, nama, mulai_proyek, rencana_biaya, keterangan, durasi_proyek, project_objectives, potential_risk, currency_symbol, nama_divisi, late_consequence, assumtion, considered_success_when }; |
|
|
|
|
setProjectCharter(dataToSend); |
|
|
|
|
} else { |
|
|
|
|
NotificationManager.error("Gagal Mengambil Data!!", "Failed"); |
|
|
|
@ -1476,11 +1476,11 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
const data = resData.map((elt) => [ |
|
|
|
|
elt.nama, |
|
|
|
|
`Rp. ${formatThousand(elt.rencana_biaya)}`, |
|
|
|
|
`Rp. ${formatThousand(elt.income_year)}`, |
|
|
|
|
`Rp. ${formatThousand(elt.value_proyek)}`, |
|
|
|
|
elt.join_second_name, |
|
|
|
|
elt.join_first_name, |
|
|
|
|
`${moment(elt.mulai_proyek).format(format)} - ${moment(elt.akhir_proyek).format(format)}`, |
|
|
|
|
`${moment(elt.mulai_proyek).format(format)} - ${moment( |
|
|
|
|
elt.akhir_proyek |
|
|
|
|
).format(format)}`,
|
|
|
|
|
]); |
|
|
|
|
// Or use javascript directly:
|
|
|
|
|
doc.text(4, 15, "Project Charter"); |
|
|
|
@ -1554,14 +1554,12 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
</span> |
|
|
|
|
<span className="menu-text">Assign Checklist K3</span> |
|
|
|
|
</div> |
|
|
|
|
{text.join_second_is_multiLocation == false && ( |
|
|
|
|
<div className="menu-list" onClick={() => handleOpenDialogGantt(text)}> |
|
|
|
|
<span className="menu-icon"> |
|
|
|
|
<i className="fa fa-bars"></i> |
|
|
|
|
</span> |
|
|
|
|
<span className="menu-text">Gantt</span> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
<div className="menu-list" onClick={() => handleSCurve(text)}> |
|
|
|
|
<span className="menu-icon"> |
|
|
|
|
<i className="fa fa-line-chart"></i> |
|
|
|
@ -1743,7 +1741,7 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "Anggaran Biaya", dataIndex: "value_proyek", |
|
|
|
|
title: "Nilai Kontrak", dataIndex: "value_proyek", |
|
|
|
|
key: "value_proyek", |
|
|
|
|
render: (text, record) => { |
|
|
|
|
const valueProyek = text ?? '-'; |
|
|
|
@ -1753,7 +1751,7 @@ const CreatedProyek = ({ params, ...props }) => {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "Nilai Kontrak", |
|
|
|
|
title: "Anggaran Biaya", |
|
|
|
|
dataIndex: "rencana_biaya", |
|
|
|
|
key: "rencana_biaya", |
|
|
|
|
render: (text, record) => { |
|
|
|
|