fix: report in monalisa
This commit is contained in:
@@ -195,9 +195,21 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
orientation: 'landscape'
|
||||
})
|
||||
|
||||
const img = new Image()
|
||||
|
||||
img.src = '/assets/images/pln-icon.png'
|
||||
doc.addImage(img, 'png', 13.5, 9, 9.5, 13)
|
||||
|
||||
autoTable(doc, {
|
||||
head: [
|
||||
['PT. PLN(Persero)', '', ''],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
],
|
||||
[
|
||||
{ content: 'UNIT INDUK', styles: { cellWidth: 40 } },
|
||||
{ content: ':', styles: { cellWidth: 1 } },
|
||||
@@ -218,13 +230,6 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
reportMeta.ulp
|
||||
? reportMeta.ulp.name.toUpperCase()
|
||||
: 'Semua Unit Layanan Pelanggan'.toUpperCase()
|
||||
],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
]
|
||||
],
|
||||
styles: {
|
||||
@@ -234,7 +239,10 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
fontStyle: 'bold'
|
||||
},
|
||||
theme: 'plain',
|
||||
startY: 10
|
||||
startY: 10,
|
||||
margin: {
|
||||
left: 25
|
||||
}
|
||||
})
|
||||
|
||||
autoTable(doc, {
|
||||
|
@@ -133,9 +133,21 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
orientation: 'landscape'
|
||||
})
|
||||
|
||||
const img = new Image()
|
||||
|
||||
img.src = '/assets/images/pln-icon.png'
|
||||
doc.addImage(img, 'png', 13.5, 9, 9.5, 13)
|
||||
|
||||
autoTable(doc, {
|
||||
head: [
|
||||
['PT. PLN(Persero)', '', ''],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
],
|
||||
[
|
||||
{ content: 'UNIT INDUK', styles: { cellWidth: 40 } },
|
||||
{ content: ':', styles: { cellWidth: 1 } },
|
||||
@@ -156,13 +168,6 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
reportMeta.ulp
|
||||
? reportMeta.ulp.name.toUpperCase()
|
||||
: 'Semua Unit Layanan Pelanggan'.toUpperCase()
|
||||
],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
]
|
||||
],
|
||||
styles: {
|
||||
@@ -172,7 +177,10 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
fontStyle: 'bold'
|
||||
},
|
||||
theme: 'plain',
|
||||
startY: 10
|
||||
startY: 10,
|
||||
margin: {
|
||||
left: 25
|
||||
}
|
||||
})
|
||||
|
||||
autoTable(doc, {
|
||||
|
@@ -156,9 +156,21 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
orientation: 'landscape'
|
||||
})
|
||||
|
||||
const img = new Image()
|
||||
|
||||
img.src = '/assets/images/pln-icon.png'
|
||||
doc.addImage(img, 'png', 13.5, 9, 9.5, 13)
|
||||
|
||||
autoTable(doc, {
|
||||
head: [
|
||||
['PT. PLN(Persero)', '', ''],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
],
|
||||
[
|
||||
{ content: 'UNIT INDUK', styles: { cellWidth: 40 } },
|
||||
{ content: ':', styles: { cellWidth: 1 } },
|
||||
@@ -179,13 +191,6 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
reportMeta.ulp
|
||||
? reportMeta.ulp.name.toUpperCase()
|
||||
: 'Semua Unit Layanan Pelanggan'.toUpperCase()
|
||||
],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
]
|
||||
],
|
||||
styles: {
|
||||
@@ -195,7 +200,10 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
fontStyle: 'bold'
|
||||
},
|
||||
theme: 'plain',
|
||||
startY: 10
|
||||
startY: 10,
|
||||
margin: {
|
||||
left: 25
|
||||
}
|
||||
})
|
||||
|
||||
autoTable(doc, {
|
||||
|
@@ -267,9 +267,21 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
orientation: 'landscape'
|
||||
})
|
||||
|
||||
const img = new Image()
|
||||
|
||||
img.src = '/assets/images/pln-icon.png'
|
||||
doc.addImage(img, 'png', 13.5, 9, 9.5, 13)
|
||||
|
||||
autoTable(doc, {
|
||||
head: [
|
||||
['PT. PLN(Persero)', '', ''],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
],
|
||||
[
|
||||
{ content: 'UNIT INDUK', styles: { cellWidth: 40 } },
|
||||
{ content: ':', styles: { cellWidth: 1 } },
|
||||
@@ -290,13 +302,6 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
reportMeta.ulp
|
||||
? reportMeta.ulp.name.toUpperCase()
|
||||
: 'Semua Unit Layanan Pelanggan'.toUpperCase()
|
||||
],
|
||||
[
|
||||
'REGIONAL',
|
||||
':',
|
||||
reportMeta.regional
|
||||
? reportMeta.regional.name.toUpperCase()
|
||||
: 'Semua Regional'.toUpperCase()
|
||||
]
|
||||
],
|
||||
styles: {
|
||||
@@ -306,7 +311,10 @@ const exportToPDF = (reportMeta: any, rawData: any, preview: boolean = false) =>
|
||||
fontStyle: 'bold'
|
||||
},
|
||||
theme: 'plain',
|
||||
startY: 10
|
||||
startY: 10,
|
||||
margin: {
|
||||
left: 25
|
||||
}
|
||||
})
|
||||
|
||||
autoTable(doc, {
|
||||
|
Reference in New Issue
Block a user