diff --git a/src/components/Form/FiltersType/Type11.vue b/src/components/Form/FiltersType/Type11.vue index 17f5caa..69bd94d 100755 --- a/src/components/Form/FiltersType/Type11.vue +++ b/src/components/Form/FiltersType/Type11.vue @@ -1,4 +1,11 @@ \ No newline at end of file +onMounted(() => { + if (import.meta.env.DEV) { + data.value = [ + { + id: 0, + id_uid: 180, + nama_uid: 'WILAYAH RIAU DAN KEPULAUAN RIAU', + id_up3: 182, + nama_up3: 'UP3 DUMAI', + id_ulp: 18210, + nama_ulp: 'ULP DURI', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 1, + id_uid: 56, + nama_uid: 'DISTRIBUSI BANTEN', + id_up3: 16, + nama_up3: 'UP3 SERPONG', + id_ulp: 56620, + nama_ulp: 'UP3 SERPONG', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 2, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52000, + nama_up3: 'UP3 KUDUS', + id_ulp: 52002, + nama_ulp: 'ULP JEPARA', + month1: 0, + month2: 5, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 3, + id_uid: 31, + nama_uid: 'WILAYAH SULAWESI UTARA,TENGAH DAN GORONTALO', + id_up3: 31200, + nama_up3: 'UP3 PALU', + id_ulp: 31290, + nama_ulp: 'ULP KOLONEDALE', + month1: 0, + month2: 2, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 4, + id_uid: 31, + nama_uid: 'WILAYAH SULAWESI UTARA,TENGAH DAN GORONTALO', + id_up3: 31200, + nama_up3: 'UP3 PALU', + id_ulp: 31240, + nama_ulp: 'ULP DONGGALA', + month1: 0, + month2: 2, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 5, + id_uid: 31, + nama_uid: 'WILAYAH SULAWESI UTARA,TENGAH DAN GORONTALO', + id_up3: 31200, + nama_up3: 'UP3 PALU', + id_ulp: 31270, + nama_ulp: 'ULP POSO', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 6, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32400, + nama_up3: 'UP3 PINRANG', + id_ulp: 32430, + nama_ulp: 'ULP PEKKABATA', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 7, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52500, + nama_up3: 'UP3 CILACAP', + id_ulp: 52505, + nama_ulp: 'ULP KROYA', + month1: 0, + month2: 2, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 8, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52000, + nama_up3: 'UP3 KUDUS', + id_ulp: 52008, + nama_ulp: 'ULP CEPU', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 9, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32300, + nama_up3: 'UP3 KENDARI', + id_ulp: 32320, + nama_ulp: 'ULP WUA WUA', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 10, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52200, + nama_up3: 'UP3 PURWOKERTO', + id_ulp: 52201, + nama_ulp: 'ULP PURWOKERTO KOTA', + month1: 0, + month2: 3, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 11, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52000, + nama_up3: 'UP3 KUDUS', + id_ulp: 52003, + nama_ulp: 'ULP BANGSRI', + month1: 0, + month2: 7, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 12, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32600, + nama_up3: 'UP3 PALOPO', + id_ulp: 32680, + nama_ulp: 'ULP RANTEPAO', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 13, + id_uid: 287, + nama_uid: 'DISTRIBUSI BALI', + id_up3: 328, + nama_up3: 'UP3 BALI TIMUR', + id_ulp: 55200, + nama_ulp: 'ULP GIANYAR', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 14, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52500, + nama_up3: 'UP3 CILACAP', + id_ulp: 52504, + nama_ulp: 'ULP KEBUMEN', + month1: 0, + month2: 15, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 15, + id_uid: 131, + nama_uid: 'WILAYAH SUMATERA BARAT', + id_up3: 13300, + nama_up3: 'UP3 SOLOK', + id_ulp: 13339, + nama_ulp: 'ULP SUNGAI RUMBAI', + month1: 0, + month2: 2, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + } + ] + } +}) + diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_DMAPKT.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_DMAPKT.vue index 831b49e..2de2711 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_DMAPKT.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_DMAPKT.vue @@ -59,7 +59,7 @@ + + + + + + + + + + @@ -378,7 +428,9 @@ import { DxPaging, DxScrolling, DxSearchPanel, - DxSelection + DxSelection, + DxSummary, + DxTotalItem } from 'devextreme-vue/data-grid' import { jsPDF } from 'jspdf' import { exportDataGrid as exportToPdf } from 'devextreme/pdf_exporter' diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue index 6dfb696..67752ba 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_JenisGangguanSE.vue @@ -66,11 +66,11 @@ @@ -349,7 +349,7 @@ { const filters = ref() onMounted(() => { if (import.meta.env.DEV) { - data.value = dummyData.gangguan.rekap.rekapitulasiJenisGangguanSE004 + data.value = [ + { + id: '0', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Kabel', + kode: '11232', + total: 1754, + total_selesai: 1754, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 248343, + avg_durasi_response: 2.360302677532014, + min_durasi_response: 0, + max_durasi_response: 7020, + total_dibawah_sla_response: 1714, + total_diatas_sla_response: 4, + total_durasi_recovery: 7444445, + avg_durasi_recovery: 70.67217787913341, + min_durasi_recovery: 0, + max_durasi_recovery: 199591, + total_dibawah_sla_recovery: 1660, + total_diatas_sla_recovery: 94, + total_response: 1718, + total_recovery: 1754 + }, + { + id: '1', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'MV Cell', + kode: '11511', + total: 56062, + total_selesai: 56061, + persen_selesai: 99.99821626056865, + total_inproses: 1, + persen_inproses: 0.0017837394313438694, + total_durasi_response: 80699092, + avg_durasi_response: 23.504602211915806, + min_durasi_response: 24, + max_durasi_response: 2592137, + total_dibawah_sla_response: 52700, + total_diatas_sla_response: 3360, + total_durasi_recovery: 1398860783, + avg_durasi_recovery: 415.39603995718875, + min_durasi_recovery: 101, + max_durasi_recovery: 2713062, + total_dibawah_sla_recovery: 49187, + total_diatas_sla_recovery: 6873, + total_response: 56060, + total_recovery: 56060 + }, + { + id: '2', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'JTR', + kode: '13400', + total: 6022, + total_selesai: 6022, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 8262056, + avg_durasi_response: 22.382392026578074, + min_durasi_response: -16519, + max_durasi_response: 76299, + total_dibawah_sla_response: 5655, + total_diatas_sla_response: 365, + total_durasi_recovery: 87345586, + avg_durasi_recovery: 241.25440053138493, + min_durasi_recovery: -16459, + max_durasi_recovery: 2499716, + total_dibawah_sla_recovery: 4802, + total_diatas_sla_recovery: 1220, + total_response: 6020, + total_recovery: 6022 + }, + { + id: '3', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Jointing', + kode: '11243', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 60, + avg_durasi_response: 1, + min_durasi_response: 60, + max_durasi_response: 60, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 240, + avg_durasi_recovery: 4, + min_durasi_recovery: 240, + max_durasi_recovery: 240, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: '4', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: null, + kode: '', + total: 7153680, + total_selesai: 1144750, + persen_selesai: 16.00225338567003, + total_inproses: 6008930, + persen_inproses: 83.99774661432997, + total_durasi_response: 746069414, + avg_durasi_response: 29.719034788714257, + min_durasi_response: -16906, + max_durasi_response: 2563885, + total_dibawah_sla_response: 352502, + total_diatas_sla_response: 59097, + total_durasi_recovery: 1633920126, + avg_durasi_recovery: 65.89483875340065, + min_durasi_recovery: -86061, + max_durasi_recovery: 3373943, + total_dibawah_sla_recovery: 412256, + total_diatas_sla_recovery: 900, + total_response: 411599, + total_recovery: 413156 + }, + { + id: '5', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'AVR / Kapasitor', + kode: '11215', + total: 20, + total_selesai: 20, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 2682, + avg_durasi_response: 2.15, + min_durasi_response: 0, + max_durasi_response: 1477, + total_dibawah_sla_response: 20, + total_diatas_sla_response: 0, + total_durasi_recovery: 115132, + avg_durasi_recovery: 95.85, + min_durasi_recovery: 0, + max_durasi_recovery: 18660, + total_dibawah_sla_recovery: 15, + total_diatas_sla_recovery: 5, + total_response: 20, + total_recovery: 20 + }, + { + id: '6', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Kelompok Terencana (Planned) ', + kode: '32000', + total: 1130, + total_selesai: 1127, + persen_selesai: 99.73451327433628, + total_inproses: 3, + persen_inproses: 0.2654867256637168, + total_durasi_response: 6837343, + avg_durasi_response: 100.54432624113475, + min_durasi_response: -2607074, + max_durasi_response: 2553583, + total_dibawah_sla_response: 1070, + total_diatas_sla_response: 58, + total_durasi_recovery: 9901876, + avg_durasi_recovery: 145.95297249334516, + min_durasi_recovery: -2605454, + max_durasi_recovery: 2553643, + total_dibawah_sla_recovery: 1022, + total_diatas_sla_recovery: 105, + total_response: 1128, + total_recovery: 1127 + }, + { + id: '7', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Arrester', + kode: '11219', + total: 764, + total_selesai: 764, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 103137, + avg_durasi_response: 2.1612057667103537, + min_durasi_response: 0, + max_durasi_response: 14436, + total_dibawah_sla_response: 755, + total_diatas_sla_response: 8, + total_durasi_recovery: 2758840, + avg_durasi_recovery: 59.97643979057592, + min_durasi_recovery: 0, + max_durasi_recovery: 62400, + total_dibawah_sla_recovery: 711, + total_diatas_sla_recovery: 53, + total_response: 763, + total_recovery: 764 + }, + { + id: '8', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Trafo', + kode: '11322', + total: 322, + total_selesai: 322, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 238159, + avg_durasi_response: 14.425454545454546, + min_durasi_response: 0, + max_durasi_response: 40320, + total_dibawah_sla_response: 255, + total_diatas_sla_response: 20, + total_durasi_recovery: 2275182, + avg_durasi_recovery: 117.67391304347827, + min_durasi_recovery: 59, + max_durasi_recovery: 105660, + total_dibawah_sla_recovery: 264, + total_diatas_sla_recovery: 58, + total_response: 275, + total_recovery: 322 + }, + { + id: '9', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Kabel', + kode: '11242', + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 377, + avg_durasi_response: 3, + min_durasi_response: 60, + max_durasi_response: 317, + total_dibawah_sla_response: 2, + total_diatas_sla_response: 0, + total_durasi_recovery: 9797, + avg_durasi_recovery: 81.5, + min_durasi_recovery: 1800, + max_durasi_recovery: 7997, + total_dibawah_sla_recovery: 2, + total_diatas_sla_recovery: 0, + total_response: 2, + total_recovery: 2 + }, + { + id: '10', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Kabel Opstyg / SKTR', + kode: '11411', + total: 91371, + total_selesai: 91371, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 117146730, + avg_durasi_response: 20.890635777395797, + min_durasi_response: 0, + max_durasi_response: 86580, + total_dibawah_sla_response: 85886, + total_diatas_sla_response: 5451, + total_durasi_recovery: 488901032, + avg_durasi_recovery: 88.69208711831017, + min_durasi_recovery: 0, + max_durasi_recovery: 4028013, + total_dibawah_sla_recovery: 88945, + total_diatas_sla_recovery: 2425, + total_response: 91337, + total_recovery: 91370 + }, + { + id: '11', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Gardu Distribusi', + kode: '13300', + total: 275, + total_selesai: 275, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 382161, + avg_durasi_response: 22.952727272727273, + min_durasi_response: -610712, + max_durasi_response: 638280, + total_dibawah_sla_response: 238, + total_diatas_sla_response: 37, + total_durasi_recovery: 14380135, + avg_durasi_recovery: 871.3163636363637, + min_durasi_recovery: -484681, + max_durasi_recovery: 7565219, + total_dibawah_sla_recovery: 195, + total_diatas_sla_recovery: 80, + total_response: 275, + total_recovery: 275 + }, + { + id: '12', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Konstruksi', + kode: '12101', + total: 13, + total_selesai: 13, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 444894, + avg_durasi_response: 570, + min_durasi_response: -17483, + max_durasi_response: 435093, + total_dibawah_sla_response: 11, + total_diatas_sla_response: 2, + total_durasi_recovery: 520794, + avg_durasi_recovery: 667.3076923076923, + min_durasi_recovery: -13763, + max_durasi_recovery: 445113, + total_dibawah_sla_recovery: 11, + total_diatas_sla_recovery: 2, + total_response: 13, + total_recovery: 13 + }, + { + id: '13', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'Operasi', + kode: '12503', + total: 747, + total_selesai: 747, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1354769, + avg_durasi_response: 29.809395973154363, + min_durasi_response: -5325, + max_durasi_response: 349500, + total_dibawah_sla_response: 713, + total_diatas_sla_response: 32, + total_durasi_recovery: 4880492, + avg_durasi_recovery: 108.41097724230255, + min_durasi_recovery: -5325, + max_durasi_recovery: 494389, + total_dibawah_sla_recovery: 692, + total_diatas_sla_recovery: 55, + total_response: 745, + total_recovery: 747 + }, + { + id: '14', + id_fasilitas: '111 -> Distribusi -> Penyulang', + sub_kelompok: 'CO Branch', + kode: '11217', + total: 17364, + total_selesai: 17364, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 9434964, + avg_durasi_response: 9.046101538638853, + min_durasi_response: -175685, + max_durasi_response: 84720, + total_dibawah_sla_response: 16595, + total_diatas_sla_response: 758, + total_durasi_recovery: 72920963, + avg_durasi_recovery: 69.94573732718894, + min_durasi_recovery: -175565, + max_durasi_recovery: 136440, + total_dibawah_sla_recovery: 16387, + total_diatas_sla_recovery: 973, + total_response: 17353, + total_recovery: 17360 + } + ] } }) diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue index b1c5473..7e67a17 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_KTI.vue @@ -1,67 +1,960 @@ \ No newline at end of file +onMounted(() => { + if (import.meta.env.DEV) { + data.value = [ + { + id: 0, + id_uid: 2, + nama_uid: 'DISTRIBUSI JAKARTA RAYA', + id_up3: 11, + nama_up3: 'UP3 JATINEGARA', + id_ulp: 54410, + nama_ulp: 'UP3 JATINEGARA', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 1, + id_uid: 120, + nama_uid: 'WILAYAH SUMATERA UTARA', + id_up3: 12100, + nama_up3: 'UP3 PEMATANG SIANTAR', + id_ulp: 12113, + nama_ulp: 'ULP PARAPAT', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 2, + id_uid: 131, + nama_uid: 'WILAYAH SUMATERA BARAT', + id_up3: 13100, + nama_up3: 'UP3 PADANG', + id_ulp: 13105, + nama_ulp: 'ULP LUBUK ALUNG', + month1: 0, + month2: 4, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 3, + id_uid: 140, + nama_uid: 'WILAYAH SUMATERA SELATAN, JAMBI & BENGKULU (S2JB)', + id_up3: 1404, + nama_up3: 'UP3 JAMBI', + id_ulp: 14310, + nama_ulp: 'ULP KOTA BARU', + month1: 0, + month2: 8, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 4, + id_uid: 110, + nama_uid: 'WILAYAH ACEH', + id_up3: 116, + nama_up3: 'UP3 SIGLI', + id_ulp: 11660, + nama_ulp: 'ULP SIGLI', + month1: 0, + month2: 17, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 5, + id_uid: 56, + nama_uid: 'DISTRIBUSI BANTEN', + id_up3: 18, + nama_up3: 'UP3 CIKUPA', + id_ulp: 56640, + nama_ulp: 'UP3 CIKUPA', + month1: 0, + month2: 7, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 6, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52550, + nama_up3: 'UP3 DEMAK', + id_ulp: 52554, + nama_ulp: 'ULP WIROSARI', + month1: 0, + month2: 4, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 7, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52050, + nama_up3: 'UP3 SURAKARTA', + id_ulp: 52058, + nama_ulp: 'ULP SRAGEN', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 8, + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 150, + nama_up3: 'UP3 PAMEKASAN', + id_ulp: 51715, + nama_ulp: 'ULP KEPULAUAN KANGEAN', + month1: 0, + month2: 2, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 9, + id_uid: 2, + nama_uid: 'DISTRIBUSI JAKARTA RAYA', + id_up3: 23, + nama_up3: 'UP3 LENTENG AGUNG', + id_ulp: 54740, + nama_ulp: 'UP3 LENTENG AGUNG', + month1: 0, + month2: 9, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 10, + id_uid: 180, + nama_uid: 'WILAYAH RIAU DAN KEPULAUAN RIAU', + id_up3: 183, + nama_up3: 'UP3 TANJUNGPINANG', + id_ulp: 18306, + nama_ulp: 'ULP TANJUNG BATU', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 11, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32500, + nama_up3: 'UP3 PARE PARE', + id_ulp: 32550, + nama_ulp: 'ULP PANGSID', + month1: 0, + month2: 3, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 12, + id_uid: 140, + nama_uid: 'WILAYAH SUMATERA SELATAN, JAMBI & BENGKULU (S2JB)', + id_up3: 1404, + nama_up3: 'UP3 JAMBI', + id_ulp: 14320, + nama_ulp: 'ULP SEBERANG KOTA', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 13, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32300, + nama_up3: 'UP3 KENDARI', + id_ulp: 32320, + nama_ulp: 'ULP WUA WUA', + month1: 0, + month2: 1, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + }, + { + id: 14, + id_uid: 110, + nama_uid: 'WILAYAH ACEH', + id_up3: 114, + nama_up3: 'UP3 MEULABOH', + id_ulp: 11444, + nama_ulp: 'ULP TEUNOM', + month1: 0, + month2: 3, + month3: 0, + month4: 0, + month5: 0, + month6: 0, + month7: 0, + month8: 0, + month9: 0, + month10: 0, + month11: 0, + month12: 0 + } + ] + } +}) + diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue index 42b596e..539cf8c 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_PerPosko.vue @@ -52,14 +52,15 @@ data-field="no" caption="NO" css-class="custom-table-column" + :calculateCellValue="(item: any) => data.findIndex((i) => i == item) + 1" cell-template="formatNumber" /> { }) onResult((queryResult) => { if (queryResult.data != undefined) { - data.value = queryResult.data.rekapitulasiGangguanPerPosko.map((item: any, index: number) => { - return { - no: ++index, - nama_posko: item.nama_posko, - laporan: { - total: item.total, - sudahSelesai: { - jml: item.total_selesai, - persen: item.persen_selesai - }, - belumSelesai: { - jml: item.total_inproses, - persen: item.persen_inproses - } - }, - responseTime: { - menit: { - total: item.total_durasi_response, - rataRata: item.avg_durasi_response, - max: item.max_durasi_response, - min: item.min_durasi_response - }, - laporan: { - lebihSla: item.total_diatas_sla_response, - kurangSla: item.total_dibawah_sla_response - } - }, - recoveryTime: { - menit: { - total: item.total_durasi_recovery, - rataRata: item.avg_durasi_recovery, - max: item.max_durasi_recovery, - min: item.min_durasi_recovery - }, - laporan: { - lebihSla: item.total_diatas_sla_recovery, - kurangSla: item.total_dibawah_sla_recovery - } - } - } - }) + data.value = queryResult.data.rekapitulasiGangguanPerPosko } console.log(queryResult.data) console.log(queryResult.loading) @@ -662,49 +622,443 @@ const filterData = (params: any) => { const filters = ref() onMounted(() => { if (import.meta.env.DEV) { - data.value = dummyData.gangguan.rekap.rekapitulasiGangguanPerPosko.map( - (item: any, index: number) => { - return { - no: ++index, - nama_posko: item.nama_posko, - laporan: { - total: item.total, - sudahSelesai: { - jml: item.total_selesai, - persen: item.persen_selesai - }, - belumSelesai: { - jml: item.total_inproses, - persen: item.persen_inproses - } - }, - responseTime: { - menit: { - total: item.total_durasi_response, - rataRata: item.avg_durasi_response, - max: item.max_durasi_response, - min: item.min_durasi_response - }, - laporan: { - lebihSla: item.total_diatas_sla_response, - kurangSla: item.total_dibawah_sla_response - } - }, - recoveryTime: { - menit: { - total: item.total_durasi_recovery, - rataRata: item.avg_durasi_recovery, - max: item.max_durasi_recovery, - min: item.min_durasi_recovery - }, - laporan: { - lebihSla: item.total_diatas_sla_recovery, - kurangSla: item.total_dibawah_sla_recovery - } - } - } + data.value = [ + { + id: 0, + id_uid: 41, + nama_uid: 'WILAYAH MALUKU DAN MALUKU UTARA', + id_up3: 412, + nama_up3: 'UP3 TERNATE', + id_ulp: 41210, + nama_ulp: 'ULP SOA SIU', + id_posko: 412101, + nama_posko: 'POSKO ULP SOA SIU', + total: 1279, + total_selesai: 1279, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1109359, + avg_durasi_response: 14.466828478964402, + min_durasi_response: 178, + max_durasi_response: 5057, + total_dibawah_sla_response: 1230, + total_diatas_sla_response: 6, + avg_durasi_recovery: 25.940149625935163, + min_durasi_recovery: 556, + max_durasi_recovery: 6326, + total_dibawah_sla_recovery: 1203, + total_diatas_sla_recovery: 0, + total_response: 1236, + total_recovery: 1203 + }, + { + id: 1, + id_uid: 2, + nama_uid: 'DISTRIBUSI JAKARTA RAYA', + id_up3: 10, + nama_up3: 'UP3 BINTARO', + id_ulp: 54380, + nama_ulp: 'UP3 BINTARO', + id_posko: 543801, + nama_posko: 'POSKO BINTARO', + total: 157216, + total_selesai: 157215, + persen_selesai: 99.99936393242417, + total_inproses: 1, + persen_inproses: 0.000636067575819255, + total_durasi_response: 158788877, + avg_durasi_response: 25.398031657829346, + min_durasi_response: 15, + max_durasi_response: 86579, + total_dibawah_sla_response: 92755, + total_diatas_sla_response: 9463, + avg_durasi_recovery: 35.06668004012036, + min_durasi_recovery: 96, + max_durasi_recovery: 86640, + total_dibawah_sla_recovery: 99671, + total_diatas_sla_recovery: 29, + total_response: 102218, + total_recovery: 99700 + }, + { + id: 2, + id_uid: 210, + nama_uid: 'WILAYAH KALIMANTAN BARAT', + id_up3: 318, + nama_up3: 'UP3 SANGGAU', + id_ulp: 21310, + nama_ulp: 'ULP SINTANG', + id_posko: 213101, + nama_posko: 'POSKO ULP SINTANG', + total: 4135, + total_selesai: 4135, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 2837167, + avg_durasi_response: 16.833272260901428, + min_durasi_response: 128, + max_durasi_response: 6874, + total_dibawah_sla_response: 2679, + total_diatas_sla_response: 50, + avg_durasi_recovery: 27.390607528885575, + min_durasi_recovery: 445, + max_durasi_recovery: 8520, + total_dibawah_sla_recovery: 2683, + total_diatas_sla_recovery: 0, + total_response: 2729, + total_recovery: 2683 + }, + { + id: 3, + id_uid: 427, + nama_uid: 'DISTRIBUSI JAWA BARAT', + id_up3: 538, + nama_up3: 'UP3 DEPOK', + id_ulp: 53874, + nama_ulp: 'ULP CIMANGGIS', + id_posko: 538741, + nama_posko: 'POSKO ULP CIMANGGIS', + total: 30978, + total_selesai: 30977, + persen_selesai: 99.99677190264057, + total_inproses: 1, + persen_inproses: 0.0032280973594163596, + total_durasi_response: 14476477, + avg_durasi_response: 21.982580344666978, + min_durasi_response: 114, + max_durasi_response: 6822, + total_dibawah_sla_response: 10488, + total_diatas_sla_response: 247, + avg_durasi_recovery: 35.48166666666667, + min_durasi_recovery: 413, + max_durasi_recovery: 8701, + total_dibawah_sla_recovery: 10200, + total_diatas_sla_recovery: 0, + total_response: 10735, + total_recovery: 10200 + }, + { + id: 4, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52200, + nama_up3: 'UP3 PURWOKERTO', + id_ulp: 52205, + nama_ulp: 'ULP WONOSOBO', + id_posko: 522051, + nama_posko: 'POSKO ULP WONOSOBO', + total: 38061, + total_selesai: 38061, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 44624414, + avg_durasi_response: 24.358238380058143, + min_durasi_response: 120, + max_durasi_response: 7132, + total_dibawah_sla_response: 29647, + total_diatas_sla_response: 280, + avg_durasi_recovery: 40.50045376625996, + min_durasi_recovery: 240, + max_durasi_recovery: 47311, + total_dibawah_sla_recovery: 29747, + total_diatas_sla_recovery: 4, + total_response: 29927, + total_recovery: 29751 + }, + { + id: 5, + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52300, + nama_up3: 'UP3 SEMARANG', + id_ulp: 52302, + nama_ulp: 'ULP SEMARANG BARAT', + id_posko: 523021, + nama_posko: 'POSKO ULP SEMARANG BARAT', + total: 50978, + total_selesai: 50977, + persen_selesai: 99.99803836949272, + total_inproses: 1, + persen_inproses: 0.0019616305072776494, + total_durasi_response: 35390553, + avg_durasi_response: 23.690932886180523, + min_durasi_response: 75, + max_durasi_response: 11432, + total_dibawah_sla_response: 22305, + total_diatas_sla_response: 2146, + avg_durasi_recovery: 39.20744371521143, + min_durasi_recovery: 305, + max_durasi_recovery: 11701, + total_dibawah_sla_recovery: 24072, + total_diatas_sla_recovery: 2, + total_response: 24451, + total_recovery: 24074 + }, + { + id: 6, + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 156, + nama_up3: 'UP3 SURABAYA SELATAN', + id_ulp: 51143, + nama_ulp: 'ULP RUNGKUT', + id_posko: 511434, + nama_posko: 'POSKO ULP RUNGKUT', + total: 53364, + total_selesai: 53363, + persen_selesai: 99.99812607750543, + total_inproses: 1, + persen_inproses: 0.0018739224945656247, + total_durasi_response: 48283813, + avg_durasi_response: 24.316152897657215, + min_durasi_response: 89, + max_durasi_response: 10456, + total_dibawah_sla_response: 28298, + total_diatas_sla_response: 4142, + avg_durasi_recovery: 40.426895221227745, + min_durasi_recovery: 157, + max_durasi_recovery: 11526, + total_dibawah_sla_recovery: 31611, + total_diatas_sla_recovery: 8, + total_response: 32440, + total_recovery: 31619 + }, + { + id: 7, + id_uid: 56, + nama_uid: 'DISTRIBUSI BANTEN', + id_up3: 19, + nama_up3: 'UP3 TELUK NAGA', + id_ulp: 56660, + nama_ulp: 'UP3 TELUK NAGA', + id_posko: 566601, + nama_posko: 'POSKO TELUK NAGA', + total: 11038, + total_selesai: 11038, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 4374336, + avg_durasi_response: 23.703285761699302, + min_durasi_response: 132, + max_durasi_response: 7023, + total_dibawah_sla_response: 2888, + total_diatas_sla_response: 125, + avg_durasi_recovery: 42.21269487750557, + min_durasi_recovery: 203, + max_durasi_recovery: 8273, + total_dibawah_sla_recovery: 2694, + total_diatas_sla_recovery: 0, + total_response: 3013, + total_recovery: 2694 + }, + { + id: 8, + id_uid: 221, + nama_uid: 'WILAYAH KALIMANTAN SELATAN DAN TENGAH', + id_up3: 2250, + nama_up3: 'UP3 KUALAKAPUAS', + id_ulp: 22540, + nama_ulp: 'ULP MUARA TEWEH', + id_posko: 225401, + nama_posko: 'POSKO ULP MUARA TEWEH', + total: 9756, + total_selesai: 9756, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 7859823, + avg_durasi_response: 21.342666666666666, + min_durasi_response: 54, + max_durasi_response: 5665, + total_dibawah_sla_response: 5959, + total_diatas_sla_response: 41, + avg_durasi_recovery: 31.966321697947727, + min_durasi_recovery: 481, + max_durasi_recovery: 5111, + total_dibawah_sla_recovery: 5701, + total_diatas_sla_recovery: 0, + total_response: 6000, + total_recovery: 5701 + }, + { + id: 9, + id_uid: 120, + nama_uid: 'WILAYAH SUMATERA UTARA', + id_up3: 12300, + nama_up3: 'UP3 SIBOLGA', + id_ulp: 12314, + nama_ulp: 'ULP TARUTUNG', + id_posko: 123144, + nama_posko: 'POSKO ULP TARUTUNG', + total: 8192, + total_selesai: 8192, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 2179469, + avg_durasi_response: 4.472642925364989, + min_durasi_response: -33, + max_durasi_response: 5165, + total_dibawah_sla_response: 7325, + total_diatas_sla_response: 4, + avg_durasi_recovery: 12.521217082821668, + min_durasi_recovery: 246, + max_durasi_recovery: 5938, + total_dibawah_sla_recovery: 7329, + total_diatas_sla_recovery: 0, + total_response: 7329, + total_recovery: 7329 + }, + { + id: 10, + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 145, + nama_up3: 'UP3 JEMBER', + id_ulp: 51606, + nama_ulp: 'ULP KLAKAH', + id_posko: 516066, + nama_posko: 'POSKO ULP KLAKAH', + total: 11862, + total_selesai: 11862, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 5452643, + avg_durasi_response: 17.78001206515182, + min_durasi_response: 213, + max_durasi_response: 3700, + total_dibawah_sla_response: 4958, + total_diatas_sla_response: 15, + avg_durasi_recovery: 26.647035094796287, + min_durasi_recovery: 449, + max_durasi_recovery: 4810, + total_dibawah_sla_recovery: 4958, + total_diatas_sla_recovery: 0, + total_response: 4973, + total_recovery: 4958 + }, + { + id: 11, + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 157, + nama_up3: 'UP3 SURABAYA UTARA', + id_ulp: 51106, + nama_ulp: 'ULP EMBONG WUNGU', + id_posko: 511065, + nama_posko: 'POSKO ULP EMBONG WUNGU', + total: 11445, + total_selesai: 11445, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 7620419, + avg_durasi_response: 17.186943207126948, + min_durasi_response: 106, + max_durasi_response: 29305, + total_dibawah_sla_response: 7121, + total_diatas_sla_response: 63, + avg_durasi_recovery: 30.80646087580761, + min_durasi_recovery: 198, + max_durasi_recovery: 29736, + total_dibawah_sla_recovery: 6964, + total_diatas_sla_recovery: 1, + total_response: 7184, + total_recovery: 6965 + }, + { + id: 12, + id_uid: 42, + nama_uid: 'WILAYAH PAPUA DAN PAPUA BARAT', + id_up3: 424, + nama_up3: 'UP3 MANOKWARI', + id_ulp: 42440, + nama_ulp: 'ULP BINTUNI', + id_posko: 424401, + nama_posko: 'POSKO ULP BINTUNI', + total: 2663, + total_selesai: 2663, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 3068943, + avg_durasi_response: 19.565047021943574, + min_durasi_response: 328, + max_durasi_response: 4863, + total_dibawah_sla_response: 2453, + total_diatas_sla_response: 99, + avg_durasi_recovery: 28.1744094488189, + min_durasi_recovery: 579, + max_durasi_recovery: 7598, + total_dibawah_sla_recovery: 2540, + total_diatas_sla_recovery: 0, + total_response: 2552, + total_recovery: 2540 + }, + { + id: 13, + id_uid: 42, + nama_uid: 'WILAYAH PAPUA DAN PAPUA BARAT', + id_up3: 422, + nama_up3: 'UP3 BIAK', + id_ulp: 42210, + nama_ulp: 'ULP BIAK KOTA', + id_posko: 422101, + nama_posko: 'POSKO ULP BIAK KOTA', + total: 4219, + total_selesai: 4218, + persen_selesai: 99.97629770087698, + total_inproses: 1, + persen_inproses: 0.02370229912301493, + total_durasi_response: 3741829, + avg_durasi_response: 15.516816431322209, + min_durasi_response: 45, + max_durasi_response: 16738, + total_dibawah_sla_response: 3871, + total_diatas_sla_response: 24, + avg_durasi_recovery: 21.664947124064998, + min_durasi_recovery: 69, + max_durasi_recovery: 17096, + total_dibawah_sla_recovery: 3876, + total_diatas_sla_recovery: 1, + total_response: 3895, + total_recovery: 3877 + }, + { + id: 14, + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32300, + nama_up3: 'UP3 KENDARI', + id_ulp: 32330, + nama_ulp: 'ULP BENU BENUA', + id_posko: 323301, + nama_posko: 'POSKO ULP BENU BENUA', + total: 22651, + total_selesai: 22651, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 18218233, + avg_durasi_response: 18.958301306687165, + min_durasi_response: 30, + max_durasi_response: 18055, + total_dibawah_sla_response: 14724, + total_diatas_sla_response: 888, + avg_durasi_recovery: 29.802055551941717, + min_durasi_recovery: 90, + max_durasi_recovery: 18414, + total_dibawah_sla_recovery: 15367, + total_diatas_sla_recovery: 6, + total_response: 15612, + total_recovery: 15373 } - ) + ] } }) diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue index 6281747..74bf73d 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_PerRegu.vue @@ -51,12 +51,13 @@ caption="NO" css-class="custom-table-column" cell-template="formatNumber" + :calculateCellValue="(item: any) => data.findIndex((i) => i == item) + 1" /> { }) onResult((queryResult) => { if (queryResult.data != undefined) { - data.value = queryResult.data.rekapitulasiGangguanPerRegu.map((item: any, index: number) => { - return { - no: ++index, - kode_regu: item.kode_regu, - nama_regu: item.nama_regu, - laporan: { - total: item.total, - sudahSelesai: { - jml: item.total_selesai, - persen: item.persen_selesai - }, - belumSelesai: { - jml: item.total_inproses, - persen: item.persen_inproses - } - }, - responseTime: { - menit: { - total: item.total_durasi_response, - rataRata: item.avg_durasi_response, - max: item.max_durasi_response, - min: item.min_durasi_response - }, - laporan: { - lebihSla: item.total_diatas_sla_response, - kurangSla: item.total_dibawah_sla_response - } - }, - recoveryTime: { - menit: { - total: item.total_durasi_recovery, - rataRata: item.avg_durasi_recovery, - max: item.max_durasi_recovery, - min: item.min_durasi_recovery - }, - laporan: { - lebihSla: item.total_diatas_sla_recovery, - kurangSla: item.total_dibawah_sla_recovery - } - } - } - }) + data.value = queryResult.data.rekapitulasiGangguanPerRegu } console.log(queryResult.data) console.log(queryResult.loading) @@ -670,50 +629,932 @@ const filters = ref({ onMounted(() => { if (import.meta.env.DEV) { - data.value = dummyData.gangguan.rekap.rekapitulasiGangguanPerRegu.map( - (item: any, index: number) => { - return { - no: ++index, - kode_regu: item.kode_regu, - nama_regu: item.nama_regu, - laporan: { - total: item.total, - sudahSelesai: { - jml: item.total_selesai, - persen: item.persen_selesai - }, - belumSelesai: { - jml: item.total_inproses, - persen: item.persen_inproses - } - }, - responseTime: { - menit: { - total: item.total_durasi_response, - rataRata: item.avg_durasi_response, - max: item.max_durasi_response, - min: item.min_durasi_response - }, - laporan: { - lebihSla: item.total_diatas_sla_response, - kurangSla: item.total_dibawah_sla_response - } - }, - recoveryTime: { - menit: { - total: item.total_durasi_recovery, - rataRata: item.avg_durasi_recovery, - max: item.max_durasi_recovery, - min: item.min_durasi_recovery - }, - laporan: { - lebihSla: item.total_diatas_sla_recovery, - kurangSla: item.total_dibawah_sla_recovery - } - } - } + data.value = [ + { + id: 0, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 29044, + kode_regu: 'SAMPUNGU1', + nama_regu: 'SAMPUNGU1', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 420, + avg_durasi_response: 7, + min_durasi_response: 420, + max_durasi_response: 420, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 771, + avg_durasi_recovery: 12, + min_durasi_recovery: 771, + max_durasi_recovery: 771, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 1, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44340, + nama_ulp: 'ULP BIMA KOTA', + id_posko: 443401, + nama_posko: 'POSKO ULP BIMA KOTA', + id_regu: 19544, + kode_regu: 'GABI1', + nama_regu: 'GABI1', + total: 13, + total_selesai: 13, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 18753, + avg_durasi_response: 23.384615384615383, + min_durasi_response: 887, + max_durasi_response: 3598, + total_dibawah_sla_response: 12, + total_diatas_sla_response: 1, + total_durasi_recovery: 34004, + avg_durasi_recovery: 43.07692307692308, + min_durasi_recovery: 1725, + max_durasi_recovery: 4581, + total_dibawah_sla_recovery: 13, + total_diatas_sla_recovery: 0, + total_response: 13, + total_recovery: 13 + }, + { + id: 2, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 31701, + kode_regu: 'ULCWOHA', + nama_regu: 'ULCWOHA', + total: 8, + total_selesai: 8, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 10462, + avg_durasi_response: 21.125, + min_durasi_response: 312, + max_durasi_response: 2393, + total_dibawah_sla_response: 8, + total_diatas_sla_response: 0, + total_durasi_recovery: 15311, + avg_durasi_recovery: 31.375, + min_durasi_recovery: 942, + max_durasi_recovery: 3338, + total_dibawah_sla_recovery: 8, + total_diatas_sla_recovery: 0, + total_response: 8, + total_recovery: 8 + }, + { + id: 3, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 37136, + kode_regu: 'GADOM2', + nama_regu: 'GADOM2', + total: 9, + total_selesai: 9, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 19629, + avg_durasi_response: 54, + min_durasi_response: 1136, + max_durasi_response: 6826, + total_dibawah_sla_response: 3, + total_diatas_sla_response: 3, + total_durasi_recovery: 20047, + avg_durasi_recovery: 66.2, + min_durasi_recovery: 2047, + max_durasi_recovery: 7721, + total_dibawah_sla_recovery: 5, + total_diatas_sla_recovery: 0, + total_response: 6, + total_recovery: 5 + }, + { + id: 4, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 24498, + kode_regu: 'GAMON1', + nama_regu: 'GAMON 1', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1309, + avg_durasi_response: 21, + min_durasi_response: 1309, + max_durasi_response: 1309, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 2477, + avg_durasi_recovery: 41, + min_durasi_recovery: 2477, + max_durasi_recovery: 2477, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 5, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44340, + nama_ulp: 'ULP BIMA KOTA', + id_posko: 443401, + nama_posko: 'POSKO ULP BIMA KOTA', + id_regu: 30156, + kode_regu: 'ULC BIMA', + nama_regu: 'ULC BIMA', + total: 12, + total_selesai: 12, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 11722, + avg_durasi_response: 21.11111111111111, + min_durasi_response: 720, + max_durasi_response: 2545, + total_dibawah_sla_response: 9, + total_diatas_sla_response: 0, + total_durasi_recovery: 15330, + avg_durasi_recovery: 27.88888888888889, + min_durasi_recovery: 1121, + max_durasi_recovery: 2901, + total_dibawah_sla_recovery: 9, + total_diatas_sla_recovery: 0, + total_response: 9, + total_recovery: 9 + }, + { + id: 6, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: null, + kode_regu: null, + nama_regu: null, + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: null, + avg_durasi_response: null, + min_durasi_response: null, + max_durasi_response: null, + total_dibawah_sla_response: 0, + total_diatas_sla_response: 0, + total_durasi_recovery: null, + avg_durasi_recovery: null, + min_durasi_recovery: null, + max_durasi_recovery: null, + total_dibawah_sla_recovery: 0, + total_diatas_sla_recovery: 0, + total_response: 0, + total_recovery: 0 + }, + { + id: 7, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 24499, + kode_regu: 'GAHU', + nama_regu: 'GAHU', + total: 3, + total_selesai: 3, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 4954, + avg_durasi_response: 41, + min_durasi_response: 1527, + max_durasi_response: 3427, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 1, + total_durasi_recovery: 7212, + avg_durasi_recovery: 60, + min_durasi_recovery: 3303, + max_durasi_recovery: 3909, + total_dibawah_sla_recovery: 2, + total_diatas_sla_recovery: 0, + total_response: 2, + total_recovery: 2 + }, + { + id: 8, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: 34661, + kode_regu: '44310GANIP', + nama_regu: '44310.GANIP', + total: 4, + total_selesai: 4, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 3811, + avg_durasi_response: 15.5, + min_durasi_response: 736, + max_durasi_response: 1216, + total_dibawah_sla_response: 4, + total_diatas_sla_response: 0, + total_durasi_recovery: 5949, + avg_durasi_recovery: 24.25, + min_durasi_recovery: 1137, + max_durasi_recovery: 2171, + total_dibawah_sla_recovery: 4, + total_diatas_sla_recovery: 0, + total_response: 4, + total_recovery: 4 + }, + { + id: 9, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 29096, + kode_regu: 'GAKO', + nama_regu: 'GAKO', + total: 3, + total_selesai: 3, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 6272, + avg_durasi_response: 34.333333333333336, + min_durasi_response: 1443, + max_durasi_response: 3050, + total_dibawah_sla_response: 2, + total_diatas_sla_response: 1, + total_durasi_recovery: 9943, + avg_durasi_recovery: 55, + min_durasi_recovery: 2049, + max_durasi_recovery: 4767, + total_dibawah_sla_recovery: 3, + total_diatas_sla_recovery: 0, + total_response: 3, + total_recovery: 3 + }, + { + id: 10, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: null, + kode_regu: null, + nama_regu: null, + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: null, + avg_durasi_response: null, + min_durasi_response: null, + max_durasi_response: null, + total_dibawah_sla_response: 0, + total_diatas_sla_response: 0, + total_durasi_recovery: null, + avg_durasi_recovery: null, + min_durasi_recovery: null, + max_durasi_recovery: null, + total_dibawah_sla_recovery: 0, + total_diatas_sla_recovery: 0, + total_response: 0, + total_recovery: 0 + }, + { + id: 11, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 24502, + kode_regu: 'GASANG', + nama_regu: 'GASANG', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1070, + avg_durasi_response: 17, + min_durasi_response: 1070, + max_durasi_response: 1070, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 1642, + avg_durasi_recovery: 27, + min_durasi_recovery: 1642, + max_durasi_recovery: 1642, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 12, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: 34656, + kode_regu: '44310.GALU', + nama_regu: '44310.GALU', + total: 5, + total_selesai: 5, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 5445, + avg_durasi_response: 17.6, + min_durasi_response: 717, + max_durasi_response: 1446, + total_dibawah_sla_response: 5, + total_diatas_sla_response: 0, + total_durasi_recovery: 9921, + avg_durasi_recovery: 32.6, + min_durasi_recovery: 1698, + max_durasi_recovery: 2204, + total_dibawah_sla_recovery: 5, + total_diatas_sla_recovery: 0, + total_response: 5, + total_recovery: 5 + }, + { + id: 13, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44340, + nama_ulp: 'ULP BIMA KOTA', + id_posko: 443401, + nama_posko: 'POSKO ULP BIMA KOTA', + id_regu: 29041, + kode_regu: '44340.KOLO', + nama_regu: 'KOLO', + total: 3, + total_selesai: 3, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 3244, + avg_durasi_response: 17.333333333333332, + min_durasi_response: 206, + max_durasi_response: 1967, + total_dibawah_sla_response: 3, + total_diatas_sla_response: 0, + total_durasi_recovery: 6192, + avg_durasi_recovery: 34, + min_durasi_recovery: 522, + max_durasi_recovery: 3616, + total_dibawah_sla_recovery: 3, + total_diatas_sla_recovery: 0, + total_response: 3, + total_recovery: 3 + }, + { + id: 14, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 29046, + kode_regu: 'PARADO1', + nama_regu: 'PARADO1', + total: 4, + total_selesai: 4, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 2587, + avg_durasi_response: 14, + min_durasi_response: 676, + max_durasi_response: 1083, + total_dibawah_sla_response: 3, + total_diatas_sla_response: 0, + total_durasi_recovery: 6437, + avg_durasi_recovery: 35.333333333333336, + min_durasi_recovery: 1980, + max_durasi_recovery: 2249, + total_dibawah_sla_recovery: 3, + total_diatas_sla_recovery: 0, + total_response: 3, + total_recovery: 3 + }, + { + id: 15, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44340, + nama_ulp: 'ULP BIMA KOTA', + id_posko: 443401, + nama_posko: 'POSKO ULP BIMA KOTA', + id_regu: null, + kode_regu: null, + nama_regu: null, + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: null, + avg_durasi_response: null, + min_durasi_response: null, + max_durasi_response: null, + total_dibawah_sla_response: 0, + total_diatas_sla_response: 0, + total_durasi_recovery: null, + avg_durasi_recovery: null, + min_durasi_recovery: null, + max_durasi_recovery: null, + total_dibawah_sla_recovery: 0, + total_diatas_sla_recovery: 0, + total_response: 0, + total_recovery: 0 + }, + { + id: 16, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 29042, + kode_regu: 'DONGGO1', + nama_regu: 'DONGGO1', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 997, + avg_durasi_response: 16, + min_durasi_response: 997, + max_durasi_response: 997, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 1259, + avg_durasi_recovery: 20, + min_durasi_recovery: 1259, + max_durasi_recovery: 1259, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 17, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 19542, + kode_regu: 'GAWO1', + nama_regu: 'GAWO1', + total: 7, + total_selesai: 7, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 7835, + avg_durasi_response: 18, + min_durasi_response: 773, + max_durasi_response: 2371, + total_dibawah_sla_response: 7, + total_diatas_sla_response: 0, + total_durasi_recovery: 14448, + avg_durasi_recovery: 39.666666666666664, + min_durasi_recovery: 1766, + max_durasi_recovery: 4421, + total_dibawah_sla_recovery: 6, + total_diatas_sla_recovery: 0, + total_response: 7, + total_recovery: 6 + }, + { + id: 18, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 30856, + kode_regu: 'ULCMONTA', + nama_regu: 'ULCMONTA', + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1858, + avg_durasi_response: 15, + min_durasi_response: 812, + max_durasi_response: 1046, + total_dibawah_sla_response: 2, + total_diatas_sla_response: 0, + total_durasi_recovery: 4328, + avg_durasi_recovery: 35.5, + min_durasi_recovery: 1633, + max_durasi_recovery: 2695, + total_dibawah_sla_recovery: 2, + total_diatas_sla_recovery: 0, + total_response: 2, + total_recovery: 2 + }, + { + id: 19, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: 34659, + kode_regu: '44310.GATA', + nama_regu: '44310.GATA', + total: 5, + total_selesai: 5, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 4116, + avg_durasi_response: 13.2, + min_durasi_response: 752, + max_durasi_response: 894, + total_dibawah_sla_response: 5, + total_diatas_sla_response: 0, + total_durasi_recovery: 9957, + avg_durasi_recovery: 32.6, + min_durasi_recovery: 1499, + max_durasi_recovery: 2444, + total_dibawah_sla_recovery: 5, + total_diatas_sla_recovery: 0, + total_response: 5, + total_recovery: 5 + }, + { + id: 20, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 29045, + kode_regu: 'KUTAWAWO1', + nama_regu: 'KUTAWAWO1', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1050, + avg_durasi_response: 17, + min_durasi_response: 1050, + max_durasi_response: 1050, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 1675, + avg_durasi_recovery: 27, + min_durasi_recovery: 1675, + max_durasi_recovery: 1675, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 21, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 24503, + kode_regu: 'GAKAT', + nama_regu: 'GAKAT', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1938, + avg_durasi_response: 32, + min_durasi_response: 1938, + max_durasi_response: 1938, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 2975, + avg_durasi_recovery: 49, + min_durasi_recovery: 2975, + max_durasi_recovery: 2975, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 22, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: 24501, + kode_regu: 'GASAP 3', + nama_regu: 'GASAP 3', + total: 8, + total_selesai: 8, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 13364, + avg_durasi_response: 27.375, + min_durasi_response: 780, + max_durasi_response: 3808, + total_dibawah_sla_response: 7, + total_diatas_sla_response: 1, + total_durasi_recovery: 23245, + avg_durasi_recovery: 48, + min_durasi_recovery: 1654, + max_durasi_recovery: 5187, + total_dibawah_sla_recovery: 8, + total_diatas_sla_recovery: 0, + total_response: 8, + total_recovery: 8 + }, + { + id: 23, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44330, + nama_ulp: 'ULP WOHA', + id_posko: 443301, + nama_posko: 'POSKO ULP WOHA', + id_regu: 24497, + kode_regu: 'GABO 1', + nama_regu: 'GABO 1', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 1106, + avg_durasi_response: 18, + min_durasi_response: 1106, + max_durasi_response: 1106, + total_dibawah_sla_response: 1, + total_diatas_sla_response: 0, + total_durasi_recovery: 2223, + avg_durasi_recovery: 37, + min_durasi_recovery: 2223, + max_durasi_recovery: 2223, + total_dibawah_sla_recovery: 1, + total_diatas_sla_recovery: 0, + total_response: 1, + total_recovery: 1 + }, + { + id: 24, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44310, + nama_ulp: 'ULP SAPE', + id_posko: 443101, + nama_posko: 'POSKO ULP SAPE', + id_regu: 34662, + kode_regu: '44310.GAWA', + nama_regu: '44310.GAWA', + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 2809, + avg_durasi_response: 22.5, + min_durasi_response: 1255, + max_durasi_response: 1554, + total_dibawah_sla_response: 2, + total_diatas_sla_response: 0, + total_durasi_recovery: 5058, + avg_durasi_recovery: 41.5, + min_durasi_recovery: 2313, + max_durasi_recovery: 2745, + total_dibawah_sla_recovery: 2, + total_diatas_sla_recovery: 0, + total_response: 2, + total_recovery: 2 + }, + { + id: 25, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 24496, + kode_regu: 'GASOR', + nama_regu: 'GASOR', + total: 19, + total_selesai: 19, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 56100, + avg_durasi_response: 54.588235294117645, + min_durasi_response: 1715, + max_durasi_response: 6854, + total_dibawah_sla_response: 6, + total_diatas_sla_response: 11, + total_durasi_recovery: 82343, + avg_durasi_recovery: 80.23529411764706, + min_durasi_recovery: 2855, + max_durasi_recovery: 8171, + total_dibawah_sla_recovery: 17, + total_diatas_sla_recovery: 0, + total_response: 17, + total_recovery: 17 + }, + { + id: 26, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 19541, + kode_regu: 'GADOM1', + nama_regu: 'GADOM1', + total: 35, + total_selesai: 35, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 118249, + avg_durasi_response: 67.44827586206897, + min_durasi_response: 1713, + max_durasi_response: 8073, + total_dibawah_sla_response: 8, + total_diatas_sla_response: 21, + total_durasi_recovery: 145117, + avg_durasi_recovery: 85.85714285714286, + min_durasi_recovery: 2443, + max_durasi_recovery: 8387, + total_dibawah_sla_recovery: 28, + total_diatas_sla_recovery: 0, + total_response: 29, + total_recovery: 28 + }, + { + id: 27, + id_uid: 44, + nama_uid: 'WILAYAH NUSA TENGGARA BARAT', + id_up3: 443, + nama_up3: 'UP3 BIMA', + id_ulp: 44320, + nama_ulp: 'ULP DOMPU', + id_posko: 443201, + nama_posko: 'POSKO ULP DOMPU', + id_regu: 29097, + kode_regu: 'GALO', + nama_regu: 'GALO', + total: 4, + total_selesai: 4, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_durasi_response: 4929, + avg_durasi_response: 27, + min_durasi_response: 1595, + max_durasi_response: 1682, + total_dibawah_sla_response: 3, + total_diatas_sla_response: 0, + total_durasi_recovery: 7014, + avg_durasi_recovery: 38.666666666666664, + min_durasi_recovery: 1880, + max_durasi_recovery: 3013, + total_dibawah_sla_recovery: 3, + total_diatas_sla_recovery: 0, + total_response: 3, + total_recovery: 3 } - ) + ] } }) diff --git a/src/components/Pages/Gangguan/Rekap/RGangguan_RatingPerPosko.vue b/src/components/Pages/Gangguan/Rekap/RGangguan_RatingPerPosko.vue index 83946da..a2257f4 100755 --- a/src/components/Pages/Gangguan/Rekap/RGangguan_RatingPerPosko.vue +++ b/src/components/Pages/Gangguan/Rekap/RGangguan_RatingPerPosko.vue @@ -65,7 +65,7 @@ cell-template="formatText" /> - +
- + - + - + - - - + + + - + - - + + - - + + - - - - - - - + + + + + + + - - + + + + + + + + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+

No Laporan:

+ +
+ +
+

Rating:

+ +
+ +
+

Tgl Lapor:

+ +
+ +
+

Tgl Datang:

+ +
+ +
+

Tgl Nyala:

+ +
+ +
+

Durasi Response Time:

+ +
+ +
+

Durasi Recovery Time:

+ +
+ +
+

Referensi Marking:

+ +
+ +
+

IDPEL/NO METER:

+ +
+ +
+

Nama Pelapor:

+ +
+ +
+

Alamat Pelapor:

+ +
+ +
+

No Telp Pelapor:

+ +
+ +
+

Keterangan Pelapor:

+ +
+ +
+

Posko:

+ +
+ +
+

Tindakan:

+ +
+ +
+

Penyebab:

+ +
+
+
+
\ No newline at end of file +onMounted(() => { + if (import.meta.env.DEV) { + data.value = [ + { + id: 0, + nama_regional: 'REGIONAL JMB', + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52050, + nama_up3: 'UP3 SURAKARTA', + id_ulp: 52058, + nama_ulp: 'ULP SRAGEN', + id_posko: 520581, + nama_posko: 'POSKO ULP SRAGEN', + total: 5, + total_selesai: 5, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 2, + persen_rating: 40, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 2, + indeks_rating: 1, + total_nonrating: 3, + persen_nonrating: 60 + }, + { + id: 1, + nama_regional: 'REGIONAL JMB', + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 150, + nama_up3: 'UP3 PAMEKASAN', + id_ulp: 51750, + nama_ulp: 'ULP KETAPANG', + id_posko: 517506, + nama_posko: 'POSKO ULP KETAPANG', + total: 5, + total_selesai: 5, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 2, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 140, + nama_uid: 'WILAYAH SUMATERA SELATAN, JAMBI & BENGKULU (S2JB)', + id_up3: 1404, + nama_up3: 'UP3 JAMBI', + id_ulp: 14390, + nama_ulp: 'ULP SABAK', + id_posko: 143901, + nama_posko: 'POSKO ULP SABAK', + total: 2, + total_selesai: 2, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 2, + persen_rating: 100, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 2, + indeks_rating: 1, + total_nonrating: 0, + persen_nonrating: 0 + }, + { + id: 3, + nama_regional: 'REGIONAL JMB', + id_uid: 427, + nama_uid: 'DISTRIBUSI JAWA BARAT', + id_up3: 539, + nama_up3: 'UP3 GUNUNG PUTRI', + id_ulp: 53867, + nama_ulp: 'ULP JONGGOL', + id_posko: 538671, + nama_posko: 'POSKO ULP JONGGOL', + total: 7, + total_selesai: 7, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 4, + persen_rating: 57.14285714285714, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 4, + indeks_rating: 1, + total_nonrating: 3, + persen_nonrating: 42.857142857142854 + }, + { + id: 4, + nama_regional: 'REGIONAL JMB', + id_uid: 427, + nama_uid: 'DISTRIBUSI JAWA BARAT', + id_up3: 542, + nama_up3: 'UP3 MAJALAYA', + id_ulp: 53531, + nama_ulp: 'ULP MAJALAYA', + id_posko: 535311, + nama_posko: 'POSKO ULP MAJALAYA', + total: 4, + total_selesai: 4, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 5, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 120, + nama_uid: 'WILAYAH SUMATERA UTARA', + id_up3: 12100, + nama_up3: 'UP3 PEMATANG SIANTAR', + id_ulp: 12115, + nama_ulp: 'ULP PEMATANG RAYA', + id_posko: 121155, + nama_posko: 'POSKO ULP PEMATANG RAYA', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 1, + persen_rating: 100, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 1, + indeks_rating: 1, + total_nonrating: 0, + persen_nonrating: 0 + }, + { + id: 6, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 171, + nama_uid: 'DISTRIBUSI LAMPUNG', + id_up3: 17172, + nama_up3: 'UP3 METRO', + id_ulp: 17210, + nama_ulp: 'ULP SRIBAWONO', + id_posko: 172101, + nama_posko: 'POSKO ULP SRIBAWONO', + total: 18, + total_selesai: 18, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 12, + persen_rating: 66.66666666666666, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 12, + indeks_rating: 1, + total_nonrating: 6, + persen_nonrating: 33.33333333333333 + }, + { + id: 7, + nama_regional: 'REGIONAL JMB', + id_uid: 101, + nama_uid: 'DISTRIBUSI JAWA TENGAH & DIY', + id_up3: 52200, + nama_up3: 'UP3 PURWOKERTO', + id_ulp: 52205, + nama_ulp: 'ULP WONOSOBO', + id_posko: 522051, + nama_posko: 'POSKO ULP WONOSOBO', + total: 23, + total_selesai: 23, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 22, + persen_rating: 95.65217391304348, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 22, + indeks_rating: 1, + total_nonrating: 1, + persen_nonrating: 4.3478260869565215 + }, + { + id: 8, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 120, + nama_uid: 'WILAYAH SUMATERA UTARA', + id_up3: 12500, + nama_up3: 'UP3 RANTAU PRAPAT', + id_ulp: 12513, + nama_ulp: 'ULP LABUHAN BILIK', + id_posko: 125133, + nama_posko: 'POSKO ULP LABUHAN BILIK', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 9, + nama_regional: 'REGIONAL JMB', + id_uid: 103, + nama_uid: 'DISTRIBUSI JAWA TIMUR', + id_up3: 150, + nama_up3: 'UP3 PAMEKASAN', + id_ulp: 51730, + nama_ulp: 'ULP BANGKALAN', + id_posko: 517304, + nama_posko: 'POSKO ULP BANGKALAN', + total: 32, + total_selesai: 32, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 3, + persen_rating: 9.375, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 3, + indeks_rating: 1, + total_nonrating: 29, + persen_nonrating: 90.625 + }, + { + id: 10, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 180, + nama_uid: 'WILAYAH RIAU DAN KEPULAUAN RIAU', + id_up3: 181, + nama_up3: 'UP3 PEKANBARU', + id_ulp: 18111, + nama_ulp: 'ULP PEKANBARU KOTA BARAT', + id_posko: 181111, + nama_posko: 'POSKO ULP PEKANBARU KOTA BARAT', + total: 109, + total_selesai: 109, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 11, + nama_regional: 'REGIONAL JMB', + id_uid: 427, + nama_uid: 'DISTRIBUSI JAWA BARAT', + id_up3: 536, + nama_up3: 'UP3 CIMAHI', + id_ulp: 53589, + nama_ulp: 'ULP LEMBANG', + id_posko: 535891, + nama_posko: 'POSKO ULP LEMBANG', + total: 17, + total_selesai: 17, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 17, + persen_rating: 100, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 17, + indeks_rating: 1, + total_nonrating: 0, + persen_nonrating: 0 + }, + { + id: 12, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32800, + nama_up3: 'UP3 BAUBAU', + id_ulp: 32820, + nama_ulp: 'ULP RAHA', + id_posko: 328201, + nama_posko: 'POSKO ULP RAHA', + total: 3, + total_selesai: 3, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 13, + nama_regional: 'REGIONAL SULMAPANA', + id_uid: 32, + nama_uid: 'WILAYAH SULAWESI SELATAN, TENGGARA DAN BARAT', + id_up3: 32200, + nama_up3: 'UP3 WATAMPONE', + id_ulp: 32270, + nama_ulp: 'ULP PATANGKAI', + id_posko: 322701, + nama_posko: 'POSKO ULP PATANGKAI', + total: 3, + total_selesai: 3, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: null, + persen_rating: null, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 0, + indeks_rating: null, + total_nonrating: null, + persen_nonrating: null + }, + { + id: 14, + nama_regional: 'REGIONAL SUMKAL', + id_uid: 221, + nama_uid: 'WILAYAH KALIMANTAN SELATAN DAN TENGAH', + id_up3: 2220, + nama_up3: 'UP3 BARABAI', + id_ulp: 22250, + nama_ulp: 'ULP PARINGIN', + id_posko: 222501, + nama_posko: 'POSKO ULP PARINGIN', + total: 1, + total_selesai: 1, + persen_selesai: 100, + total_inproses: 0, + persen_inproses: 0, + total_rating: 1, + persen_rating: 100, + nilai_rating1: 0, + nilai_rating2: 0, + nilai_rating3: 0, + nilai_rating4: 0, + nilai_rating5: 1, + indeks_rating: 1, + total_nonrating: 0, + persen_nonrating: 0 + } + ] + } +}) + diff --git a/src/components/Pages/Keluhan/Daftar/DKeluhan_BerdasarMedia.vue b/src/components/Pages/Keluhan/Daftar/DKeluhan_BerdasarMedia.vue index 9dabd0d..ad49917 100755 --- a/src/components/Pages/Keluhan/Daftar/DKeluhan_BerdasarMedia.vue +++ b/src/components/Pages/Keluhan/Daftar/DKeluhan_BerdasarMedia.vue @@ -337,6 +337,27 @@ const onSelectionChanged = ({ selectedRowsData }: any) => { } const onExporting = (e: any) => { + const periode = reportMeta.value.periode ? reportMeta.value.periode.split(' s/d ') : '' + + let dateFromFormat = '' + let dateToFormat = '' + let dayTo = '' + + if (periode != '') { + const dateFrom = new Date(periode[0].split('-').reverse().join('-')) + const dateTo = new Date(periode[1].split('-').reverse().join('-')) + + dateFromFormat = `${dateFrom.getDate()}-${dateFrom.toLocaleString('default', { + month: 'long' + })}-${dateFrom.getFullYear()}` + + dateToFormat = `${dateTo.getDate()}-${dateTo.toLocaleString('default', { + month: 'long' + })}-${dateTo.getFullYear()}` + + dayTo = dateTo.toLocaleString('default', { weekday: 'long' }) + } + if (e.format === 'pdf') { const doc = new jsPDF({ orientation: 'landscape' @@ -344,7 +365,59 @@ const onExporting = (e: any) => { autoTable(doc, { head: [ + ['PT. PLN(Persero)', '', ''], [ + { content: 'UNIT INDUK', styles: { cellWidth: 25 } }, + { content: ':', styles: { cellWidth: 1 } }, + reportMeta.value.uid + ? reportMeta.value.uid.name.toUpperCase() + : 'Semua Unit Induk Distribusi/Wilayah'.toUpperCase() + ], + [ + 'UNIT PELAKSANA PELAYANAN PELANGGAN', + ':', + reportMeta.value.up3 + ? reportMeta.value.up3.name.toUpperCase() + : 'Semua Unit Pelaksanaan Pelayanan Pelanggan'.toUpperCase() + ], + [ + 'UNIT LAYANAN PELANGGAN', + ':', + reportMeta.value.ulp + ? reportMeta.value.ulp.name.toUpperCase() + : 'Semua Unit Layanan Pelanggan'.toUpperCase() + ] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold' + }, + theme: 'plain', + startY: 10 + }) + + autoTable(doc, { + head: [ + ['Daftar Keluhan Berdasarkan Media'.toUpperCase()], + [`PERIODE TANGGAL : ${dateFromFormat} SD TGL ${dateToFormat}`] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + startY: 18 + }) + + autoTable(doc, { + head: [ + [ + 'No', 'No Laporan', 'Nama Pelapor', 'Alamat Pelapor', @@ -361,7 +434,8 @@ const onExporting = (e: any) => { 'Keterangan Media' ] ], - body: data.value.map((item) => [ + body: data.value.map((item: any, i: any) => [ + { content: ++i, styles: { halign: 'right' } }, item.no_laporan, item.nama_pelapor, item.alamat_pelapor, @@ -378,11 +452,58 @@ const onExporting = (e: any) => { item.keterangan_media ]), styles: { - fontSize: 4 - } + fontSize: 3, + cellPadding: 1, + lineColor: [0, 0, 0], + lineWidth: 0.1, + cellWidth: 'auto' + }, + rowPageBreak: 'auto', + headStyles: { + fillColor: [192, 192, 192], + textColor: [0, 0, 0], + fontStyle: 'bold', + cellWidth: 'wrap', + halign: 'center' + }, + bodyStyles: { + textColor: [0, 0, 0] + }, + didParseCell: function (data) { + if (data.row.section === 'head') { + data.cell.text = data.cell.text.map(function (word: any) { + return word.toUpperCase() + }) + } + }, + startY: 23 }) - doc.save('Daftar Keluhan Berdasarkan Media.pdf') + autoTable(doc, { + head: [ + [`${dayTo}, ${dateToFormat}`], + [ + { + content: '(.........................................)', + styles: { minCellHeight: 8, valign: 'bottom' } + } + ] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + tableWidth: 50, + margin: { left: 230 } + }) + + doc.save('Laporan Daftar Keluhan Berdasarkan Media.pdf', { returnPromise: true }).then(() => { + console.log('pdf berhasil disimpan') + }) } else { const workbook = new Workbook() const worksheet = workbook.addWorksheet('Daftar Keluhan Berdasarkan Media') @@ -420,6 +541,7 @@ const { onResult, onError, loading, refetch } = useQuery( const filterData = (params: any) => { const dateValue = params.periode.split(' s/d ') const { ulp, uid, up3 } = params + refetch({ dateFrom: dateValue[0] ? dateValue[0].split('-').reverse().join('-') @@ -436,16 +558,26 @@ const filterData = (params: any) => { if (queryResult.data != undefined) { data.value = queryResult.data.daftarKeluhanBerdasarkanMedia } + + reportMeta.value = filters.value console.log(queryResult.data) console.log(queryResult.loading) console.log(queryResult.networkStatus) }) + onError((error) => { console.log(error) }) } const filters = ref() +const reportMeta = ref({ + uid: { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' }, + up3: { id: 0, name: 'Semua Unit Pelaksanaan Pelayanan Pelanggan' }, + ulp: { id: 0, name: 'Semua Unit Layanan Pelanggan' }, + periode: '' +}) + onMounted(() => { if (import.meta.env.DEV) { data.value = dummyData.keluhan.daftar.daftarKeluhanBerdasarkanMedia diff --git a/src/components/Pages/Keluhan/Daftar/DKeluhan_DKUL.vue b/src/components/Pages/Keluhan/Daftar/DKeluhan_DKUL.vue index 31d384f..32d2584 100755 --- a/src/components/Pages/Keluhan/Daftar/DKeluhan_DKUL.vue +++ b/src/components/Pages/Keluhan/Daftar/DKeluhan_DKUL.vue @@ -236,6 +236,27 @@ const shading = ref(true) const showPane = ref(true) const onExporting = (e: any) => { + const periode = reportMeta.value.periode ? reportMeta.value.periode.split(' s/d ') : '' + + let dateFromFormat = '' + let dateToFormat = '' + let dayTo = '' + + if (periode != '') { + const dateFrom = new Date(periode[0].split('-').reverse().join('-')) + const dateTo = new Date(periode[1].split('-').reverse().join('-')) + + dateFromFormat = `${dateFrom.getDate()}-${dateFrom.toLocaleString('default', { + month: 'long' + })}-${dateFrom.getFullYear()}` + + dateToFormat = `${dateTo.getDate()}-${dateTo.toLocaleString('default', { + month: 'long' + })}-${dateTo.getFullYear()}` + + dayTo = dateTo.toLocaleString('default', { weekday: 'long' }) + } + if (e.format === 'pdf') { const doc = new jsPDF({ orientation: 'landscape' @@ -243,7 +264,59 @@ const onExporting = (e: any) => { autoTable(doc, { head: [ + ['PT. PLN(Persero)', '', ''], [ + { content: 'UNIT INDUK', styles: { cellWidth: 25 } }, + { content: ':', styles: { cellWidth: 1 } }, + reportMeta.value.uid + ? reportMeta.value.uid.name.toUpperCase() + : 'Semua Unit Induk Distribusi/Wilayah'.toUpperCase() + ], + [ + 'UNIT PELAKSANA PELAYANAN PELANGGAN', + ':', + reportMeta.value.up3 + ? reportMeta.value.up3.name.toUpperCase() + : 'Semua Unit Pelaksanaan Pelayanan Pelanggan'.toUpperCase() + ], + [ + 'UNIT LAYANAN PELANGGAN', + ':', + reportMeta.value.ulp + ? reportMeta.value.ulp.name.toUpperCase() + : 'Semua Unit Layanan Pelanggan'.toUpperCase() + ] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold' + }, + theme: 'plain', + startY: 10 + }) + + autoTable(doc, { + head: [ + ['Daftar Keluhan Dialihkan Ke Unit Lain'.toUpperCase()], + [`PERIODE TANGGAL : ${dateFromFormat} SD TGL ${dateToFormat}`] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + startY: 18 + }) + + autoTable(doc, { + head: [ + [ + 'No', 'No Laporan', 'Pembuat Laporan', 'Tgl Lapor', @@ -261,15 +334,16 @@ const onExporting = (e: any) => { 'Keterangan Pelapor' ] ], - body: data.value.map((item: any) => [ + body: data.value.map((item: any, i: any) => [ + { content: ++i, styles: { halign: 'right' } }, item.no_laporan, item.pembuat_laporan, item.waktu_lapor, item.waktu_dialihkan, item.waktu_response, item.waktu_recovery, - item.durasi_response_time, - item.durasi_recovery_time, + parseInt(item.durasi_response_time) ? formatWaktu(item.durasi_response_time) : '-', + parseInt(item.durasi_recovery_time) ? formatWaktu(item.durasi_recovery_time) : '-', item.nama_unit_lama, item.status_akhir, item.idpel_nometer, @@ -279,11 +353,60 @@ const onExporting = (e: any) => { item.keterangan_pelapor ]), styles: { - fontSize: 4 - } + fontSize: 3, + cellPadding: 1, + lineColor: [0, 0, 0], + lineWidth: 0.1, + cellWidth: 'auto' + }, + rowPageBreak: 'auto', + headStyles: { + fillColor: [192, 192, 192], + textColor: [0, 0, 0], + fontStyle: 'bold', + cellWidth: 'wrap', + halign: 'center' + }, + bodyStyles: { + textColor: [0, 0, 0] + }, + didParseCell: function (data) { + if (data.row.section === 'head') { + data.cell.text = data.cell.text.map(function (word: any) { + return word.toUpperCase() + }) + } + }, + startY: 23 }) - doc.save('Daftar Keluhan Dialihkan Ke Unit Lain.pdf') + autoTable(doc, { + head: [ + [`${dayTo}, ${dateToFormat}`], + [ + { + content: '(.........................................)', + styles: { minCellHeight: 8, valign: 'bottom' } + } + ] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + tableWidth: 50, + margin: { left: 230 } + }) + + doc + .save('Laporan Daftar Keluhan Dialihkan Ke Unit Lain.pdf', { returnPromise: true }) + .then(() => { + console.log('pdf berhasil disimpan') + }) } else { const workbook = new Workbook() const worksheet = workbook.addWorksheet('Daftar Keluhan Dialihkan Ke Unit Lain') @@ -342,6 +465,8 @@ const filterData = (params: any) => { if (queryResult.data != undefined) { data.value = queryResult.data.daftarKeluhanDialihkanKeUnitLain } + + reportMeta.value = filters.value console.log(queryResult.data) console.log(queryResult.loading) console.log(queryResult.networkStatus) @@ -353,6 +478,13 @@ const filterData = (params: any) => { } const filters = ref() +const reportMeta = ref({ + uid: { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' }, + up3: { id: 0, name: 'Semua Unit Pelaksanaan Pelayanan Pelanggan' }, + ulp: { id: 0, name: 'Semua Unit Layanan Pelanggan' }, + periode: '' +}) + onMounted(() => { if (import.meta.env.DEV) { data.value = dummyData.keluhan.daftar.daftarKeluhanDialihkanKeUnitLain diff --git a/src/components/Pages/Keluhan/Daftar/DKeluhan_PLD1K.vue b/src/components/Pages/Keluhan/Daftar/DKeluhan_PLD1K.vue index 1a24787..3bd14d0 100755 --- a/src/components/Pages/Keluhan/Daftar/DKeluhan_PLD1K.vue +++ b/src/components/Pages/Keluhan/Daftar/DKeluhan_PLD1K.vue @@ -362,6 +362,27 @@ const onSelectionChanged = ({ selectedRowsData }: any) => { } const onExporting = (e: any) => { + const periode = reportMeta.value.periode ? reportMeta.value.periode.split(' s/d ') : '' + + let dateFromFormat = '' + let dateToFormat = '' + let dayTo = '' + + if (periode != '') { + const dateFrom = new Date(periode[0].split('-').reverse().join('-')) + const dateTo = new Date(periode[1].split('-').reverse().join('-')) + + dateFromFormat = `${dateFrom.getDate()}-${dateFrom.toLocaleString('default', { + month: 'long' + })}-${dateFrom.getFullYear()}` + + dateToFormat = `${dateTo.getDate()}-${dateTo.toLocaleString('default', { + month: 'long' + })}-${dateTo.getFullYear()}` + + dayTo = dateTo.toLocaleString('default', { weekday: 'long' }) + } + if (e.format === 'pdf') { const doc = new jsPDF({ orientation: 'landscape' @@ -369,7 +390,60 @@ const onExporting = (e: any) => { autoTable(doc, { head: [ + ['PT. PLN(Persero)', '', ''], [ + { content: 'UNIT INDUK', styles: { cellWidth: 25 } }, + { content: ':', styles: { cellWidth: 1 } }, + reportMeta.value.uid + ? reportMeta.value.uid.name.toUpperCase() + : 'Semua Unit Induk Distribusi/Wilayah'.toUpperCase() + ], + [ + 'UNIT PELAKSANA PELAYANAN PELANGGAN', + ':', + reportMeta.value.up3 + ? reportMeta.value.up3.name.toUpperCase() + : 'Semua Unit Pelaksanaan Pelayanan Pelanggan'.toUpperCase() + ], + [ + 'UNIT LAYANAN PELANGGAN', + ':', + reportMeta.value.ulp + ? reportMeta.value.ulp.name.toUpperCase() + : 'Semua Unit Layanan Pelanggan'.toUpperCase() + ], + ['LAPOR ULANG', ':', `${reportMeta.value.minJmlLapor} s/d ${reportMeta.value.maxJmlLapor}`] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold' + }, + theme: 'plain', + startY: 10 + }) + + autoTable(doc, { + head: [ + ['Daftar Keluhan Pelanggan Lebih Dari 1 Kali'.toUpperCase()], + [`PERIODE TANGGAL : ${dateFromFormat} SD TGL ${dateToFormat}`] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + startY: 18 + }) + + autoTable(doc, { + head: [ + [ + 'No', 'No Laporan', 'Tgl Lapor', 'Tgl Response', @@ -387,14 +461,15 @@ const onExporting = (e: any) => { 'Nama ULP' ] ], - body: data.value.map((item: any) => [ + body: data.value.map((item: any, i: any) => [ + { content: ++i, styles: { halign: 'right' } }, item.no_laporan, item.waktu_lapor, item.waktu_response, item.waktu_selesai, item.jumlah_lapor, - item.durasi_response_time, - item.durasi_recovery_time, + parseInt(item.durasi_response_time) ? formatWaktu(item.durasi_response_time) : '-', + parseInt(item.durasi_recovery_time) ? formatWaktu(item.durasi_recovery_time) : '-', item.status_akhir, item.idpel_nometer, item.nama_pelapor, @@ -405,11 +480,60 @@ const onExporting = (e: any) => { item.nama_ulp ]), styles: { - fontSize: 4 - } + fontSize: 3, + cellPadding: 1, + lineColor: [0, 0, 0], + lineWidth: 0.1, + cellWidth: 'auto' + }, + rowPageBreak: 'auto', + headStyles: { + fillColor: [192, 192, 192], + textColor: [0, 0, 0], + fontStyle: 'bold', + cellWidth: 'wrap', + halign: 'center' + }, + bodyStyles: { + textColor: [0, 0, 0] + }, + didParseCell: function (data) { + if (data.row.section === 'head') { + data.cell.text = data.cell.text.map(function (word: any) { + return word.toUpperCase() + }) + } + }, + startY: 23 }) - doc.save('Daftar Keluhan Pelanggan Lebih Dari 1 Kali.pdf') + autoTable(doc, { + head: [ + [`${dayTo}, ${dateToFormat}`], + [ + { + content: '(.........................................)', + styles: { minCellHeight: 8, valign: 'bottom' } + } + ] + ], + styles: { + fontSize: 3, + cellPadding: 0.1, + textColor: [0, 0, 0], + fontStyle: 'bold', + halign: 'center' + }, + theme: 'plain', + tableWidth: 50, + margin: { left: 230 } + }) + + doc + .save('Laporan Daftar Keluhan Pelanggan Lebih Dari 1 Kali.pdf', { returnPromise: true }) + .then(() => { + console.log('pdf berhasil disimpan') + }) } else { const workbook = new Workbook() const worksheet = workbook.addWorksheet('Daftar Keluhan Pelanggan Lebih Dari 1 Kali') @@ -451,6 +575,7 @@ const filterData = (params: any) => { const { ulp, uid, up3 } = params const minJmlLapor = params.minJmlLapor ? params.minJmlLapor : 1 const maxJmlLapor = params.maxJmlLapor ? params.maxJmlLapor : 100 + refetch({ minJmlLapor: minJmlLapor, maxJmlLapor: maxJmlLapor, @@ -464,20 +589,33 @@ const filterData = (params: any) => { idUid: uid ? uid.id : 0, idUp3: up3 ? up3.id : 0 }) + onResult((queryResult) => { if (queryResult.data != undefined) { data.value = queryResult.data.daftarKeluhanMelaporLebihDariSatuKali } + + reportMeta.value = filters.value console.log(queryResult.data) console.log(queryResult.loading) console.log(queryResult.networkStatus) }) + onError((error) => { console.log(error) }) } const filters = ref() +const reportMeta = ref({ + uid: { id: 0, name: 'Semua Unit Induk Distribusi/Wilayah' }, + up3: { id: 0, name: 'Semua Unit Pelaksanaan Pelayanan Pelanggan' }, + ulp: { id: 0, name: 'Semua Unit Layanan Pelanggan' }, + minJmlLapor: 1, + maxJmlLapor: 1, + periode: '' +}) + onMounted(() => { if (import.meta.env.DEV) { data.value = dummyData.keluhan.daftar.daftarKeluhanMelaporLebihDariSatuKali diff --git a/src/components/Pages/Keluhan/Daftar/DKeluhan_RecoveryTime.vue b/src/components/Pages/Keluhan/Daftar/DKeluhan_RecoveryTime.vue index 5a66908..4f844c6 100755 --- a/src/components/Pages/Keluhan/Daftar/DKeluhan_RecoveryTime.vue +++ b/src/components/Pages/Keluhan/Daftar/DKeluhan_RecoveryTime.vue @@ -1,6 +1,22 @@