update foto jaminan dan laporan preview
This commit is contained in:
@@ -209,9 +209,9 @@
|
||||
due_date: {
|
||||
title: 'Due Date',
|
||||
render: (item, data) => {
|
||||
const mulai = new Date(data.permohonan.created_at);
|
||||
const selesai = new Date(data.tanggal_kunjungan)
|
||||
return `${mulai.getDate()}-${mulai.getMonth() + 1}-${mulai.getFullYear()} - ${selesai.getDate()}-${selesai.getMonth() + 1}-${selesai.getFullYear()}`
|
||||
const jenis_asset = data.permohonan.debiture.documents.map(d => d.jenis_jaminan.name );
|
||||
|
||||
return `${calculateDateSLA(jenis_asset, data.tanggal_kunjungan)}`;
|
||||
},
|
||||
},
|
||||
|
||||
@@ -254,6 +254,12 @@
|
||||
const year = String(date.getFullYear()).slice(-2);
|
||||
return `${day}-${month}-${year}`;
|
||||
}
|
||||
|
||||
|
||||
function calculateDateSLA($jenis, $date){
|
||||
let date = new Date($date);
|
||||
return $jenis, $date;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user