|
|
@ -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, income_year } = 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 } = 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 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); |
|
|
|
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(elt.akhir_proyek).format(format)}`, |
|
|
|
`${moment(elt.mulai_proyek).format(format)} - ${moment( |
|
|
|
|
|
|
|
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"); |
|
|
@ -1741,7 +1741,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: "Anggaran Biaya", dataIndex: "value_proyek", |
|
|
|
title: "Nilai Kontrak", dataIndex: "value_proyek", |
|
|
|
key: "value_proyek", |
|
|
|
key: "value_proyek", |
|
|
|
render: (text, record) => { |
|
|
|
render: (text, record) => { |
|
|
|
const valueProyek = text ?? '-'; |
|
|
|
const valueProyek = text ?? '-'; |
|
|
@ -1751,7 +1751,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: "Nilai Kontrak", |
|
|
|
title: "Anggaran Biaya", |
|
|
|
dataIndex: "rencana_biaya", |
|
|
|
dataIndex: "rencana_biaya", |
|
|
|
key: "rencana_biaya", |
|
|
|
key: "rencana_biaya", |
|
|
|
render: (text, record) => { |
|
|
|
render: (text, record) => { |
|
|
|