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