feat: create export detail pdf xlsx anomali
This commit is contained in:
@ -302,7 +302,11 @@ const exportDetailToPDF = (reportMeta: any, rawData: any) => {
|
||||
head: [
|
||||
[
|
||||
'No',
|
||||
'UIW/D',
|
||||
'UP3',
|
||||
'Rayon',
|
||||
'No Laporan',
|
||||
'No Laporan Referensi',
|
||||
'Tgl Lapor',
|
||||
'Dalam Proses Bidang',
|
||||
'Selesai Bidang Unit',
|
||||
@ -314,14 +318,17 @@ const exportDetailToPDF = (reportMeta: any, rawData: any) => {
|
||||
'Alamat Pelapor',
|
||||
'No Telp Pelapor',
|
||||
'Keterangan Pelapor',
|
||||
'Rayon',
|
||||
'Uraian',
|
||||
'Response Pelanggan'
|
||||
]
|
||||
],
|
||||
body: rawData.map((item: any, i: any) => [
|
||||
{ content: i + 1, styles: { halign: 'right' } },
|
||||
item.nama_uid,
|
||||
item.nama_up3,
|
||||
item.nama_ulp,
|
||||
item.no_laporan,
|
||||
item.referensi_marking,
|
||||
item.waktu_lapor,
|
||||
item.waktu_response,
|
||||
item.waktu_recovery,
|
||||
@ -333,7 +340,6 @@ const exportDetailToPDF = (reportMeta: any, rawData: any) => {
|
||||
item.alamat_pelapor,
|
||||
item.no_telp_pelapor,
|
||||
item.keterangan_pelapor,
|
||||
item.nama_ulp,
|
||||
item.uraian,
|
||||
item.respon_pelanggan
|
||||
]),
|
||||
@ -349,7 +355,6 @@ const exportDetailToPDF = (reportMeta: any, rawData: any) => {
|
||||
fillColor: [192, 192, 192],
|
||||
textColor: [0, 0, 0],
|
||||
fontStyle: 'bold',
|
||||
cellWidth: 'wrap',
|
||||
halign: 'center',
|
||||
valign: 'middle'
|
||||
},
|
||||
@ -481,9 +486,9 @@ const exportDetailToXLSX = (reportMeta: any, e: any) => {
|
||||
true
|
||||
)
|
||||
|
||||
worksheet.mergeCells('A1:P1')
|
||||
worksheet.mergeCells('A3:P3')
|
||||
worksheet.mergeCells('A4:P4')
|
||||
worksheet.mergeCells('A1:S1')
|
||||
worksheet.mergeCells('A3:S3')
|
||||
worksheet.mergeCells('A4:S4')
|
||||
|
||||
exportToExcel({
|
||||
component: e.component,
|
||||
|
Reference in New Issue
Block a user